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 $(WXDIR)\lib\wx4.lib
122 $(WXDIR)\lib\wx1.lib: $(COMMONOBJS) $(PERIPH_LIBS)
123 -erase $(WXDIR)\lib\wx1.lib
124 lib /PAGESIZE:128 @<<
127 $(COMMONOBJS) $(PERIPH_LIBS)
132 $(WXDIR)\lib\wx2.lib: $(GENERICOBJS)
133 -erase $(WXDIR)\lib\wx2.lib
134 lib /PAGESIZE:128 @<<
142 $(WXDIR)\lib\wx3.lib: $(MSWOBJS1)
143 -erase $(WXDIR)\lib\wx3.lib
144 lib /PAGESIZE:128 @<<
152 $(WXDIR)\lib\wx4.lib: $(MSWOBJS2)
153 -erase $(WXDIR)\lib\wx4.lib
154 lib /PAGESIZE:128 @<<
162 ########################################################
163 # Windows-specific objects
165 dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h
167 cl $(CPPFLAGS) /YcWX/WXPREC.H $(DEBUG_FLAGS) /c /Tp $*.$(SRCSUFF)
170 #dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h
171 # cl $(CPPFLAGS) /YcWX/WXPREC.H $(DEBUG_FLAGS) /c /Tp $*.$(SRCSUFF)
173 dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h
175 $(CPPFLAGS) /YcWX/WXPREC.H /c /Tp $*.$(SRCSUFF)
179 $_ = $project{"WXMSWOBJS"} . $project{"WXCOMMONOBJS"} . $project{"WXGENERICOBJS"};
182 if ( $project{"WXCOBJS"} =~ /\Q$_/ ) {
184 $text .= $_ . ': $*.c' . "\n" .
186 '$(CPPFLAGS2) /Fo$@ /c /Tc $*.c' . "\n" .
191 $text .= $_ . ': $*.$(SRCSUFF)' . "\n" .
193 '$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)' . "\n" .
199 $(COMMDIR)/y_tab.obj: $*.c $(COMMDIR)/lex_yy.c
201 $(CPPFLAGS2) -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@ /I ..\common /c $*.c
204 $(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
205 copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
207 $(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
208 copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
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
236 nmake -f makefile.dos FINAL=$(FINAL)
241 nmake -f makefile.dos clean
244 clean: $(PERIPH_CLEAN_TARGET)
250 cd $(WXDIR)\src\generic
254 cd $(WXDIR)\src\common
258 cd $(WXDIR)\src\msw\ole
268 makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
269 cd $(WXWIN)\distrib\msw\tmake
270 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
271 copy makefile.$(MFTYPE) $(WXWIN)\src\msw