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 #!#############################################################################
11 #! include the code which parses filelist.txt file and initializes
12 #! %wxCommon, %wxGeneric and %wxMSW hashes.
13 IncludeTemplate("filelist.t");
15 #! now transform these hashes into $project tags
16 foreach $file (sort keys %wxGeneric) {
17 if ( $wxGeneric{$file} =~ /\b(PS|G|U)\b/ ) {
18 #! this file for some reason wasn't compiled for VC++ 1.52
19 next unless $file =~ /^prntdlgg\./;
22 $file =~ s/cp?p?$/obj/;
23 $project{"WXGENERICOBJS"} .= "\$(GENDIR)\\" . $file . " "
26 foreach $file (sort keys %wxCommon) {
27 #! socket files don't compile under Win16 currently
28 next if $wxCommon{$file} =~ /\b(32|S)\b/;
30 $isCFile = $file =~ /\.c$/;
31 $file =~ s/cp?p?$/obj/;
32 $obj = "\$(COMMDIR)\\" . $file . " ";
33 $project{"WXCOMMONOBJS"} .= $obj;
34 $project{"WXCOBJS"} .= $obj if $isCFile;
37 foreach $file (sort keys %wxMSW) {
38 #! don't take files not appropriate for 16-bit Windows
39 next if $wxMSW{$file} =~ /\b(32|O)\b/;
41 $file =~ s/cp?p?$/obj/;
42 $project{"WXMSWOBJS"} .= "\$(MSWDIR)\\" . $file . " "
46 # This file was automatically generated by tmake at #$ Now()
47 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE DOS.T!
51 # Author: Julian Smart
54 # Copyright:(c) 1997, Julian Smart
58 # Makefile : Builds wxWindows library wx.lib for VC++ (16-bit)
61 # FINAL=1 argument to nmake to build version with no debugging info.
63 !include <..\makemsc.env>
68 # Please set these according to the settings in wx_setup.h, so we can include
69 # the appropriate libraries in wx.lib
71 # This one overrides the others, to be consistent with the settings in wx_setup.h
72 MINIMAL_WXWINDOWS_SETUP=0
77 !if "$(MINIMAL_WXWINDOWS_SETUP)" == "1"
86 # !if "$(USE_CTL3D)" == "1"
87 # PERIPH_LIBS=d:\msdev\lib\ctl3d32.lib $(PERIPH_LIBS)
90 !if "$(USE_XPM_IN_MSW)" == "1"
91 PERIPH_LIBS=$(WXDIR)\contrib\wxxpm\xpm.lib $(PERIPH_LIBS)
92 PERIPH_TARGET=xpm $(PERIPH_TARGET)
93 PERIPH_CLEAN_TARGET=clean_xpm $(PERIPH_CLEAN_TARGET)
97 PERIPH_TARGET=png zlib $(PERIPH_TARGET)
98 PERIPH_CLEAN_TARGET=clean_png clean_zlib $(PERIPH_CLEAN_TARGET)
105 GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
108 $(COMMDIR)\y_tab.obj \
109 #$ ExpandList("WXCOMMONOBJS");
111 MSWOBJS = #$ ExpandList("WXMSWOBJS");
113 # TODO: Implement XPM and PNG targets in this makefile!
114 # $(OLEDIR)\xpmhand \
115 # $(OLEDIR)\pnghand \
117 OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS)
119 # Normal, static library
120 all: $(DUMMYOBJ) $(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib
123 # $(WXDIR)\lib\wx.lib: dummy.obj $(OBJECTS) $(PERIPH_LIBS)
124 # -erase $(LIBTARGET)
125 # lib /PAGESIZE:128 @<<
128 # $(OBJECTS) $(PERIPH_LIBS)
133 $(WXDIR)\lib\wx1.lib: $(COMMONOBJS) $(PERIPH_LIBS)
134 -erase $(WXDIR)\lib\wx1.lib
135 lib /PAGESIZE:128 @<<
138 $(COMMONOBJS) $(PERIPH_LIBS)
143 $(WXDIR)\lib\wx2.lib: $(GENERICOBJS)
144 -erase $(WXDIR)\lib\wx2.lib
145 lib /PAGESIZE:128 @<<
153 $(WXDIR)\lib\wx3.lib: $(MSWOBJS)
154 -erase $(WXDIR)\lib\wx3.lib
155 lib /PAGESIZE:128 @<<
163 ########################################################
164 # Windows-specific objects
166 dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h
168 cl $(CPPFLAGS) /YcWX/WXPREC.H $(DEBUG_FLAGS) /c /Tp $*.$(SRCSUFF)
171 #dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h
172 # cl $(CPPFLAGS) /YcWX/WXPREC.H $(DEBUG_FLAGS) /c /Tp $*.$(SRCSUFF)
174 dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h
176 $(CPPFLAGS) /YcWX/WXPREC.H /c /Tp $*.$(SRCSUFF)
180 $_ = $project{"WXMSWOBJS"} . $project{"WXCOMMONOBJS"} . $project{"WXGENERICOBJS"};
183 if ( $project{"WXCOBJS"} =~ /\Q$_/ ) {
185 $text .= $_ . ': $*.c' . "\n" .
187 '$(CPPFLAGS2) /Fo$@ /c /Tc $*.c' . "\n" .
192 $text .= $_ . ': $*.$(SRCSUFF)' . "\n" .
194 '$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)' . "\n" .
200 $(COMMDIR)/y_tab.obj: $*.c $(COMMDIR)/lex_yy.c
202 $(CPPFLAGS2) -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@ /I ..\common /c $*.c
205 $(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
206 copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
208 $(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
209 copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
211 $(OBJECTS): $(WXDIR)/include/wx/setup.h
213 # Peripheral components
217 nmake -f makefile.dos FINAL=$(FINAL)
222 nmake -f makefile.dos clean
227 nmake -f makefile.dos FINAL=$(FINAL)
232 nmake -f makefile.dos clean
237 nmake -f makefile.dos FINAL=$(FINAL)
242 nmake -f makefile.dos clean
245 clean: $(PERIPH_CLEAN_TARGET)
251 cd $(WXDIR)\src\generic
255 cd $(WXDIR)\src\common
259 cd $(WXDIR)\src\msw\ole
269 makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
270 cd $(WXWIN)\distrib\msw\tmake
271 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
272 copy makefile.$(MFTYPE) $(WXWIN)\src\msw