2 # OD65 Makefile for the Watcom compiler (using GNU make)
5 # ------------------------------------------------------------------------------
12 # --------------------- OS2 ---------------------
16 CFLAGS = -bt=$(TARGET) -d1 -onatx -zp4 -5 -zq -w2
19 # -------------------- DOS4G --------------------
20 ifeq ($(TARGET),DOS32)
23 CFLAGS = -bt=$(TARGET) -d1 -onatx -zp4 -5 -zq -w2
26 # --------------------- NT ----------------------
30 CFLAGS = -bt=$(TARGET) -d1 -onatx -zp4 -5 -zq -w2
34 CFLAGS += -i=..\common
36 # ------------------------------------------------------------------------------
43 # ------------------------------------------------------------------------------
44 # All library OBJ files
52 LIBS = ..\common\common.lib
55 # ------------------------------------------------------------------------------
65 # ------------------------------------------------------------------------------
69 od65.exe: $(OBJS) $(LIBS)
70 @echo DEBUG ALL > $(LNKCFG)
71 @echo OPTION QUIET >> $(LNKCFG)
72 @echo NAME $@ >> $(LNKCFG)
73 @for %%i in ($(OBJS)) do echo FILE %%i >> $(LNKCFG)
74 @for %%i in ($(LIBS)) do echo LIBRARY %%i >> $(LNKCFG)
75 $(LD) system $(SYSTEM) @$(LNKCFG)
79 @if exist *.obj del *.obj
80 @if exist od65.exe del od65.exe