buildrootschalter/package/pptp-linux/pptp-linux.mk
Peter Korsgaard ffc4afe084 pptp-linux: fix build with high BR2_JLEVEL settings
The pptp-linux build system is not robust against parallel builds.

Fixes http://autobuild.buildroot.net/results/a75fab3f04d03cb39cd41a86b6f57307198ba5f1

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-05-29 10:05:04 +02:00

30 lines
838 B
Makefile

#############################################################
#
# pptp-linux
#
#############################################################
PPTP_LINUX_VERSION = 1.7.2
PPTP_LINUX_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/pptpclient
PPTP_LINUX_SOURCE = pptp-$(PPTP_LINUX_VERSION).tar.gz
PPTP_LINUX_MAKE = $(MAKE1)
define PPTP_LINUX_BUILD_CMDS
$(MAKE) -C $(@D) OPTIMIZE= DEBUG= \
CC="$(TARGET_CC)" \
CFLAGS="$(TARGET_CFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)"
endef
define PPTP_LINUX_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -D $(@D)/pptp $(TARGET_DIR)/usr/sbin/pptp
$(INSTALL) -m 0644 -D $(@D)/pptp.8 $(TARGET_DIR)/usr/share/man/man8/pptp.8
endef
define PPTP_LINUX_UNINSTALL_TARGET_CMDS
rm -f $(TARGET_DIR)/usr/sbin/pptp
rm -f $(TARGET_DIR)/usr/share/man/man8/pptp.8
endef
$(eval $(call GENTARGETS))