]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/tmake/sc.t
wxFileDialog cleanup, extracted common code to fldlgcmn.cpp (patch 754187)
[wxWidgets.git] / distrib / msw / tmake / sc.t
1 #!#############################################################################
2 #! File: sc.t
3 #! Purpose: tmake template file from which makefile.sc is generated by running
4 #! tmake -t sc wxwin.pro -o makefile.sc
5 #! Author: Vadim Zeitlin
6 #! Created: 14.07.99
7 #! Version: $Id$
8 #!#############################################################################
9
10 #${
11 #! include the code which parses filelist.txt file and initializes
12 #! %wxCommon, %wxGeneric and %wxMSW hashes.
13 IncludeTemplate("filelist.t");
14
15 #! now transform these hashes into $project tags
16 foreach $file (sort keys %wxGeneric) {
17 my $tag = "";
18 if ( $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/ ) {
19 $tag = "WXNONESSENTIALOBJS";
20 }
21 else {
22 $tag = "WXGENERICOBJS";
23 }
24
25 $file =~ s/cp?p?$/obj/;
26 $project{$tag} .= '$(GENDIR)\\' . $file . " "
27 }
28
29 foreach $file (sort keys %wxHTML) {
30 next if $wxHTML{$file} =~ /\b16\b/;
31
32 $file =~ s/cp?p?$/obj/;
33 $project{"WXHTMLOBJS"} .= '$(HTMLDIR)\\' . $file . " "
34 }
35
36 foreach $file (sort keys %wxCommon) {
37 next if $wxCommon{$file} =~ /\b(16|U)\b/;
38
39 $file =~ s/cp?p?$/obj/;
40 $project{"WXCOMMONOBJS"} .= '$(COMMDIR)\\' . $file . " "
41 }
42
43 foreach $file (sort keys %wxMSW) {
44 #! these files don't compile with SC++ 6
45 #! next if $file =~ /^(joystick|pnghand)\./;
46
47 next if $wxMSW{$file} =~ /\b16\b/;
48
49 my $isOleObj = $wxMSW{$file} =~ /\bO\b/;
50 $file =~ s/cp?p?$/obj/;
51 $project{"WXMSWOBJS"} .= '$(MSWDIR)\\';
52 $project{"WXMSWOBJS"} .= 'ole\\' if $isOleObj;
53 $project{"WXMSWOBJS"} .= $file . " "
54 }
55 #$}
56
57 # This file was automatically generated by tmake
58 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE SC.T!
59
60 # Digital mars makefile
61 # was Symantec C++ makefile for the msw objects
62 #
63 # called from src\makefile.sc
64
65 # configuration section (see src\makefile.sc) ###########################
66
67 WXDIR = ..\..
68
69 include ..\makesc.env
70
71 DEBUG=0
72
73 LIBTARGET = $(LIBDIR)\wx$(SC_SUFFIX).lib
74
75 OPTIONS=
76
77 # end of configuration section ##########################################
78
79 GENDIR=$(WXDIR)\src\generic
80 COMMDIR=$(WXDIR)\src\common
81 HTMLDIR=$(WXDIR)\src\html
82 OLEDIR=ole
83 MSWDIR=$(WXDIR)\src\msw
84
85 GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
86
87 COMMONOBJS = #$ ExpandList("WXCOMMONOBJS");
88
89 HTMLOBJS = #$ ExpandList ("WXHTMLOBJS");
90
91 MSWOBJS = #$ ExpandList("WXMSWOBJS");
92
93 # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
94 OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS)
95
96 all: MAKEARCHDIR MAKELIBS $(LIBTARGET) zlib png jpeg tiff regex
97
98 MAKEARCHDIR:
99 @if not exist $(MSWINCDIR)\setup.h copy $(MSWINCDIR)\setup0.h $(MSWINCDIR)\setup.h
100 @if not exist $(ARCHINCDIR)\wx\setup.h mkdir $(ARCHINCDIR)
101 @if not exist $(ARCHINCDIR)\wx\setup.h mkdir $(ARCHINCDIR)\wx
102 @if not exist $(ARCHINCDIR)\wx\setup.h copy $(MSWINCDIR)\setup.h $(ARCHINCDIR)\wx\setup.h
103
104 #build our own copies of missing libraries
105 MAKELIBS:
106 implib /s $(LIBDIR)\$(SHELLLIB) $(LIBDIR)\$(SC_SUFFIX)\$(SHELLLIB).def
107 implib /s $(LIBDIR)\$(WINSOCKLIB) $(LIBDIR)\$(SC_SUFFIX)\$(WINSOCKLIB).def
108
109 $(LIBTARGET): $(OBJECTS)
110 -del $(LIBTARGET)
111 *lib /PAGESIZE:512 $(LIBTARGET) y $(OBJECTS), nul;
112
113 clean: clean_msw clean_zlib clean_png clean_jpeg clean_tiff clean_regex
114
115 clean_msw:
116 -del $(COMMDIR)\*.obj
117 -del $(MSWDIR)\*.obj
118 -del $(GENDIR)\*.obj
119 -del $(HTMLDIR)\*.obj
120 -del *.obj
121 -del *.sym
122 -del ole\*.obj
123 -del $(LIBTARGET)
124
125 png:
126 make -f $(WXDIR)\src\png\makefile.sc FINAL=$(FINAL)
127
128 clean_png:
129 make -f $(WXDIR)\src\png\makefile.sc clean
130
131 zlib:
132 make -f $(WXDIR)\src\zlib\makefile.sc FINAL=$(FINAL)
133
134 clean_zlib:
135 make -f $(WXDIR)\src\zlib\makefile.sc clean
136
137 jpeg:
138 make -f $(WXDIR)\src\jpeg\makefile.sc FINAL=$(FINAL)
139
140 clean_jpeg:
141 make -f $(WXDIR)\src\jpeg\makefile.sc clean
142
143 regex:
144 make -f $(WXDIR)\src\regex\makefile.sc FINAL=$(FINAL)
145
146 clean_regex:
147 make -f $(WXDIR)\src\regex\makefile.sc clean
148
149 tiff:
150 make -f $(WXDIR)\src\tiff\makefile.sc FINAL=$(FINAL)
151
152 clean_tiff:
153 make -f $(WXDIR)\src\tiff\makefile.sc clean
154
155 MFTYPE=sc
156 makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
157 cd $(WXWIN)\distrib\msw\tmake
158 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
159 copy makefile.$(MFTYPE) $(WXWIN)\src\msw