package/dhcp/S80dhcp-server: allow empty INTERFACES
[buildroot-gz.git] / package / cramfs / cramfs.mk
blob72860b6b7a5d24745008fe5756fdc5f8d63241f0
1 ################################################################################
3 # cramfs
5 ################################################################################
7 CRAMFS_VERSION = 1.1
8 CRAMFS_SITE = http://downloads.sourceforge.net/project/cramfs/cramfs/$(CRAMFS_VERSION)
9 CRAMFS_LICENSE = GPLv2+
10 CRAMFS_LICENSE_FILES = COPYING
12 CRAMFS_DEPENDENCIES = zlib
14 define CRAMFS_BUILD_CMDS
15 $(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D)
16 endef
18 define CRAMFS_INSTALL_TARGET_CMDS
19 $(INSTALL) -D -m 755 $(@D)/mkcramfs $(TARGET_DIR)/usr/bin/mkcramfs
20 $(INSTALL) -D -m 755 $(@D)/cramfsck $(TARGET_DIR)/usr/bin/cramfsck
21 endef
23 define HOST_CRAMFS_BUILD_CMDS
24 $(HOST_MAKE_ENV) $(MAKE) CFLAGS="$(HOST_CFLAGS) -Wall -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" LDFLAGS="$(HOST_LDFLAGS)" -C $(@D)
25 endef
27 define HOST_CRAMFS_INSTALL_CMDS
28 $(INSTALL) -D -m 755 $(@D)/mkcramfs $(HOST_DIR)/usr/bin/mkcramfs
29 $(INSTALL) -D -m 755 $(@D)/cramfsck $(HOST_DIR)/usr/bin/cramfsck
30 endef
32 $(eval $(generic-package))
33 $(eval $(host-generic-package))