]>
Commit | Line | Data |
---|---|---|
1 | ||
2 | # ========================================================================= | |
3 | # This makefile was generated by | |
4 | # Bakefile 0.1.1 (http://bakefile.sourceforge.net) | |
5 | # Do not modify, all changes will be overwritten! | |
6 | # ========================================================================= | |
7 | ||
8 | ||
9 | # ------------------------------------------------------------------------- | |
10 | # These are configurable options: | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | # Type of compiled binaries [debug,release] | |
14 | BUILD = release | |
15 | # Name of your custom configuration. This affects directory | |
16 | # where object files are stored as well as the location of | |
17 | # compiled .lib files and setup.h under the lib/ toplevel directory. | |
18 | CFG = | |
19 | # Standard preprocessor flags (common for CC and CXX) | |
20 | CPPFLAGS = | |
21 | # C++ compiler | |
22 | CXX = wpp386 | |
23 | # Standard flags for C++ | |
24 | CXXFLAGS = | |
25 | # Standard linker flags | |
26 | LDFLAGS = | |
27 | # Multiple libraries or single huge monolithic one? [0,1] | |
28 | MONOLITHIC = 1 | |
29 | # Is this official build by wxWindows developers? [0,1] | |
30 | OFFICIAL_BUILD = 0 | |
31 | # What type of library to build? [0,1] | |
32 | SHARED = 1 | |
33 | # Compile Unicode build of wxWindows? [0,1] | |
34 | UNICODE = 0 | |
35 | # Build GUI libraries? [0,1] | |
36 | USE_GUI = 1 | |
37 | # Build wxUniversal instead of native port? [0,1] | |
38 | WXUNIV = 0 | |
39 | ||
40 | # ------------------------------------------------------------------------- | |
41 | # Do not modify the rest of this file! | |
42 | # ------------------------------------------------------------------------- | |
43 | ||
44 | # Speed up compilation a bit: | |
45 | !ifdef __LOADDLL__ | |
46 | ! loaddll wcc wccd | |
47 | ! loaddll wccaxp wccdaxp | |
48 | ! loaddll wcc386 wccd386 | |
49 | ! loaddll wpp wppdi86 | |
50 | ! loaddll wppaxp wppdaxp | |
51 | ! loaddll wpp386 wppd386 | |
52 | ! loaddll wlink wlink | |
53 | ! loaddll wlib wlibd | |
54 | !endif | |
55 | ||
56 | # We need these variables in some bakefile-made rules: | |
57 | WATCOM_CWD = $+ $(%cdrive):$(%cwd) $- | |
58 | ||
59 | ### Conditionally set variables: ### | |
60 | ||
61 | PORTNAME = | |
62 | !ifeq USE_GUI 0 | |
63 | PORTNAME = base | |
64 | !endif | |
65 | !ifeq USE_GUI 1 | |
66 | PORTNAME = msw | |
67 | !endif | |
68 | WXDEBUGFLAG = | |
69 | !ifeq BUILD debug | |
70 | WXDEBUGFLAG = d | |
71 | !endif | |
72 | WXDLLFLAG = | |
73 | !ifeq SHARED 1 | |
74 | WXDLLFLAG = dll | |
75 | !endif | |
76 | WXUNICODEFLAG = | |
77 | !ifeq UNICODE 1 | |
78 | WXUNICODEFLAG = u | |
79 | !endif | |
80 | WXUNIVNAME = | |
81 | !ifeq WXUNIV 1 | |
82 | WXUNIVNAME = univ | |
83 | !endif | |
84 | __DEBUGFLAG_0 = | |
85 | !ifeq BUILD debug | |
86 | __DEBUGFLAG_0 = -d2 | |
87 | !endif | |
88 | !ifeq BUILD release | |
89 | __DEBUGFLAG_0 = -d0 | |
90 | !endif | |
91 | __DEBUGFLAG_1 = | |
92 | !ifeq BUILD debug | |
93 | __DEBUGFLAG_1 = debug all | |
94 | !endif | |
95 | !ifeq BUILD release | |
96 | __DEBUGFLAG_1 = | |
97 | !endif | |
98 | __DEBUG_DEFINE_p = | |
99 | !ifeq BUILD debug | |
100 | __DEBUG_DEFINE_p = -d__WXDEBUG__ | |
101 | !endif | |
102 | __DLLFLAG_p = | |
103 | !ifeq SHARED 1 | |
104 | __DLLFLAG_p = -dWXUSINGDLL | |
105 | !endif | |
106 | __OPTIMIZEFLAG_2 = | |
107 | !ifeq BUILD debug | |
108 | __OPTIMIZEFLAG_2 = -od | |
109 | !endif | |
110 | !ifeq BUILD release | |
111 | __OPTIMIZEFLAG_2 = -ot -ox | |
112 | !endif | |
113 | __UNICODE_DEFINE_p = | |
114 | !ifeq UNICODE 1 | |
115 | __UNICODE_DEFINE_p = -dwxUSE_UNICODE=1 | |
116 | !endif | |
117 | __WXLIB_BASE_p = | |
118 | !ifeq MONOLITHIC 0 | |
119 | __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
120 | !endif | |
121 | __WXLIB_CORE_p = | |
122 | !ifeq MONOLITHIC 0 | |
123 | __WXLIB_CORE_p = wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib | |
124 | !endif | |
125 | __WXLIB_MONO_p = | |
126 | !ifeq MONOLITHIC 1 | |
127 | __WXLIB_MONO_p = wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
128 | !endif | |
129 | __WXUNIV_DEFINE_p = | |
130 | !ifeq WXUNIV 1 | |
131 | __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__ | |
132 | !endif | |
133 | ||
134 | ### Variables: ### | |
135 | ||
136 | OBJS = wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
137 | MINIMAL_CXXFLAGS = $(CPPFLAGS) $(__DEBUGFLAG_0) $(__OPTIMIZEFLAG_2) -bm -br -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -i=.\..\..\include -i=.\..\..\lib\wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -i=.\..\..\src\tiff -i=.\..\..\src\jpeg -i=.\..\..\src\png -i=.\..\..\src\zlib -i=.\..\..\src\regex -i=. $(__DLLFLAG_p) $(CXXFLAGS) | |
138 | ||
139 | ||
140 | ||
141 | all : $(OBJS) | |
142 | $(OBJS) : | |
143 | -if not exist $(OBJS) mkdir $(OBJS) | |
144 | ||
145 | ### Targets: ### | |
146 | ||
147 | all : .SYMBOLIC $(OBJS)\minimal.exe | |
148 | ||
149 | $(OBJS)\minimal_minimal.obj : .AUTODEPEND .\minimal.cpp | |
150 | $(CXX) -zq -fo=$^@ $(MINIMAL_CXXFLAGS) $< | |
151 | ||
152 | $(OBJS)\minimal_minimal.res : .AUTODEPEND .\minimal.rc | |
153 | wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -i=.\..\..\include -i=.\..\..\lib\wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -i=.\..\..\src\tiff -i=.\..\..\src\jpeg -i=.\..\..\src\png -i=.\..\..\src\zlib -i=.\..\..\src\regex -i=. $(__DLLFLAG_p) $< | |
154 | ||
155 | clean : .SYMBOLIC | |
156 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
157 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
158 | -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc | |
159 | -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk | |
160 | -if exist $(OBJS)\minimal.exe del $(OBJS)\minimal.exe | |
161 | ||
162 | install : .SYMBOLIC all | |
163 | ||
164 | $(OBJS)\minimal.exe : $(OBJS)\minimal_minimal.obj $(OBJS)\minimal_minimal.res | |
165 | @%create $(OBJS)\minimal.lbc | |
166 | @%append $(OBJS)\minimal.lbc option quiet | |
167 | @%append $(OBJS)\minimal.lbc name $^@ | |
168 | @%append $(OBJS)\minimal.lbc option incremental | |
169 | @%append $(OBJS)\minimal.lbc $(LDFLAGS) $(__DEBUGFLAG_1) libpath .\..\..\lib\wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) system nt_win ref '_WinMain@16' | |
170 | @for %i in ( $(OBJS)\minimal_minimal.obj) do @%append $(OBJS)\minimal.lbc file %i | |
171 | @for %i in ( $(__WXLIB_MONO_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) wxtiff$(WXDEBUGFLAG).lib wxjpeg$(WXDEBUGFLAG).lib wxpng$(WXDEBUGFLAG).lib wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib ) do @%append $(OBJS)\minimal.lbc library %i | |
172 | @%append $(OBJS)\minimal.lbc option resource=$(OBJS)\minimal_minimal.res | |
173 | wlink @$(OBJS)\minimal.lbc | |
174 | ||
175 | uninstall : .SYMBOLIC |