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>
25 lines
677 B
Makefile
25 lines
677 B
Makefile
#############################################################
|
|
#
|
|
# libaio
|
|
#
|
|
#############################################################
|
|
LIBAIO_VERSION=0.3.109
|
|
LIBAIO_SOURCE=libaio-$(LIBAIO_VERSION).tar.bz2
|
|
LIBAIO_SITE=$(BR2_KERNEL_MIRROR)/linux/libs/aio/
|
|
LIBAIO_INSTALL_STAGING=YES
|
|
|
|
define LIBAIO_BUILD_CMDS
|
|
$(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
|
endef
|
|
|
|
define LIBAIO_INSTALL_STAGING_CMDS
|
|
$(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
|
|
endef
|
|
|
|
define LIBAIO_INSTALL_TARGET_CMDS
|
|
$(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
|
endef
|
|
|
|
$(eval $(call GENTARGETS))
|
|
|