kumquat-buildroot/package/gadgetfs-test/gadgetfs-test.mk

34 lines
937 B
Makefile
Raw Normal View History

################################################################################
2007-07-28 17:30:20 +02:00
#
# gadgetfs-test
#
################################################################################
GADGETFS_TEST_SOURCE = gadgetfs-test.tar.bz2
GADGETFS_TEST_SITE = http://mirror.egtvedt.no/avr32linux.org/twiki/pub/Main/GadgetFsTest/
2007-07-28 17:30:20 +02:00
GADGETFS_TEST_MAKEOPTS = CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)"
2007-07-28 17:30:20 +02:00
ifeq ($(BR2_PACKAGE_GADGETFS_TEST_USE_AIO),y)
GADGETFS_TEST_DEPENDENCIES = libaio
2007-07-28 17:30:20 +02:00
GADGETFS_TEST_MAKEOPTS+=USE_AIO=y
endif
define GADGETFS_TEST_BUILD_CMDS
$(MAKE) -C $(@D) $(GADGETFS_TEST_MAKEOPTS)
endef
2007-07-28 17:30:20 +02:00
define GADGETFS_TEST_INSTALL_TARGET_CMDS
$(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) prefix=/usr install
endef
2007-07-28 17:30:20 +02:00
define GADGETFS_TEST_UNINSTALL_TARGET_CMDS
rm -f $(TARGET_DIR)/bin/gadgetfs-test
endef
2007-07-28 17:30:20 +02:00
define GADGETFS_TEST_CLEAN_CMDS
-$(MAKE) -C $(@D) $(GADGETFS_TEST_MAKEOPTS) clean
endef
2007-07-28 17:30:20 +02:00
$(eval $(generic-package))