diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2005-08-03 01:20:34 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2005-08-03 01:20:34 +0000 |
commit | c0a49140ad047ba10bddc99fc7b56980c9c5571e (patch) | |
tree | 1cf8f1bc86602572e48fd800570a14a06d4abc8d /toolchain/sstrip/sstrip.mk | |
parent | f3dcc7593c45ea4ba7a2147bfa394cf41ebef505 (diff) |
Add sstrip for host and/or target.
Diffstat (limited to 'toolchain/sstrip/sstrip.mk')
-rw-r--r-- | toolchain/sstrip/sstrip.mk | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/toolchain/sstrip/sstrip.mk b/toolchain/sstrip/sstrip.mk new file mode 100644 index 000000000..d18853118 --- /dev/null +++ b/toolchain/sstrip/sstrip.mk @@ -0,0 +1,69 @@ +###################################################################### +# +# sstrip +# +###################################################################### + +SSTRIP_SOURCE_FILE:=$(TOPDIR)/toolchain/sstrip/sstrip.c + +###################################################################### +# +# sstrip host +# +###################################################################### + +SSTRIP_HOST:=$(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-sstrip + +$(SSTRIP_HOST): $(SSTRIP_SOURCE_FILE) + ln -snf ../../bin/$(REAL_GNU_TARGET_NAME)-sstrip \ + $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/bin/sstrip + ln -snf $(REAL_GNU_TARGET_NAME)-sstrip \ + $(STAGING_DIR)/bin/$(GNU_TARGET_NAME)-sstrip + $(HOSTCC) $(SSTRIP_SOURCE_FILE) -o $(SSTRIP_HOST) + +sstrip_host: $(SSTRIP_HOST) + +sstrip_host-source: $(SSTRIP_SOURCE_FILE) + +sstrip_host-clean: + rm -f $(SSTRIP_HOST) + rm -f $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/bin/sstrip + rm -f $(STAGING_DIR)/bin/$(GNU_TARGET_NAME)-sstrip + +sstrip_host-dirclean: + true + +###################################################################### +# +# sstrip target +# +###################################################################### + +SSTRIP_TARGET:=$(TARGET_DIR)/usr/bin/sstrip + +$(SSTRIP_TARGET): $(SSTRIP_SOURCE_FILE) + $(TARGET_CC) $(TARGET_CFLAGS) $(SSTRIP_SOURCE_FILE) -o $(SSTRIP_TARGET) + +sstrip_target: $(SSTRIP_TARGET) + +sstrip_target-source: $(SSTRIP_SOURCE_FILE) + +sstrip_target-clean: + rm -f $(SSTRIP_TARGET) + +sstrip_target-dirclean: + true + +############################################################# +# +# Toplevel Makefile options +# +############################################################# + +ifeq ($(strip $(BR2_PACKAGE_SSTRIP_HOST)),y) +TARGETS+=sstrip_host +endif + +ifeq ($(strip $(BR2_PACKAGE_SSTRIP_TARGET)),y) +TARGETS+=sstrip_target +endif |