Files
cc65/src/da65/make/watcom.mak
cuz 817b2ac261 Renamed the config file to info file and changed the handling when the
disassembler is invoked.


git-svn-id: svn://svn.cc65.org/cc65/trunk@2255 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-08-09 08:28:44 +00:00

95 lines
1.9 KiB
Makefile

#
# da65 Makefile for the Watcom compiler (using GNU make)
#
# ------------------------------------------------------------------------------
# Generic stuff
AR = WLIB
LD = WLINK
LNKCFG = ld.tmp
# --------------------- OS2 ---------------------
ifeq ($(TARGET),OS2)
SYSTEM = os2v2
CC = WCC386
CFLAGS = -bt=$(TARGET) -d1 -onatx -zp4 -5 -zq -w2
endif
# -------------------- DOS4G --------------------
ifeq ($(TARGET),DOS32)
SYSTEM = dos4g
CC = WCC386
CFLAGS = -bt=$(TARGET) -d1 -onatx -zp4 -5 -zq -w2
endif
# --------------------- NT ----------------------
ifeq ($(TARGET),NT)
SYSTEM = nt
CC = WCC386
CFLAGS = -bt=$(TARGET) -d1 -onatx -zp4 -5 -zq -w2
endif
# Add the include dir
CFLAGS += -i=..\common
# ------------------------------------------------------------------------------
# Implicit rules
%.obj: %.c
$(CC) $(CFLAGS) $^
# ------------------------------------------------------------------------------
# All OBJ files
OBJS = attrtab.obj \
code.obj \
cpu.obj \
data.obj \
error.obj \
global.obj \
handler.obj \
infofile.obj \
main.obj \
opc6502.obj \
opc65816.obj \
opc65c02.obj \
opc65sc02.obj \
opctable.obj \
output.obj \
scanner.obj
LIBS = ..\common\common.lib
# ------------------------------------------------------------------------------
# Main targets
all: da65
da65: da65.exe
# ------------------------------------------------------------------------------
# Other targets
da65.exe: $(OBJS) $(LIBS)
@echo DEBUG ALL > $(LNKCFG)
@echo OPTION QUIET >> $(LNKCFG)
@echo NAME $@ >> $(LNKCFG)
@for %%i in ($(OBJS)) do echo FILE %%i >> $(LNKCFG)
@for %%i in ($(LIBS)) do echo LIBRARY %%i >> $(LNKCFG)
$(LD) system $(SYSTEM) @$(LNKCFG)
@rm $(LNKCFG)
clean:
@if exist *.obj del *.obj
@if exist *.obj del da65.exe
strip:
@-wstrip da65.exe