]> git.saurik.com Git - wxWidgets.git/blame - src/makewat.env
fixed bugs with setting the client size when the difference between the total and...
[wxWidgets.git] / src / makewat.env
CommitLineData
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
11FINAL=0
12WATCOMDIR=$(%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
18WXDIR = $(%WXWIN)
19WXINC = $(WXDIR)\include
2bda0e17
KB
20
21# Suffixes
22OBJSUFF=obj
23SRCSUFF=cpp
24
b2aef89b 25WXDEBUG=0
2bda0e17
KB
26
27!ifneq NOPRECOMP 1
28PRECOMP = /fh=$(WXDIR)\src\msw\watcom.pch
29!endif
30
7be1f0d9 31!ifeq WXDEBUG 1
f6bcfd97 32DEBUGFLAGS = /D__WXDEBUG__ /o1
2bda0e17 33DEBUGINFO = debug all
7be1f0d9
JS
34!else
35DEBUGFLAGS =
36DEBUGINFO =
2bda0e17 37!endif
2bda0e17 38
7be1f0d9 39RC = wrc
2bda0e17
KB
40
41LEVEL = 386
42CCC = wpp$(LEVEL)
43CC = wcc$(LEVEL)
44OS_TARGET = nt_win
45MODEL =
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.
48LINKOPTION = nt_win # win95
49BINDCOMMAND = wrc
50WATLIBDIR = $(WATCOMDIR)\lib386\nt
51MINDATA =
52MAXDATA =
53STACK = option stack=64k
08e0d1cc 54LIBS = $(WXDIR)\lib\wx.lib $(WXDIR)\lib\regex.lib $(WXDIR)\lib\zlib.lib $(WXDIR)\lib\png.lib $(WXDIR)\lib\tiff.lib $(WXDIR)\lib\jpeg.lib &
0a240683 55 $(WATLIBDIR)\comctl32.lib $(WATLIBDIR)\comdlg32.lib &
f6bcfd97 56 $(WATLIBDIR)\ole32.lib $(WATLIBDIR)\oleaut32.lib $(WATLIBDIR)\opengl32.lib &
ace03f87 57 $(WATLIBDIR)\uuid.lib $(WXDIR)\lib\watcom\odbc32.lib
08e0d1cc 58IFLAGS = -i=$(WXINC) -i=$(WXDIR)\contrib\include -i=$(%watcom)\h;$(%watcom)\h\nt;$(WXDIR)\src\regex;$(WXDIR)\src\png;$(WXDIR)\src\zlib;$(WXDIR)\src\jpeg;$(WXDIR)\src\tiff;$(WXDIR)\include\wx\msw\gnuwin32
b14391d1
JS
59RESFLAGS1 = -r -bt=nt /i$(WXDIR)\include /i$(WXDIR)\contrib\include
60RESFLAGS2 = -R $(name) /i$(WXDIR)\include /i$(WXDIR)\contrib\include
2bda0e17
KB
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
7be1f0d9 70OPTFLAGS=/ox /5r
2bda0e17
KB
71
72# /d1 for line numbers only: anything else produces an enormous wx32.lib
9f51f2b6
VZ
73#
74# NB: /bm switch is needed for thread-safe runtime, if you don't use
75# wxThread you may remove it
76CPPFLAGS = /bt=nt /w1 /DWIN32 /bm /zq $(OPTFLAGS) $(MODEL) $(PRECOMP) $(DEBUGFLAGS) /d__WXMSW__ $(EXTRACPPFLAGS) # /d__WATCOMC__
2bda0e17
KB
77
78.cpp.obj: # $< # .AUTODEPEND
79 *$(CCC) $(CPPFLAGS) $(IFLAGS) $<
80
2bda0e17
KB
81.c.obj: # $< # .AUTODEPEND
82 *$(CC) $(CPPFLAGS) $(IFLAGS) $<
83
84# This doesn't work for wcc
85# %create tmp.lbc
86# @%append tmp.lbc $(CPPFLAGS) $(IFLAGS) $<
87# echo $<
88# $(CC) @tmp.lbc
89
90dummy: .SYMBOLIC
91 @echo Please give a target for wxWin makefiles: the usual one is 'all'.
92
93erasepch: .SYMBOLIC
94 -erase $(WXDIR)\src\msw\watcom.pch