1 ##############################################################################
2 # Microwindows template Makefile
3 # Copyright (c) 2000 Martin Jolicoeur, Greg Haerr
4 ##############################################################################
6 TOP=/home/julians/local/microwindows/microwin/src
11 WXLIB=$(WXDIR)/lib/libwx.a
16 GENDIR = $(WXDIR)/src/generic
17 COMMDIR = $(WXDIR)/src/common
18 HTMLDIR = $(WXDIR)/src/html
19 ZLIBDIR = $(WXDIR)/src/zlib
20 PNGDIR = $(WXDIR)/src/png
21 JPEGDIR = $(WXDIR)/src/jpeg
22 TIFFDIR = $(WXDIR)/src/tiff
23 OLEDIR = $(WXDIR)/src/msw/ole
24 MICROWINDIR = $(WXDIR)/src/msw
25 UNIXDIR = $(WXDIR)/src/unix
26 UNIVDIR = $(WXDIR)/src/univ
28 ZLIBLIB = $(WXDIR)/lib/libzlib.a
29 PNGLIB = $(WXDIR)/lib/libpng.a
30 JPEGLIB = $(WXDIR)/lib/libjpeg.a
31 TIFFLIB = $(WXDIR)/lib/libtiff.a
34 $(GENDIR)/accel.$(OBJSUFF) \
35 $(GENDIR)/busyinfo.$(OBJSUFF) \
36 $(GENDIR)/calctrl.$(OBJSUFF) \
37 $(GENDIR)/choicdgg.$(OBJSUFF) \
38 $(GENDIR)/colrdlgg.$(OBJSUFF) \
39 $(GENDIR)/dirctrlg.$(OBJSUFF) \
40 $(GENDIR)/dragimgg.$(OBJSUFF) \
41 $(GENDIR)/fontdlgg.$(OBJSUFF) \
42 $(GENDIR)/grid.$(OBJSUFF) \
43 $(GENDIR)/gridctrl.$(OBJSUFF) \
44 $(GENDIR)/gridsel.$(OBJSUFF) \
45 $(GENDIR)/laywin.$(OBJSUFF) \
46 $(GENDIR)/listctrl.$(OBJSUFF) \
47 $(GENDIR)/logg.$(OBJSUFF) \
48 $(GENDIR)/msgdlgg.$(OBJSUFF) \
49 $(GENDIR)/numdlgg.$(OBJSUFF) \
50 $(GENDIR)/panelg.$(OBJSUFF) \
51 $(GENDIR)/progdlgg.$(OBJSUFF) \
52 $(GENDIR)/sashwin.$(OBJSUFF) \
53 $(GENDIR)/scrolwin.$(OBJSUFF) \
54 $(GENDIR)/spinctlg.$(OBJSUFF) \
55 $(GENDIR)/splash.$(OBJSUFF) \
56 $(GENDIR)/splitter.$(OBJSUFF) \
57 $(GENDIR)/statusbr.$(OBJSUFF) \
58 $(GENDIR)/tabg.$(OBJSUFF) \
59 $(GENDIR)/tbarsmpl.$(OBJSUFF) \
60 $(GENDIR)/textdlgg.$(OBJSUFF) \
61 $(GENDIR)/tipdlg.$(OBJSUFF) \
62 $(GENDIR)/tipwin.$(OBJSUFF) \
63 $(GENDIR)/treectlg.$(OBJSUFF) \
64 $(GENDIR)/treelay.$(OBJSUFF) \
65 $(GENDIR)/wizard.$(OBJSUFF)
68 $(COMMDIR)/appcmn.$(OBJSUFF) \
69 $(COMMDIR)/choiccmn.$(OBJSUFF) \
70 $(COMMDIR)/clipcmn.$(OBJSUFF) \
71 $(COMMDIR)/cmdline.$(OBJSUFF) \
72 $(COMMDIR)/cmdproc.$(OBJSUFF) \
73 $(COMMDIR)/cmndata.$(OBJSUFF) \
74 $(COMMDIR)/config.$(OBJSUFF) \
75 $(COMMDIR)/cshelp.$(OBJSUFF) \
76 $(COMMDIR)/ctrlcmn.$(OBJSUFF) \
77 $(COMMDIR)/ctrlsub.$(OBJSUFF) \
78 $(COMMDIR)/datetime.$(OBJSUFF) \
79 $(COMMDIR)/datstrm.$(OBJSUFF) \
80 $(COMMDIR)/dcbase.$(OBJSUFF) \
81 $(COMMDIR)/dircmn.$(OBJSUFF) \
82 $(COMMDIR)/dlgcmn.$(OBJSUFF) \
83 $(COMMDIR)/dobjcmn.$(OBJSUFF) \
84 $(COMMDIR)/docview.$(OBJSUFF) \
85 $(COMMDIR)/dynarray.$(OBJSUFF) \
86 $(COMMDIR)/dynlib.$(OBJSUFF) \
87 $(COMMDIR)/effects.$(OBJSUFF) \
88 $(COMMDIR)/encconv.$(OBJSUFF) \
89 $(COMMDIR)/event.$(OBJSUFF) \
90 $(COMMDIR)/extended.$(OBJSUFF) \
91 $(COMMDIR)/ffile.$(OBJSUFF) \
92 $(COMMDIR)/file.$(OBJSUFF) \
93 $(COMMDIR)/fileconf.$(OBJSUFF) \
94 $(COMMDIR)/filefn.$(OBJSUFF) \
95 $(COMMDIR)/filename.$(OBJSUFF) \
96 $(COMMDIR)/filesys.$(OBJSUFF) \
97 $(COMMDIR)/fontcmn.$(OBJSUFF) \
98 $(COMMDIR)/fontmap.$(OBJSUFF) \
99 $(COMMDIR)/framecmn.$(OBJSUFF) \
100 $(COMMDIR)/gaugecmn.$(OBJSUFF) \
101 $(COMMDIR)/gdicmn.$(OBJSUFF) \
102 $(COMMDIR)/geometry.$(OBJSUFF) \
103 $(COMMDIR)/gifdecod.$(OBJSUFF) \
104 $(COMMDIR)/hash.$(OBJSUFF) \
105 $(COMMDIR)/helpbase.$(OBJSUFF) \
106 $(COMMDIR)/imagall.$(OBJSUFF) \
107 $(COMMDIR)/imagbmp.$(OBJSUFF) \
108 $(COMMDIR)/image.$(OBJSUFF) \
109 $(COMMDIR)/imaggif.$(OBJSUFF) \
110 $(COMMDIR)/imagjpeg.$(OBJSUFF) \
111 $(COMMDIR)/imagpcx.$(OBJSUFF) \
112 $(COMMDIR)/imagpng.$(OBJSUFF) \
113 $(COMMDIR)/imagpnm.$(OBJSUFF) \
114 $(COMMDIR)/imagtiff.$(OBJSUFF) \
115 $(COMMDIR)/imagxpm.$(OBJSUFF) \
116 $(COMMDIR)/intl.$(OBJSUFF) \
117 $(COMMDIR)/ipcbase.$(OBJSUFF) \
118 $(COMMDIR)/layout.$(OBJSUFF) \
119 $(COMMDIR)/lboxcmn.$(OBJSUFF) \
120 $(COMMDIR)/list.$(OBJSUFF) \
121 $(COMMDIR)/log.$(OBJSUFF) \
122 $(COMMDIR)/longlong.$(OBJSUFF) \
123 $(COMMDIR)/matrix.$(OBJSUFF) \
124 $(COMMDIR)/memory.$(OBJSUFF) \
125 $(COMMDIR)/menucmn.$(OBJSUFF) \
126 $(COMMDIR)/mimecmn.$(OBJSUFF) \
127 $(COMMDIR)/module.$(OBJSUFF) \
128 $(COMMDIR)/mstream.$(OBJSUFF) \
129 $(COMMDIR)/object.$(OBJSUFF) \
130 $(COMMDIR)/objstrm.$(OBJSUFF) \
131 $(COMMDIR)/paper.$(OBJSUFF) \
132 $(COMMDIR)/popupcmn.$(OBJSUFF) \
133 $(COMMDIR)/prntbase.$(OBJSUFF) \
134 $(COMMDIR)/process.$(OBJSUFF) \
135 $(COMMDIR)/quantize.$(OBJSUFF) \
136 $(COMMDIR)/radiocmn.$(OBJSUFF) \
137 $(COMMDIR)/resource.$(OBJSUFF) \
138 $(COMMDIR)/sizer.$(OBJSUFF) \
139 $(COMMDIR)/strconv.$(OBJSUFF) \
140 $(COMMDIR)/stream.$(OBJSUFF) \
141 $(COMMDIR)/string.$(OBJSUFF) \
142 $(COMMDIR)/tbarbase.$(OBJSUFF) \
143 $(COMMDIR)/textcmn.$(OBJSUFF) \
144 $(COMMDIR)/textfile.$(OBJSUFF) \
145 $(COMMDIR)/timercmn.$(OBJSUFF) \
146 $(COMMDIR)/tokenzr.$(OBJSUFF) \
147 $(COMMDIR)/treebase.$(OBJSUFF) \
148 $(COMMDIR)/txtstrm.$(OBJSUFF) \
149 $(COMMDIR)/utilscmn.$(OBJSUFF) \
150 $(UNIXDIR)/utilsunx.$(OBJSUFF) \
151 $(COMMDIR)/valgen.$(OBJSUFF) \
152 $(COMMDIR)/validate.$(OBJSUFF) \
153 $(COMMDIR)/valtext.$(OBJSUFF) \
154 $(COMMDIR)/variant.$(OBJSUFF) \
155 $(COMMDIR)/wfstream.$(OBJSUFF) \
156 $(COMMDIR)/wincmn.$(OBJSUFF) \
157 $(COMMDIR)/wxchar.$(OBJSUFF) \
158 $(COMMDIR)/xpmdecod.$(OBJSUFF)
161 $(HTMLDIR)/helpctrl.$(OBJSUFF) \
162 $(HTMLDIR)/helpdata.$(OBJSUFF) \
163 $(HTMLDIR)/helpfrm.$(OBJSUFF) \
164 $(HTMLDIR)/htmlcell.$(OBJSUFF) \
165 $(HTMLDIR)/htmlfilt.$(OBJSUFF) \
166 $(HTMLDIR)/htmlpars.$(OBJSUFF) \
167 $(HTMLDIR)/htmltag.$(OBJSUFF) \
168 $(HTMLDIR)/htmlwin.$(OBJSUFF) \
169 $(HTMLDIR)/htmprint.$(OBJSUFF) \
170 $(HTMLDIR)/m_dflist.$(OBJSUFF) \
171 $(HTMLDIR)/m_fonts.$(OBJSUFF) \
172 $(HTMLDIR)/m_hline.$(OBJSUFF) \
173 $(HTMLDIR)/m_image.$(OBJSUFF) \
174 $(HTMLDIR)/m_layout.$(OBJSUFF) \
175 $(HTMLDIR)/m_links.$(OBJSUFF) \
176 $(HTMLDIR)/m_list.$(OBJSUFF) \
177 $(HTMLDIR)/m_meta.$(OBJSUFF) \
178 $(HTMLDIR)/m_pre.$(OBJSUFF) \
179 $(HTMLDIR)/m_tables.$(OBJSUFF) \
180 $(HTMLDIR)/winpars.$(OBJSUFF)
183 $(MICROWINDIR)/app.$(OBJSUFF) \
184 $(MICROWINDIR)/bitmap.$(OBJSUFF) \
185 $(MICROWINDIR)/brush.$(OBJSUFF) \
186 $(MICROWINDIR)/caret.$(OBJSUFF) \
187 $(MICROWINDIR)/clipbrd.$(OBJSUFF) \
188 $(MICROWINDIR)/colour.$(OBJSUFF) \
189 $(MICROWINDIR)/cursor.$(OBJSUFF) \
190 $(MICROWINDIR)/data.$(OBJSUFF) \
191 $(MICROWINDIR)/dc.$(OBJSUFF) \
192 $(MICROWINDIR)/dcclient.$(OBJSUFF) \
193 $(MICROWINDIR)/dcmemory.$(OBJSUFF) \
194 $(MICROWINDIR)/dcprint.$(OBJSUFF) \
195 $(MICROWINDIR)/dcscreen.$(OBJSUFF) \
196 $(MICROWINDIR)/dde.$(OBJSUFF) \
197 $(MICROWINDIR)/dialog.$(OBJSUFF) \
198 $(MICROWINDIR)/dialup.$(OBJSUFF) \
199 $(UNIXDIR)/dir.$(OBJSUFF) \
200 $(MICROWINDIR)/evtloop.$(OBJSUFF) \
201 $(MICROWINDIR)/font.$(OBJSUFF) \
202 $(MICROWINDIR)/fontenum.$(OBJSUFF) \
203 $(MICROWINDIR)/fontutil.$(OBJSUFF) \
204 $(MICROWINDIR)/frame.$(OBJSUFF) \
205 $(MICROWINDIR)/gdiimage.$(OBJSUFF) \
206 $(MICROWINDIR)/gdiobj.$(OBJSUFF) \
207 $(MICROWINDIR)/icon.$(OBJSUFF) \
208 $(MICROWINDIR)/main.$(OBJSUFF) \
209 $(MICROWINDIR)/microwin.$(OBJSUFF) \
210 $(MICROWINDIR)/palette.$(OBJSUFF) \
211 $(MICROWINDIR)/pen.$(OBJSUFF) \
212 $(MICROWINDIR)/regconf.$(OBJSUFF) \
213 $(MICROWINDIR)/region.$(OBJSUFF) \
214 $(MICROWINDIR)/settings.$(OBJSUFF) \
215 $(MICROWINDIR)/snglinst.$(OBJSUFF) \
216 $(MICROWINDIR)/thread.$(OBJSUFF) \
217 $(MICROWINDIR)/timer.$(OBJSUFF) \
218 $(MICROWINDIR)/utils.$(OBJSUFF) \
219 $(MICROWINDIR)/window.$(OBJSUFF) \
220 $(OLEDIR)/dataobj.$(OBJSUFF)
222 UNIVOBJS_TODO = $(UNIVDIR)/choice.$(OBJSUFF) \
223 $(UNIVDIR)/colordlg.$(OBJSUFF) \
227 $(UNIVDIR)/bmpbuttn.$(OBJSUFF) \
228 $(UNIVDIR)/button.$(OBJSUFF) \
229 $(UNIVDIR)/checkbox.$(OBJSUFF) \
230 $(UNIVDIR)/checklst.$(OBJSUFF) \
231 $(UNIVDIR)/colschem.$(OBJSUFF) \
232 $(UNIVDIR)/combobox.$(OBJSUFF) \
233 $(UNIVDIR)/control.$(OBJSUFF) \
234 $(UNIVDIR)/framuniv.$(OBJSUFF) \
235 $(UNIVDIR)/gauge.$(OBJSUFF) \
236 $(UNIVDIR)/inphand.$(OBJSUFF) \
237 $(UNIVDIR)/listbox.$(OBJSUFF) \
238 $(UNIVDIR)/menu.$(OBJSUFF) \
239 $(UNIVDIR)/notebook.$(OBJSUFF) \
240 $(UNIVDIR)/radiobox.$(OBJSUFF) \
241 $(UNIVDIR)/radiobut.$(OBJSUFF) \
242 $(UNIVDIR)/renderer.$(OBJSUFF) \
243 $(UNIVDIR)/scrarrow.$(OBJSUFF) \
244 $(UNIVDIR)/scrolbar.$(OBJSUFF) \
245 $(UNIVDIR)/scrthumb.$(OBJSUFF) \
246 $(UNIVDIR)/slider.$(OBJSUFF) \
247 $(UNIVDIR)/spinbutt.$(OBJSUFF) \
248 $(UNIVDIR)/statbmp.$(OBJSUFF) \
249 $(UNIVDIR)/statbox.$(OBJSUFF) \
250 $(UNIVDIR)/statline.$(OBJSUFF) \
251 $(UNIVDIR)/stattext.$(OBJSUFF) \
252 $(UNIVDIR)/textctrl.$(OBJSUFF) \
253 $(UNIVDIR)/theme.$(OBJSUFF) \
254 $(UNIVDIR)/winuniv.$(OBJSUFF) \
255 $(UNIVDIR)/themes/gtk.$(OBJSUFF) \
256 $(UNIVDIR)/themes/win32.$(OBJSUFF)
260 ######################## Additional Flags section ############################
262 # Directories list for header files
263 INCLUDEDIRS += -I$(WXDIR)/include
264 # Defines for preprocessor
265 DEFINES += -DMWIN -D__WXMSW__ -D__WXMICROWIN__ -D__WXUNIVERSAL__ -D__WIN32__ -D__WIN95__ -DHAVE_BOOL -DMICROWIN_TODO=1 -D__UNIX__ -DHAVE_NANOSLEEP -DMICROWIN_NOCONTROLS -D__WXDEBUG__ -DwxSIZE_T_IS_UINT -DWXWIN_OS_DESCRIPTION="\"MicroWindows\""
267 # Compilation flags for C files OTHER than include directories
269 # Preprocessor flags OTHER than defines
274 ############################# targets section ################################
276 # If you want to create a library with the objects files, define the name here
279 # If we put it below OBJS=, Makefile.rules includes .depend
280 # and it continually looks for .c files to satisfy .o.cpp
281 # dependency. What's going on there?
282 include $(TOP)/Makefile.rules
284 # List of objects to compile
285 OBJS = $(COMMONOBJS) $(MSWOBJS) $(GENERICOBJS) $(UNIVOBJS)
289 ######################### Makefile.rules section #############################
293 ######################## Tools targets section ###############################
295 #ntest: $(OBJS) $(NANOXCLIENTLIBS) $(TOP)/config
296 # $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(NANOXCLIENTLIBS)
299 ar $(AROPTIONS) $@ $(OBJS)
302 #.SUFFIXES: .cpp .cxx .c
305 # $(CC) -c $(CFLAGS) $(CFLAGS) -o $@ $*.c
308 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $*.cxx
311 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $*.cpp
313 #$(COMMDIR)/appcmn.o: $(COMMDIR)/appcmn.cpp
314 # $(CC) -c $(CPPFLAGS) -o $@ $*.cpp
316 #appcmn.o: $(COMMDIR)/appcmn.cpp
317 # $(CC) $(CPPFLAGS) -c -o $@ $<
323 -$(RM) ../common/y_tab.c
324 -$(RM) ../common/lex_yy.c
326 -$(RM) ../common/*.bak
327 -$(RM) ../generic/*.o
328 -$(RM) ../generic/*.bak