]>
Commit | Line | Data |
---|---|---|
2bda0e17 KB |
1 | # File: makewat.env |
2 | # Purpose: Watcom environments for wxWindows makefiles. | |
3 | # Author: Julian Smart and others | |
4 | # | |
5 | # The main things to change are: | |
6 | # | |
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] | |
10 | ||
11 | FINAL=0 | |
12 | WATCOMDIR=$(%WATCOM) | |
2bda0e17 | 13 | |
7be1f0d9 JS |
14 | .EXTENSIONS: |
15 | .EXTENSIONS: .exe .obj .c .cc .cpp .res .rc .def | |
2bda0e17 | 16 | |
7be1f0d9 JS |
17 | #WXDIR = d:\wx2\wxwind~1 |
18 | WXDIR = $(%WXWIN) | |
19 | WXINC = $(WXDIR)\include | |
2bda0e17 KB |
20 | |
21 | # Suffixes | |
22 | OBJSUFF=obj | |
23 | SRCSUFF=cpp | |
24 | ||
b2aef89b | 25 | WXDEBUG=0 |
2bda0e17 KB |
26 | |
27 | !ifneq NOPRECOMP 1 | |
28 | PRECOMP = /fh=$(WXDIR)\src\msw\watcom.pch | |
29 | !endif | |
30 | ||
7be1f0d9 JS |
31 | !ifeq WXDEBUG 1 |
32 | DEBUGFLAGS = /D__WXDEBUG__ | |
2bda0e17 | 33 | DEBUGINFO = debug all |
7be1f0d9 JS |
34 | !else |
35 | DEBUGFLAGS = | |
36 | DEBUGINFO = | |
2bda0e17 | 37 | !endif |
2bda0e17 | 38 | |
7be1f0d9 | 39 | RC = wrc |
2bda0e17 KB |
40 | |
41 | LEVEL = 386 | |
42 | CCC = wpp$(LEVEL) | |
43 | CC = wcc$(LEVEL) | |
44 | OS_TARGET = nt_win | |
45 | MODEL = | |
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 | |
49 | BINDCOMMAND = wrc | |
50 | WATLIBDIR = $(WATCOMDIR)\lib386\nt | |
51 | MINDATA = | |
52 | MAXDATA = | |
53 | STACK = option stack=64k | |
54 | EXTRALIBS = $(WATLIBDIR)\ctl3d32.lib $(WATLIBDIR)\odbc32.lib | |
7be1f0d9 JS |
55 | IFLAGS = -i=$(WXINC) -i=$(%watcom)\h;$(%watcom)\h\nt # -i=$(WXDIR)\include\wx\msw\gnuwin32 |
56 | RESFLAGS1 = -r -bt=nt /i$(WXDIR)\include | |
57 | RESFLAGS2 = -R $(name) /i$(WXDIR)\include | |
2bda0e17 KB |
58 | |
59 | # Here are some possible optimization flags: | |
60 | # /5r Pentium timings | |
61 | # /fp5 /fpi87 Inline 80x87 instructions optimized for Pentium: coprocessor must be present | |
62 | # /ox Standard optimizations | |
63 | # /or Reordering for Pentium timings (included in /ox) | |
64 | # The Watcom-recommended flags for optimum Pentium speed are: | |
65 | # /oneatx /zp4 /5 /fpi87 /fp5 | |
66 | ||
7be1f0d9 | 67 | OPTFLAGS=/ox /5r |
2bda0e17 KB |
68 | |
69 | # /d1 for line numbers only: anything else produces an enormous wx32.lib | |
7be1f0d9 | 70 | CPPFLAGS = /bt=nt /w1 /D__WIN32__ /D__WIN95__ /D__WINDOWS__ /zq $(OPTFLAGS) $(MODEL) $(PRECOMP) /d1 $(DEBUGFLAGS) /d__WXMSW__ $(EXTRACPPFLAGS) # /d__WATCOMC__ |
2bda0e17 KB |
71 | |
72 | .cpp.obj: # $< # .AUTODEPEND | |
73 | *$(CCC) $(CPPFLAGS) $(IFLAGS) $< | |
74 | ||
2bda0e17 KB |
75 | .c.obj: # $< # .AUTODEPEND |
76 | *$(CC) $(CPPFLAGS) $(IFLAGS) $< | |
77 | ||
78 | # This doesn't work for wcc | |
79 | # %create tmp.lbc | |
80 | # @%append tmp.lbc $(CPPFLAGS) $(IFLAGS) $< | |
81 | # echo $< | |
82 | # $(CC) @tmp.lbc | |
83 | ||
84 | dummy: .SYMBOLIC | |
85 | @echo Please give a target for wxWin makefiles: the usual one is 'all'. | |
86 | ||
87 | erasepch: .SYMBOLIC | |
88 | -erase $(WXDIR)\src\msw\watcom.pch |