1 # Purpose: Watcom environments for wxWindows makefiles.
2 # Author: Julian Smart and others
4 # The main things to change are:
6 # WATCOM: set to where the compiler is installed
7 # WXDIR: set to where the wxWindows is installed
16 MGLLIBDIR=$(MGLROOT)\lib\release\dos32\wc11
18 MGLLIBDIR=$(MGLROOT)\lib\debug\dos32\wc11
23 .EXTENSIONS: .exe .obj .c .cc .cpp .res .rc .def
26 WXINC = $(WXDIR)\include
35 PRECOMP = /fh=$(WXDIR)\src\mgl\watcom.pch
39 DEBUGFLAGS = /D__WXDEBUG__ /o1
55 WATLIBDIR = $(WATCOMDIR)\lib386\dos
58 STACK = option stack=200k
59 LIBS = $(WXDIR)\lib\wxmgl.lib $(WXDIR)\lib\regex.lib $(WXDIR)\lib\zlib.lib $(WXDIR)\lib\png.lib $(WXDIR)\lib\tiff.lib $(WXDIR)\lib\jpeg.lib &
60 $(MGLLIBDIR)\dos4gw\pm.lib $(MGLLIBDIR)\mgl.lib $(MGLLIBDIR)\mglcpp.lib
61 IFLAGS = -i=$(WXDIR)\lib\mgl;$(WXINC) -i=$(WXDIR)\contrib\include -i=$(%watcom)\h;$(%watcom)\h\dos;$(WXDIR)\src\regex;$(WXDIR)\src\png;$(WXDIR)\src\zlib;$(WXDIR)\src\jpeg;$(WXDIR)\src\tiff
63 RESFLAGS1 = -r -bt=nt /i$(WXDIR)\include /i$(WXDIR)\contrib\include
64 RESFLAGS2 = -R $(name) /i$(WXDIR)\include /i$(WXDIR)\contrib\include
66 # Here are some possible optimization flags:
68 # /fp5 /fpi87 Inline 80x87 instructions optimized for Pentium: coprocessor must be present
69 # /ox Standard optimizations
70 # /or Reordering for Pentium timings (included in /ox)
71 # The Watcom-recommended flags for optimum Pentium speed are:
72 # /oneatx /zp4 /5 /fpi87 /fp5
76 # /d1 for line numbers only: anything else produces an enormous wx32.lib
78 CPPFLAGS = /bt=dos4g /w1 /zq $(OPTFLAGS) $(MODEL) $(PRECOMP) $(DEBUGFLAGS) /d__WXMGL__ /d__WXUNIVERSAL__ /d__DOS__ $(EXTRACPPFLAGS) # /d__WATCOMC__
80 .cpp.obj: # $< # .AUTODEPEND
81 *$(CCC) $(CPPFLAGS) $(IFLAGS) $<
83 .c.obj: # $< # .AUTODEPEND
84 *$(CC) $(CPPFLAGS) $(IFLAGS) $<
86 # This doesn't work for wcc
88 # @%append tmp.lbc $(CPPFLAGS) $(IFLAGS) $<
93 @echo Please give a target for wxWin makefiles: the usual one is 'all'.
96 -erase $(WXDIR)\src\mgl\watcom.pch