Convert the watcom makefiles for use with wine under Linux

git-svn-id: svn://svn.cc65.org/cc65/trunk@2598 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2003-11-02 21:46:00 +00:00
parent e2c4314258
commit 5b3d0ddaf9
11 changed files with 357 additions and 227 deletions

View File

@@ -23,6 +23,9 @@ LNKCFG = ld.tmp
# Program arguments
CFLAGS = -d1 -onatx -zp4 -5 -zq -w2 -i=..\\common
# Target files
EXE = ca65.exe
# Create NT programs by default
ifndef TARGET
TARGET = NT
@@ -95,16 +98,14 @@ LIBS = ../common/common.lib
# ------------------------------------------------------------------------------
# Main targets
all: ca65
ca65: ca65.exe
all: $(EXE)
# ------------------------------------------------------------------------------
# Other targets
ca65.exe: $(OBJS) $(LIBS)
$(EXE): $(OBJS) $(LIBS)
@echo "DEBUG ALL" > $(LNKCFG)
@echo "OPTION QUIET" >> $(LNKCFG)
@echo "NAME $@" >> $(LNKCFG)
@@ -114,9 +115,11 @@ ca65.exe: $(OBJS) $(LIBS)
@rm $(LNKCFG)
clean:
@if exist *.obj del *.obj
@if exist ca65.exe del ca65.exe
@rm -f *~ core
zap: clean
@rm -f *.obj $(EXE)
strip:
@-$(WSTRIP) ca65.exe
@-$(WSTRIP) $(EXE)