2008-02-07 01:53:36 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# fis
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
FIS_SOURCE:=fis.c
|
|
|
|
FIS_SITE:=http://svn.chezphil.org/utils/trunk
|
|
|
|
FIS_CAT:=$(ZCAT)
|
|
|
|
FIS_DIR:=$(BUILD_DIR)/fis
|
|
|
|
FIS_BINARY:=fis
|
|
|
|
FIS_TARGET_BINARY:=sbin/fis
|
|
|
|
|
|
|
|
$(DL_DIR)/$(FIS_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(FIS_SITE),$(FIS_SOURCE))
|
2008-02-07 01:53:36 +01:00
|
|
|
|
|
|
|
fis-source: $(DL_DIR)/$(FIS_SOURCE)
|
|
|
|
|
|
|
|
$(FIS_DIR)/.unpacked: $(DL_DIR)/$(FIS_SOURCE)
|
|
|
|
mkdir -p $(FIS_DIR)
|
|
|
|
cp -f $(DL_DIR)/$(FIS_SOURCE) $(FIS_DIR)
|
|
|
|
toolchain/patch-kernel.sh $(FIS_DIR) package/fis \*.patch
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
$(FIS_DIR)/$(FIS_BINARY): $(FIS_DIR)/.unpacked
|
|
|
|
$(MAKE) -C $(FIS_DIR) \
|
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) -std=c99" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)"
|
|
|
|
|
|
|
|
$(TARGET_DIR)/$(FIS_TARGET_BINARY): $(FIS_DIR)/$(FIS_BINARY)
|
|
|
|
rm -f $(TARGET_DIR)/$(FIS_TARGET_BINARY)
|
|
|
|
$(INSTALL) -D -m 0755 $(FIS_DIR)/$(FIS_BINARY) $(TARGET_DIR)/$(FIS_TARGET_BINARY)
|
|
|
|
$(STRIPCMD) $(STRIP_STRIP_ALL) $@
|
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
fis: $(TARGET_DIR)/$(FIS_TARGET_BINARY)
|
2008-02-07 01:53:36 +01:00
|
|
|
|
|
|
|
fis-clean:
|
|
|
|
-$(MAKE) -C $(FIS_DIR) clean
|
|
|
|
rm -f $(TARGET_DIR)/$(FIS_TARGET_BINARY)
|
|
|
|
|
|
|
|
fis-dirclean:
|
|
|
|
rm -rf $(FIS_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_FIS),y)
|
2008-02-07 01:53:36 +01:00
|
|
|
TARGETS+=fis
|
|
|
|
endif
|