1 #!#############################################################################
3 #! Purpose: tmake template file from which makebase.vc is generated by running
4 #! tmake -t basevc wxwin.pro -o makebase.vc
5 #! Author: Mark Johnson
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 %wxCommon) {
16 next if $wxCommon{$file} !~ /\bB\b/;
18 $file =~ s/cp?p?$/obj/;
19 $project{"WXCOMMONOBJS"} .= "..\\common\\\$D\\" . $file . " "
22 foreach $file (sort keys %wxMSW) {
23 next if $wxMSW{$file} !~ /\bB\b/;
25 $file =~ s/cp?p?$/obj/;
26 $project{"WXMSWOBJS"} .= "..\\msw\\\$D\\" . $file . " "
29 foreach $file (sort keys %wxBase) {
30 $file =~ s/cp?p?$/obj/;
31 $project{"WXCOMMONOBJS"} .= "..\\common\\\$D\\" . $file . " "
34 # This file was automatically generated by tmake at #$ Now()
35 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE BASEVC.T!
38 # Author: Mark Johnson
39 # Created: 12 March 2001
41 # Copyright: (c) 1997, Julian Smart
45 # Makefile : Builds wxWindows library wxBase(d).lib for VC++ (32-bit)
48 # FINAL=1 argument to nmake to build version with no debugging info.
50 # wxUSE_GUI=0 argument to build wxWindows version with no GUI (Console)
51 # - makevc.env changes lib name to wxBase(d).lib
54 !include <../makevc.env>
56 THISDIR=$(WXWIN)\src\msw
61 # This one overrides the others, to be consistent with the settings in setup.h
62 MINIMAL_WXWINDOWS_SETUP=0
68 # These are absolute paths, so that the compiler
69 # generates correct __FILE__ symbols for debugging.
70 # Otherwise you don't be able to double-click on a memory
71 # error to load that file.
72 COMMDIR=$(WXDIR)\src\common
73 MSWDIR=$(WXDIR)\src\msw
75 {../common}.cpp{../common/$D}.obj:
77 $(CPPFLAGS) /Fo$@ /c /Tp $<
80 {../common}.c{../common/$D}.obj:
82 $(CPPFLAGS2) /Fo$@ /c /Tc $<
85 {../msw}.cpp{../msw/$D}.obj:
87 $(CPPFLAGS) /Fo$@ /c /Tp $<
90 {../msw}.c{../msw/$D}.obj:
92 $(CPPFLAGS2) /Fo$@ /c /Tc $<
96 ..\common\$D\y_tab.obj \
97 #$ ExpandList("WXCOMMONOBJS");
99 MSWOBJS = #$ ExpandList("WXMSWOBJS");
101 OBJECTS = $(COMMONOBJS) $(MSWOBJS)
103 # Normal, static library
104 #all: setuph dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib xpm jpeg tiff $(LIBTARGET)
105 all: setuph dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) zlib $(LIBTARGET)
108 cd $(WXDIR)\include\wx\msw
109 if not exist setup.h copy setup0.h setup.h
112 dirs: $(MSWDIR)\$D $(COMMDIR)\$D
125 $(WXDIR)\lib\$(WXLIBNAME).lib: $D\dummy.obj $(OBJECTS)
130 $(OBJECTS) $D\dummy.obj $(PERIPH_LIBS)
133 $D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
134 cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /c /Tp dummy.cpp
135 ########################################################
137 ..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c
139 $(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
142 ..\common\y_tab.c: ..\common\dosyacc.c
143 copy "..\common"\dosyacc.c "..\common"\y_tab.c
145 ..\common\lex_yy.c: ..\common\doslex.c
146 copy "..\common"\doslex.c "..\common"\lex_yy.c
148 $(OBJECTS): $(WXDIR)/include/wx/setup.h
150 ..\common\$D\unzip.obj: ..\common\unzip.c
152 $(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@
157 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
162 nmake -f makefile.vc clean
167 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
172 nmake -f makefile.vc clean
177 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
182 nmake -f makefile.vc clean
187 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
192 nmake -f makefile.vc clean
197 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
202 nmake -f makefile.vc clean
205 cleanall: clean clean_png clean_zlib clean_xpm clean_jpeg clean_tiff
206 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).lib
207 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).exp
208 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).pdb
209 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).ilk
212 clean: $(PERIPH_CLEAN_TARGET)
214 -erase $(COMMDIR)\$D\*.obj
215 -erase $(COMMDIR)\$D\*.pdb
216 -erase $(COMMDIR)\$D\*.sbr
217 -erase $(COMMDIR)\$D\*.idb
218 -erase $(COMMDIR)\$D\*.pch
219 -erase $(COMMDIR)\y_tab.c
220 -erase $(COMMDIR)\lex_yy.c
221 -erase $(MSWDIR)\$D\*.idb
222 -erase $(MSWDIR)\$D\*.pdb
223 -erase $(MSWDIR)\$D\*.pch
224 -erase $(MSWDIR)\$D\*.obj
225 -erase $(MSWDIR)\$D\*.sbr
226 -erase $(MSWDIR)\$D\*.pdb
228 -rmdir ..\common\$(D)