Commit 190700ab authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Peter Korsgaard
Browse files

mcookie: convert to the GENTARGETS infrastructure



[Peter: fix missing newline at eof]
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 4ad55338
Loading
Loading
Loading
Loading
+13 −11
Original line number Diff line number Diff line
@@ -4,17 +4,19 @@
#
#############################################################

$(TARGET_DIR)/usr/bin/mcookie: package/x11r7/mcookie/mcookie.c
	$(TARGET_CC) -Wall -Os -s package/x11r7/mcookie/mcookie.c -o $(TARGET_DIR)/usr/bin/mcookie
# Source included in Buildroot
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

#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(BR2_PACKAGE_MCOOKIE),y)
TARGETS+=mcookie
endif
define MCOOKIE_INSTALL_TARGET_CMDS
	install -m 0755 -D $(@D)/mcookie $(TARGET_DIR)/usr/bin/mcookie
endef

$(eval $(call GENTARGETS))