From 05e71dc142fa6ab2acf85bce09b4b6327e1a920d Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Sun, 14 Oct 2012 00:03:59 +0200 Subject: [PATCH] Add optional use of STACK & STRIP Variables. --- atari/Makefile.target | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/atari/Makefile.target b/atari/Makefile.target index 02c6839b9..9730650ab 100644 --- a/atari/Makefile.target +++ b/atari/Makefile.target @@ -2,16 +2,14 @@ # Atari target setup # ---------------------------------------------------------------------------- -CROSS_COMPILE = m68k-atari-mint- - -ifeq ($(HOST),mint) -CROSS_COMPILE := -endif - -STRIP := $(CROSS_COMPILE)strip -STACK := $(CROSS_COMPILE)stack - -$(Q)echo Strip: $(STRIP) +# !!!IMPORTANT!!! +# On regular m68k-atari-mint installation, these must be set +# manually via env. variables, because the m68k-atari-mint +# toolchain is located in /usr/bin and the wildcard matching +# fails then. So this wildcard matches only works for +# the netsurf environment! +STRIP := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*strip) +STACK := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*stack) ifeq ($(ATARI_ARCH),68000) PRGSUFFIX := 000.app @@ -126,9 +124,13 @@ package-atari: $(ATARI_FONT_TMP_DIR)$(ATARI_FONT_NAME) $(PKGNAME) $(VQ)echo Creating $(PKGNAME) $(PKGNAME): $(EXETARGET) +ifneq ($(strip $(STRIP)),) $(Q)echo Stripping symbols from $(EXETARGET) with $(STRIP) $(Q)$(STRIP) $(EXETARGET) +endif +ifneq ($(strip $(STACK)),) $(Q)$(STACK) -S 256k $(EXETARGET) +endif $(Q)rm -rf $(ATARI_TARGET_DIR) $(Q)rm -rf $(PKGNAME) $(Q)mkdir $(ATARI_TARGET_DIR)