aboutsummaryrefslogtreecommitdiffstats
path: root/package/gadgetfs-test/gadgetfs-test.mk
blob: 46bfd2424db3c92396a08bc21c643c616053cca2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#############################################################
#
# gadgetfs-test
#
#############################################################
GADGETFS_TEST_SOURCE=gadgetfs-test.tar.bz2
GADGETFS_TEST_SITE=http://avr32linux.org/twiki/pub/Main/GadgetFsTest/

GADGETFS_TEST_MAKEOPTS = CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)"

ifeq ($(BR2_PACKAGE_GADGETFS_TEST_USE_AIO),y)
GADGETFS_TEST_DEPENDENCIES = libaio
GADGETFS_TEST_MAKEOPTS+=USE_AIO=y
endif

define GADGETFS_TEST_BUILD_CMDS
	$(MAKE) -C $(@D) $(GADGETFS_TEST_MAKEOPTS)
endef

define GADGETFS_TEST_INSTALL_TARGET_CMDS
	$(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) prefix=/usr install
endef

define GADGETFS_TEST_UNINSTALL_TARGET_CMDS
	rm -f $(TARGET_DIR)/bin/gadgetfs-test
endef

define GADGETFS_TEST_CLEAN_CMDS
	-$(MAKE) -C $(@D) $(GADGETFS_TEST_MAKEOPTS) clean
endef

$(eval $(call GENTARGETS))