2 # Purpose: Watcom environments for wxWindows makefiles.
3 # Author: Julian Smart and others
5 # The main things to change are:
7 # WATCOM: set to where the compiler is installed
8 # WXDIR: set to where the wxWindows is installed
9 # MODE: set to windows [16 bit windows], nt [win32s], or win386 [32-bit non-WIN32]
15 .EXTENSIONS: .exe .obj .c .cc .cpp .res .rc .def
17 #WXDIR = d:\wx2\wxwind~1
19 WXINC = $(WXDIR)\include
28 PRECOMP = /fh=$(WXDIR)\src\msw\watcom.pch
32 DEBUGFLAGS = /D__WXDEBUG__
46 # If you use win95, assumptions will be made about Win95 icon format etc.
47 # so nt_win is probably better for simultaneous Win32s/Win95/NT operation.
48 LINKOPTION = nt_win # win95
50 WATLIBDIR = $(WATCOMDIR)\lib386\nt
53 STACK = option stack=64k
54 EXTRALIBS = $(WXDIR)\lib\zlib.lib $(WXDIR)\lib\png.lib $(WXDIR)\lib\xpm.lib &
55 $(WATLIBDIR)\odbc32.lib $(WATLIBDIR)\comctl32.lib $(WATLIBDIR)\comdlg32.lib &
56 $(WATLIBDIR)\ole32.lib $(WATLIBDIR)\oleaut32.lib $(WATLIBDIR)\uuid.lib
57 IFLAGS = -i=$(WXINC) -i=$(%watcom)\h;$(%watcom)\h\nt # -i=$(WXDIR)\include\wx\msw\gnuwin32
58 RESFLAGS1 = -r -bt=nt /i$(WXDIR)\include
59 RESFLAGS2 = -R $(name) /i$(WXDIR)\include
61 # Here are some possible optimization flags:
63 # /fp5 /fpi87 Inline 80x87 instructions optimized for Pentium: coprocessor must be present
64 # /ox Standard optimizations
65 # /or Reordering for Pentium timings (included in /ox)
66 # The Watcom-recommended flags for optimum Pentium speed are:
67 # /oneatx /zp4 /5 /fpi87 /fp5
71 # /d1 for line numbers only: anything else produces an enormous wx32.lib
72 CPPFLAGS = /bt=nt /w1 /DWIN32 /D__WIN32__ /D__WIN95__ /D__WINDOWS__ /zq $(OPTFLAGS) $(MODEL) $(PRECOMP) /d1 $(DEBUGFLAGS) /d__WXMSW__ $(EXTRACPPFLAGS) # /d__WATCOMC__
74 .cpp.obj: # $< # .AUTODEPEND
75 *$(CCC) $(CPPFLAGS) $(IFLAGS) $<
77 .c.obj: # $< # .AUTODEPEND
78 *$(CC) $(CPPFLAGS) $(IFLAGS) $<
80 # This doesn't work for wcc
82 # @%append tmp.lbc $(CPPFLAGS) $(IFLAGS) $<
87 @echo Please give a target for wxWin makefiles: the usual one is 'all'.
90 -erase $(WXDIR)\src\msw\watcom.pch