1 #!#############################################################################
3 #! Purpose: tmake template file from which makefile.dos is generated by running
4 #! tmake -t dos wxwin.pro -o makefile.dos
5 #! Author: Vadim Zeitlin
8 #!#############################################################################
10 #! include the code which parses filelist.txt file and initializes
11 #! %wxCommon, %wxGeneric and %wxMSW hashes.
12 IncludeTemplate("filelist.t");
14 #! now transform these hashes into $project tags
15 foreach $file (sort keys %wxGeneric) {
16 if ( $wxGeneric{$file} =~ /\b(PS|G|U)\b/ ) {
17 #! Need this file too since it has wxGenericPageSetupDialog
18 next unless $file =~ /^prntdlgg\./;
21 $file =~ s/cp?p?$/obj/;
22 $project{"WXGENERICOBJS"} .= "\$(GENDIR)\\" . $file . " "
25 #! because we later search for " <filename> " in this string
26 $project{"WXCOBJS"} = " ";
28 foreach $file (sort keys %wxCommon) {
29 #! socket files don't compile under Win16 currently
30 next if $wxCommon{$file} =~ /\b(32|S)\b/;
32 $isCFile = $file =~ /\.c$/;
33 $file =~ s/cp?p?$/obj/;
34 $obj = "\$(COMMDIR)\\" . $file . " ";
35 #! $project{"WXCOMMONOBJS"} .= $obj;
36 #! have to split lib in 2 halves because otherwise it's too big
37 $project{$file =~ "^[a-o]" ? "WXCOMMONOBJS1" : "WXCOMMONOBJS2"} .= $obj;
38 $project{"WXCOBJS"} .= $obj if $isCFile;
41 foreach $file (sort keys %wxMSW) {
42 #! don't take files not appropriate for 16-bit Windows
43 next if $wxMSW{$file} =~ /\b(32|O)\b/;
45 $isCFile = $file =~ /\.c$/;
46 $file =~ s/cp?p?$/obj/;
47 $obj = "\$(MSWDIR)\\" . $file . " ";
48 #! have to split lib in 2 halves because otherwise it's too big
49 $project{$file =~ "^[a-o]" ? "WXMSWOBJS1" : "WXMSWOBJS2"} .= $obj;
50 $project{"WXCOBJS"} .= $obj if $isCFile;
53 # This file was automatically generated by tmake
54 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE DOS.T!
58 # Author: Julian Smart
61 # Copyright:(c) 1997, Julian Smart
65 # Makefile : Builds wxWindows library wx.lib for VC++ (16-bit)
68 # FINAL=1 argument to nmake to build version with no debugging info.
70 !include <..\makemsc.env>
75 # Please set these according to the settings in wx_setup.h, so we can include
76 # the appropriate libraries in wx.lib
78 # This one overrides the others, to be consistent with the settings in wx_setup.h
79 MINIMAL_WXWINDOWS_SETUP=0
83 !if "$(MINIMAL_WXWINDOWS_SETUP)" == "1"
91 # !if "$(USE_CTL3D)" == "1"
92 # PERIPH_LIBS=d:\msdev\lib\ctl3d32.lib $(PERIPH_LIBS)
96 PERIPH_TARGET=png zlib $(PERIPH_TARGET)
97 PERIPH_CLEAN_TARGET=clean_png clean_zlib $(PERIPH_CLEAN_TARGET)
104 GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
106 # we can't have all objects in one list because the library becomes too big
108 #$ ExpandList("WXCOMMONOBJS1");
111 #$ ExpandList("WXCOMMONOBJS2");
113 # we can't have all objects in one list because the library becomes too big
114 MSWOBJS1 = #$ ExpandList("WXMSWOBJS1");
116 MSWOBJS2 = #$ ExpandList("WXMSWOBJS2");
118 OBJECTS = $(COMMONOBJS1) $(COMMONOBJS2) $(GENERICOBJS) $(MSWOBJS1) $(MSWOBJS2)
120 # Normal, static library
121 all: $(DUMMYOBJ) $(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib $(WXDIR)\lib\wx4.lib $(WXDIR)\lib\wx5.lib
123 $(WXDIR)\lib\wx1.lib: $(COMMONOBJS1) $(PERIPH_LIBS)
124 -erase $(WXDIR)\lib\wx1.lib
125 lib /PAGESIZE:128 @<<
128 $(COMMONOBJS1) $(PERIPH_LIBS)
133 $(WXDIR)\lib\wx2.lib: $(COMMONOBJS2)
134 -erase $(WXDIR)\lib\wx2.lib
135 lib /PAGESIZE:128 @<<
143 $(WXDIR)\lib\wx3.lib: $(GENERICOBJS)
144 -erase $(WXDIR)\lib\wx3.lib
145 lib /PAGESIZE:128 @<<
153 $(WXDIR)\lib\wx4.lib: $(MSWOBJS1)
154 -erase $(WXDIR)\lib\wx4.lib
155 lib /PAGESIZE:128 @<<
163 $(WXDIR)\lib\wx5.lib: $(MSWOBJS2)
164 -erase $(WXDIR)\lib\wx5.lib
165 lib /PAGESIZE:128 @<<
173 ########################################################
174 # Windows-specific objects
176 dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h
178 cl $(CPPFLAGS) /YcWX/WXPREC.H $(DEBUG_FLAGS) /c /Tp $*.$(SRCSUFF)
181 #dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h
182 # cl $(CPPFLAGS) /YcWX/WXPREC.H $(DEBUG_FLAGS) /c /Tp $*.$(SRCSUFF)
184 dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h
186 $(CPPFLAGS) /YcWX/WXPREC.H /c /Tp $*.$(SRCSUFF)
190 $_ = $project{"WXMSWOBJS1"} . $project{"WXMSWOBJS2"} . $project{"WXCOMMONOBJS1"} . $project{"WXCOMMONOBJS2"} . $project{"WXGENERICOBJS"};
193 if ( $project{"WXCOBJS"} =~ / \Q$_\E / ) {
195 $text .= $_ . ': $*.c' . "\n" .
197 '$(CPPFLAGS2) /Fo$@ /c /Tc $*.c' . "\n" .
202 $text .= $_ . ': $*.$(SRCSUFF)' . "\n" .
204 '$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)' . "\n" .
210 $(OBJECTS): $(WXDIR)/include/wx/setup.h
212 # Peripheral components
216 nmake -f makefile.dos FINAL=$(FINAL)
221 nmake -f makefile.dos clean
226 nmake -f makefile.dos FINAL=$(FINAL)
231 nmake -f makefile.dos clean
234 clean: $(PERIPH_CLEAN_TARGET)
240 cd $(WXDIR)\src\generic
244 cd $(WXDIR)\src\common
248 cd $(WXDIR)\src\msw\ole
258 makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
259 cd $(WXWIN)\distrib\msw\tmake
260 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
261 copy makefile.$(MFTYPE) $(WXWIN)\src\msw