]> git.saurik.com Git - wxWidgets.git/blame - src/mgl/makewat.env
detection of aqua layout scheme added
[wxWidgets.git] / src / mgl / makewat.env
CommitLineData
f17fb297
VS
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
9FINAL=0
10
11WATCOMVERSION
12
13WATCOMDIR=$(%WATCOM)
14MGLROOT=$(%MGL_ROOT)
15!ifeq FINAL 1
16MGLLIBDIR=$(MGLROOT)\lib\release\dos32\wc11
17!else
18MGLLIBDIR=$(MGLROOT)\lib\debug\dos32\wc11
19!endif
20
21
22.EXTENSIONS:
23.EXTENSIONS: .exe .obj .c .cc .cpp .res .rc .def
24
25WXDIR = $(%WXWIN)
26WXINC = $(WXDIR)\include
27
28# Suffixes
29OBJSUFF=obj
30SRCSUFF=cpp
31
32WXDEBUG=0
33
34!ifneq NOPRECOMP 1
35PRECOMP = /fh=$(WXDIR)\src\mgl\watcom.pch
36!endif
37
f05605ff
VS
38!ifeq FINAL 0
39DEBUGFLAGS = /D__WXDEBUG__ /d2
f17fb297
VS
40DEBUGINFO = debug all
41!else
42DEBUGFLAGS =
43DEBUGINFO =
44!endif
45
f17fb297
VS
46LEVEL = 386
47CCC = wpp$(LEVEL)
48CC = wcc$(LEVEL)
49OS_TARGET = dos4g
50MODEL =
51LINKOPTION = dos4g
52BINDCOMMAND = wrc
53WATLIBDIR = $(WATCOMDIR)\lib386\dos
54MINDATA =
55MAXDATA =
56STACK = option stack=200k
f05605ff 57LIBS = $(WXDIR)\lib\wx.lib $(WXDIR)\lib\regex.lib $(WXDIR)\lib\zlib.lib $(WXDIR)\lib\png.lib $(WXDIR)\lib\tiff.lib $(WXDIR)\lib\jpeg.lib &
f17fb297
VS
58 $(MGLLIBDIR)\dos4gw\pm.lib $(MGLLIBDIR)\mgl.lib $(MGLLIBDIR)\mglcpp.lib
59IFLAGS = -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
60;$(MGLROOT)\include
f17fb297
VS
61
62# Here are some possible optimization flags:
63# /5r Pentium timings
64# /fp5 /fpi87 Inline 80x87 instructions optimized for Pentium: coprocessor must be present
65# /ox Standard optimizations
66# /or Reordering for Pentium timings (included in /ox)
67# The Watcom-recommended flags for optimum Pentium speed are:
68# /oneatx /zp4 /5 /fpi87 /fp5
69
70OPTFLAGS=/ox /5r
71
72# /d1 for line numbers only: anything else produces an enormous wx32.lib
73#
74CPPFLAGS = /bt=dos4g /w1 /zq $(OPTFLAGS) $(MODEL) $(PRECOMP) $(DEBUGFLAGS) /d__WXMGL__ /d__WXUNIVERSAL__ /d__DOS__ $(EXTRACPPFLAGS) # /d__WATCOMC__
75
76.cpp.obj: # $< # .AUTODEPEND
77 *$(CCC) $(CPPFLAGS) $(IFLAGS) $<
78
79.c.obj: # $< # .AUTODEPEND
80 *$(CC) $(CPPFLAGS) $(IFLAGS) $<
81
82# This doesn't work for wcc
83# %create tmp.lbc
84# @%append tmp.lbc $(CPPFLAGS) $(IFLAGS) $<
85# echo $<
86# $(CC) @tmp.lbc
87
88dummy: .SYMBOLIC
89 @echo Please give a target for wxWin makefiles: the usual one is 'all'.
90
91erasepch: .SYMBOLIC
92 -erase $(WXDIR)\src\mgl\watcom.pch