mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-25 14:33:29 +08:00
0849e8193e
Thanks to the pkgparentdir and pkgname functions, we can rewrite the GENTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
20 lines
616 B
Makefile
20 lines
616 B
Makefile
#############################################################
|
|
#
|
|
# statserial
|
|
#
|
|
#############################################################
|
|
STATSERIAL_VERSION = 1.1
|
|
STATSERIAL_SOURCE = statserial-$(STATSERIAL_VERSION).tar.gz
|
|
STATSERIAL_SITE = http://www.ibiblio.org/pub/Linux/system/serial/
|
|
STATSERIAL_DEPENDENCIES = ncurses
|
|
|
|
define STATSERIAL_BUILD_CMDS
|
|
$(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D)
|
|
endef
|
|
|
|
define STATSERIAL_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D -m 0755 $(@D)/statserial $(TARGET_DIR)/usr/bin/statserial
|
|
endef
|
|
|
|
$(eval $(call GENTARGETS))
|