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
60 # This one overrides the others, to be consistent with the settings in setup.h
61 MINIMAL_WXWINDOWS_SETUP=0
67 # These are absolute paths, so that the compiler
68 # generates correct __FILE__ symbols for debugging.
69 # Otherwise you don't be able to double-click on a memory
70 # error to load that file.
71 COMMDIR=$(WXDIR)\src\common
72 MSWDIR=$(WXDIR)\src\msw
74 {../common}.cpp{../common/$D}.obj:
76 $(CPPFLAGS) /Fo$@ /c /Tp $<
79 {../common}.c{../common/$D}.obj:
81 $(CPPFLAGS2) /Fo$@ /c /Tc $<
84 {../msw}.cpp{../msw/$D}.obj:
86 $(CPPFLAGS) /Fo$@ /c /Tp $<
89 {../msw}.c{../msw/$D}.obj:
91 $(CPPFLAGS2) /Fo$@ /c /Tc $<
95 ..\common\$D\y_tab.obj \
96 #$ ExpandList("WXCOMMONOBJS");
98 MSWOBJS = #$ ExpandList("WXMSWOBJS");
100 OBJECTS = $(COMMONOBJS) $(MSWOBJS)
102 ARCHINCDIR=$(WXDIR)\lib\base$(INCEXT)
103 SETUP_H=$(ARCHINCDIR)\wx\setup.h
105 # Normal, static library
106 #all: dirs $(SETUP_H) $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib xpm jpeg tiff $(LIBTARGET)
107 all: dirs $(SETUP_H) $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) zlib $(LIBTARGET)
109 $(WXDIR)\include\wx\msw\setup.h:
110 cd $(WXDIR)\include\wx\msw
111 if not exist setup.h copy setup0.h setup.h
114 $(SETUP_H): $(WXDIR)\include\wx\msw\setup.h
115 copy $(WXDIR)\include\wx\msw\setup.h $@
117 dirs: $(MSWDIR)\$D $(COMMDIR)\$D
130 $(WXDIR)\lib\$(WXLIBNAME).lib: $(DUMMYOBJ) $(OBJECTS)
135 $(OBJECTS) $(DUMMYOBJ) $(PERIPH_LIBS)
138 $(DUMMYOBJ): $(DUMMY).$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(SETUP_H)
139 cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$(DUMMYOBJ) /c /Tp $(DUMMY).cpp
140 ########################################################
142 ..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c
144 $(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
147 ..\common\y_tab.c: ..\common\dosyacc.c
148 copy "..\common"\dosyacc.c "..\common"\y_tab.c
150 ..\common\lex_yy.c: ..\common\doslex.c
151 copy "..\common"\doslex.c "..\common"\lex_yy.c
153 $(OBJECTS): $(WXDIR)/include/wx/setup.h
155 ..\common\$D\unzip.obj: ..\common\unzip.c
157 $(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@
162 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
167 nmake -f makefile.vc clean
172 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
177 nmake -f makefile.vc clean
182 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
187 nmake -f makefile.vc clean
192 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
197 nmake -f makefile.vc clean
202 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
207 nmake -f makefile.vc clean
210 cleanall: clean clean_png clean_zlib clean_xpm clean_jpeg clean_tiff
211 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).lib
212 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).exp
213 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).pdb
214 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).ilk
217 clean: $(PERIPH_CLEAN_TARGET)
219 -erase $(COMMDIR)\$D\*.obj
220 -erase $(COMMDIR)\$D\*.pdb
221 -erase $(COMMDIR)\$D\*.sbr
222 -erase $(COMMDIR)\$D\*.idb
223 -erase $(COMMDIR)\$D\*.pch
224 -erase $(COMMDIR)\y_tab.c
225 -erase $(COMMDIR)\lex_yy.c
226 -erase $(MSWDIR)\$D\*.idb
227 -erase $(MSWDIR)\$D\*.pdb
228 -erase $(MSWDIR)\$D\*.pch
229 -erase $(MSWDIR)\$D\*.obj
230 -erase $(MSWDIR)\$D\*.sbr
231 -erase $(MSWDIR)\$D\*.pdb
233 -rmdir ..\common\$(D)