Added 'make strip'.

This commit is contained in:
nehalmistry 2002-04-05 19:18:27 +00:00
parent e31d6246c9
commit e0b14f7cf6

View file

@ -29,10 +29,10 @@ TOPDIR= .
RULESFILE ?= Rules.make
WINRULESFILE = Rules.make.WIN32
CROSSDIR=/usr/local/cross-tools
include $(TOPDIR)/$(RULESFILE)
CROSSDIR=/usr/local/cross-tools
MAKEFLAGS= TOPDIR=$(shell pwd)
MODULES= src tools
@ -119,6 +119,10 @@ freecraft.exe: src etlib/$(OBJDIR)prgname.$(OE) etlib/$(OBJDIR)getopt.$(OE) \
etlib/$(OBJDIR)hash.$(OE) \
-lSDLmain $(CLONELIBS) -I. $(CFLAGS)
strip:
@if [ -f freecraft ]; then strip freecraft; fi
@if [ -f freecraft.exe ]; then $(CROSSDIR)/i386-mingw32msvc/bin/strip freecraft.exe; fi
src/$(OBJDIR)freecraftrc.$(OE): src/freecraft.rc
windres --include-dir contrib -osrc/$(OBJDIR)freecraftrc.$(OE) src/freecraft.rc