Add optional use of STACK & STRIP Variables.
This commit is contained in:
parent
e56b72da5e
commit
05e71dc142
|
@ -2,16 +2,14 @@
|
||||||
# Atari target setup
|
# Atari target setup
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
|
|
||||||
CROSS_COMPILE = m68k-atari-mint-
|
# !!!IMPORTANT!!!
|
||||||
|
# On regular m68k-atari-mint installation, these must be set
|
||||||
ifeq ($(HOST),mint)
|
# manually via env. variables, because the m68k-atari-mint
|
||||||
CROSS_COMPILE :=
|
# toolchain is located in /usr/bin and the wildcard matching
|
||||||
endif
|
# fails then. So this wildcard matches only works for
|
||||||
|
# the netsurf environment!
|
||||||
STRIP := $(CROSS_COMPILE)strip
|
STRIP := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*strip)
|
||||||
STACK := $(CROSS_COMPILE)stack
|
STACK := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*stack)
|
||||||
|
|
||||||
$(Q)echo Strip: $(STRIP)
|
|
||||||
|
|
||||||
ifeq ($(ATARI_ARCH),68000)
|
ifeq ($(ATARI_ARCH),68000)
|
||||||
PRGSUFFIX := 000.app
|
PRGSUFFIX := 000.app
|
||||||
|
@ -126,9 +124,13 @@ package-atari: $(ATARI_FONT_TMP_DIR)$(ATARI_FONT_NAME) $(PKGNAME)
|
||||||
$(VQ)echo Creating $(PKGNAME)
|
$(VQ)echo Creating $(PKGNAME)
|
||||||
|
|
||||||
$(PKGNAME): $(EXETARGET)
|
$(PKGNAME): $(EXETARGET)
|
||||||
|
ifneq ($(strip $(STRIP)),)
|
||||||
$(Q)echo Stripping symbols from $(EXETARGET) with $(STRIP)
|
$(Q)echo Stripping symbols from $(EXETARGET) with $(STRIP)
|
||||||
$(Q)$(STRIP) $(EXETARGET)
|
$(Q)$(STRIP) $(EXETARGET)
|
||||||
|
endif
|
||||||
|
ifneq ($(strip $(STACK)),)
|
||||||
$(Q)$(STACK) -S 256k $(EXETARGET)
|
$(Q)$(STACK) -S 256k $(EXETARGET)
|
||||||
|
endif
|
||||||
$(Q)rm -rf $(ATARI_TARGET_DIR)
|
$(Q)rm -rf $(ATARI_TARGET_DIR)
|
||||||
$(Q)rm -rf $(PKGNAME)
|
$(Q)rm -rf $(PKGNAME)
|
||||||
$(Q)mkdir $(ATARI_TARGET_DIR)
|
$(Q)mkdir $(ATARI_TARGET_DIR)
|
||||||
|
|
Loading…
Reference in New Issue