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 was 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 $file =~ s/cp?p?$/obj/;
31 $project{"WXCOMMONOBJS"} .= "\$(COMMDIR)\\" . $file . " "
34 foreach $file (sort keys %wxMSW) {
35 #! don't take files not appropriate for 16-bit Windows
36 next if $wxMSW{$file} =~ /\b(32|O)\b/;
38 $file =~ s/cp?p?$/obj/;
39 $project{"WXMSWOBJS"} .= "\$(MSWDIR)\\" . $file . " "
43 # This file was automatically generated by tmake at #$ Now()
44 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE DOS.T!
48 # Author: Julian Smart
51 # Copyright:(c) 1997, Julian Smart
55 # Makefile : Builds wxWindows library wx.lib for VC++ (16-bit)
58 # FINAL=1 argument to nmake to build version with no debugging info.
60 !include <..\makemsc.env>
65 # Please set these according to the settings in wx_setup.h, so we can include
66 # the appropriate libraries in wx.lib
68 # This one overrides the others, to be consistent with the settings in wx_setup.h
69 MINIMAL_WXWINDOWS_SETUP=0
74 !if "$(MINIMAL_WXWINDOWS_SETUP)" == "1"
83 # !if "$(USE_CTL3D)" == "1"
84 # PERIPH_LIBS=d:\msdev\lib\ctl3d32.lib $(PERIPH_LIBS)
87 !if "$(USE_XPM_IN_MSW)" == "1"
88 PERIPH_LIBS=$(WXDIR)\contrib\wxxpm\xpm.lib $(PERIPH_LIBS)
89 PERIPH_TARGET=xpm $(PERIPH_TARGET)
90 PERIPH_CLEAN_TARGET=clean_xpm $(PERIPH_CLEAN_TARGET)
94 PERIPH_TARGET=png zlib $(PERIPH_TARGET)
95 PERIPH_CLEAN_TARGET=clean_png clean_zlib $(PERIPH_CLEAN_TARGET)
102 GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
105 $(COMMDIR)\y_tab.obj \
106 #$ ExpandList("WXCOMMONOBJS");
108 MSWOBJS = #$ ExpandList("WXMSWOBJS");
110 # TODO: Implement XPM and PNG targets in this makefile!
111 # $(OLEDIR)\xpmhand \
112 # $(OLEDIR)\pnghand \
114 OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS)
116 # Normal, static library
117 all: $(DUMMYOBJ) $(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib
120 # $(WXDIR)\lib\wx.lib: dummy.obj $(OBJECTS) $(PERIPH_LIBS)
121 # -erase $(LIBTARGET)
122 # lib /PAGESIZE:128 @<<
125 # $(OBJECTS) $(PERIPH_LIBS)
130 $(WXDIR)\lib\wx1.lib: $(COMMONOBJS) $(PERIPH_LIBS)
131 -erase $(WXDIR)\lib\wx1.lib
132 lib /PAGESIZE:128 @<<
135 $(COMMONOBJS) $(PERIPH_LIBS)
140 $(WXDIR)\lib\wx2.lib: $(GENERICOBJS)
141 -erase $(WXDIR)\lib\wx2.lib
142 lib /PAGESIZE:128 @<<
150 $(WXDIR)\lib\wx3.lib: $(MSWOBJS)
151 -erase $(WXDIR)\lib\wx3.lib
152 lib /PAGESIZE:128 @<<
160 ########################################################
161 # Windows-specific objects
163 dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h
165 cl $(CPPFLAGS) /YcWX/WXPREC.H $(DEBUG_FLAGS) /c /Tp $*.$(SRCSUFF)
168 #dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h
169 # cl $(CPPFLAGS) /YcWX/WXPREC.H $(DEBUG_FLAGS) /c /Tp $*.$(SRCSUFF)
171 dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h
173 $(CPPFLAGS) /YcWX/WXPREC.H /c /Tp $*.$(SRCSUFF)
177 $_ = $project{"WXMSWOBJS"} . $project{"WXCOMMONOBJS"} . $project{"WXGENERICOBJS"};
181 $text .= $_ . ': $*.$(SRCSUFF)' . "\n" .
183 '$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)' . "\n" .
188 $(COMMDIR)/y_tab.obj: $*.c $(COMMDIR)/lex_yy.c
190 $(CPPFLAGS2) -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@ /I ..\common /c $*.c
193 $(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
194 copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
196 $(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
197 copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
199 $(OBJECTS): $(WXDIR)/include/wx/setup.h
201 # Peripheral components
205 nmake -f makefile.dos FINAL=$(FINAL)
210 nmake -f makefile.dos clean
215 nmake -f makefile.dos FINAL=$(FINAL)
220 nmake -f makefile.dos clean
225 nmake -f makefile.dos FINAL=$(FINAL)
230 nmake -f makefile.dos clean
233 clean: $(PERIPH_CLEAN_TARGET)
239 cd $(WXDIR)\src\generic
243 cd $(WXDIR)\src\common
247 cd $(WXDIR)\src\msw\ole
257 makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
258 cd $(WXWIN)\distrib\msw\tmake
259 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
260 copy makefile.$(MFTYPE) $(WXWIN)\src\msw