mcookie: convert to the GENTARGETS infrastructure
[Peter: fix missing newline at eof] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
4ad5533832
commit
190700ab03
@ -4,17 +4,19 @@
|
|||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
|
|
||||||
$(TARGET_DIR)/usr/bin/mcookie: package/x11r7/mcookie/mcookie.c
|
# Source included in Buildroot
|
||||||
$(TARGET_CC) -Wall -Os -s package/x11r7/mcookie/mcookie.c -o $(TARGET_DIR)/usr/bin/mcookie
|
MCOOKIE_SOURCE =
|
||||||
|
|
||||||
|
define MCOOKIE_EXTRACT_CMDS
|
||||||
|
cp package/x11r7/mcookie/mcookie.c $(@D)/
|
||||||
|
endef
|
||||||
|
|
||||||
mcookie: $(TARGET_DIR)/usr/bin/mcookie
|
define MCOOKIE_BUILD_CMDS
|
||||||
|
(cd $(@D); $(TARGET_CC) -Wall -Os -s mcookie.c -o mcookie)
|
||||||
|
endef
|
||||||
|
|
||||||
#############################################################
|
define MCOOKIE_INSTALL_TARGET_CMDS
|
||||||
#
|
install -m 0755 -D $(@D)/mcookie $(TARGET_DIR)/usr/bin/mcookie
|
||||||
# Toplevel Makefile options
|
endef
|
||||||
#
|
|
||||||
#############################################################
|
$(eval $(call GENTARGETS))
|
||||||
ifeq ($(BR2_PACKAGE_MCOOKIE),y)
|
|
||||||
TARGETS+=mcookie
|
|
||||||
endif
|
|
||||||
|
Loading…
Reference in New Issue
Block a user