xref: /OK3568_Linux_fs/buildroot/package/argp-standalone/argp-standalone.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# argp-standalone
4#
5################################################################################
6
7ARGP_STANDALONE_VERSION = 1.3
8ARGP_STANDALONE_SITE = http://www.lysator.liu.se/~nisse/archive
9ARGP_STANDALONE_INSTALL_STAGING = YES
10ARGP_STANDALONE_LICENSE = LGPL-2.0+
11ARGP_STANDALONE_LICENSE_FILES = argp.h
12
13ARGP_STANDALONE_CONF_ENV = \
14	CFLAGS="$(TARGET_CFLAGS) -fPIC -fgnu89-inline"
15
16define ARGP_STANDALONE_INSTALL_STAGING_CMDS
17	$(INSTALL) -D $(@D)/libargp.a $(STAGING_DIR)/usr/lib/libargp.a
18	$(INSTALL) -D $(@D)/argp.h $(STAGING_DIR)/usr/include/argp.h
19endef
20
21define ARGP_STANDALONE_INSTALL_TARGET_CMDS
22	$(INSTALL) -D $(@D)/libargp.a $(TARGET_DIR)/usr/lib/libargp.a
23	$(INSTALL) -D $(@D)/argp.h $(TARGET_DIR)/usr/include/argp.h
24endef
25
26$(eval $(autotools-package))
27