]> git.saurik.com Git - wxWidgets.git/blob - src/mgl/makewat.env
wxConfig clean up and bug fix for record defaults
[wxWidgets.git] / src / mgl / makewat.env
1 # Purpose: Watcom environments for wxWindows makefiles.
2 # Author: Julian Smart and others
3 #
4 # The main things to change are:
5 #
6 # WATCOM: set to where the compiler is installed
7 # WXDIR: set to where the wxWindows is installed
8
9 FINAL=0
10
11 WATCOMVERSION
12
13 WATCOMDIR=$(%WATCOM)
14 MGLROOT=$(%MGL_ROOT)
15 !ifeq FINAL 1
16 MGLLIBDIR=$(MGLROOT)\lib\release\dos32\wc11
17 !else
18 MGLLIBDIR=$(MGLROOT)\lib\debug\dos32\wc11
19 !endif
20
21
22 .EXTENSIONS:
23 .EXTENSIONS: .exe .obj .c .cc .cpp .res .rc .def
24
25 WXDIR = $(%WXWIN)
26 WXINC = $(WXDIR)\include
27
28 # Suffixes
29 OBJSUFF=obj
30 SRCSUFF=cpp
31
32 WXDEBUG=0
33
34 !ifneq NOPRECOMP 1
35 PRECOMP = /fh=$(WXDIR)\src\mgl\watcom.pch
36 !endif
37
38 !ifeq WXDEBUG 1
39 DEBUGFLAGS = /D__WXDEBUG__ /o1
40 DEBUGINFO = debug all
41 !else
42 DEBUGFLAGS =
43 DEBUGINFO =
44 !endif
45
46 RC = wrc
47
48 LEVEL = 386
49 CCC = wpp$(LEVEL)
50 CC = wcc$(LEVEL)
51 OS_TARGET = dos4g
52 MODEL =
53 LINKOPTION = dos4g
54 BINDCOMMAND = wrc
55 WATLIBDIR = $(WATCOMDIR)\lib386\dos
56 MINDATA =
57 MAXDATA =
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
62 ;$(MGLROOT)\include
63 RESFLAGS1 = -r -bt=nt /i$(WXDIR)\include /i$(WXDIR)\contrib\include
64 RESFLAGS2 = -R $(name) /i$(WXDIR)\include /i$(WXDIR)\contrib\include
65
66 # Here are some possible optimization flags:
67 # /5r Pentium timings
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
73
74 OPTFLAGS=/ox /5r
75
76 # /d1 for line numbers only: anything else produces an enormous wx32.lib
77 #
78 CPPFLAGS = /bt=dos4g /w1 /zq $(OPTFLAGS) $(MODEL) $(PRECOMP) $(DEBUGFLAGS) /d__WXMGL__ /d__WXUNIVERSAL__ /d__DOS__ $(EXTRACPPFLAGS) # /d__WATCOMC__
79
80 .cpp.obj: # $< # .AUTODEPEND
81 *$(CCC) $(CPPFLAGS) $(IFLAGS) $<
82
83 .c.obj: # $< # .AUTODEPEND
84 *$(CC) $(CPPFLAGS) $(IFLAGS) $<
85
86 # This doesn't work for wcc
87 # %create tmp.lbc
88 # @%append tmp.lbc $(CPPFLAGS) $(IFLAGS) $<
89 # echo $<
90 # $(CC) @tmp.lbc
91
92 dummy: .SYMBOLIC
93 @echo Please give a target for wxWin makefiles: the usual one is 'all'.
94
95 erasepch: .SYMBOLIC
96 -erase $(WXDIR)\src\mgl\watcom.pch