]>
Commit | Line | Data |
---|---|---|
f2071dda VZ |
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 | ||
0caac3b4 CE |
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 | ||
f2071dda | 36 | foreach $file (sort keys %wxCommon) { |
6a253da1 VS |
37 | next if $wxCommon{$file} =~ /\b(16|U)\b/; |
38 | ||
f2071dda VZ |
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 | |
0caac3b4 | 45 | #! next if $file =~ /^(joystick|pnghand)\./; |
f2071dda | 46 | |
4ce1efe1 | 47 | next if $wxMSW{$file} =~ /\b16\b/; |
f2071dda | 48 | |
c54f5226 | 49 | my $isOleObj = $wxMSW{$file} =~ /\bO\b/; |
f2071dda | 50 | $file =~ s/cp?p?$/obj/; |
c54f5226 VZ |
51 | $project{"WXMSWOBJS"} .= '$(MSWDIR)\\'; |
52 | $project{"WXMSWOBJS"} .= 'ole\\' if $isOleObj; | |
53 | $project{"WXMSWOBJS"} .= $file . " " | |
f2071dda VZ |
54 | } |
55 | #$} | |
56 | ||
0f04dbf3 | 57 | # This file was automatically generated by tmake |
f2071dda VZ |
58 | # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE SC.T! |
59 | ||
60 | # Symantec C++ makefile for the msw objects | |
61 | # called from src\makefile.sc | |
62 | ||
63 | # configuration section (see src\makefile.sc) ########################### | |
64 | ||
65 | WXDIR = $(WXWIN) | |
66 | ||
67 | include ..\makesc.env | |
68 | ||
69 | DEBUG=0 | |
70 | ||
4ce1efe1 | 71 | LIBTARGET = $(LIBDIR)\wx$(SC_SUFFIX).lib |
f2071dda VZ |
72 | |
73 | OPTIONS= | |
74 | ||
75 | # end of configuration section ########################################## | |
76 | ||
77 | GENDIR=$(WXDIR)\src\generic | |
78 | COMMDIR=$(WXDIR)\src\common | |
0caac3b4 | 79 | HTMLDIR=$(WXDIR)\src\html |
f2071dda VZ |
80 | OLEDIR=ole |
81 | MSWDIR=$(WXDIR)\src\msw | |
82 | ||
83 | GENERICOBJS= #$ ExpandList("WXGENERICOBJS"); | |
84 | ||
0caac3b4 CE |
85 | COMMONOBJS = #$ ExpandList("WXCOMMONOBJS"); |
86 | ||
87 | HTMLOBJS = #$ ExpandList ("WXHTMLOBJS"); | |
f2071dda VZ |
88 | |
89 | MSWOBJS = #$ ExpandList("WXMSWOBJS"); | |
90 | ||
f2071dda | 91 | # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc. |
0caac3b4 | 92 | OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS) $(WINSOCKLIB) |
f2071dda | 93 | |
0caac3b4 | 94 | all: MAKEARCHDIR MAKEWINSOCKLIB $(LIBTARGET) zlib png jpeg tiff regex |
4ce1efe1 CE |
95 | |
96 | MAKEARCHDIR: | |
97 | @if not exist $(MSWINCDIR)\setup.h copy $(MSWINCDIR)\setup0.h $(MSWINCDIR)\setup.h | |
98 | @if not exist $(ARCHINCDIR)\wx\setup.h mkdir $(ARCHINCDIR) | |
99 | @if not exist $(ARCHINCDIR)\wx\setup.h mkdir $(ARCHINCDIR)\wx | |
100 | @if not exist $(ARCHINCDIR)\wx\setup.h copy $(MSWINCDIR)\setup.h $(ARCHINCDIR)\wx\setup.h | |
f2071dda | 101 | |
0caac3b4 CE |
102 | MAKEWINSOCKLIB: |
103 | @if not exist $(WINSOCKLIB) implib /s $(WINSOCKLIB) $(WINDIR)\system32\winsock.dll | |
104 | ## implib /system /v /suffix /Ic:\wx\dm\include\win32 $(WINSOCKLIB) $(WINDIR)\system32\winsock.dll | |
105 | ## implib /s $(WINSOCKLIB) $(WINDIR)\system32\winsock.dll | |
106 | ##@if not exist $(WINSOCKLIB) | |
107 | ||
f2071dda VZ |
108 | $(LIBTARGET): $(OBJECTS) |
109 | -del $(LIBTARGET) | |
110 | *lib /PAGESIZE:512 $(LIBTARGET) y $(OBJECTS), nul; | |
111 | ||
0caac3b4 | 112 | clean: clean_zlib clean_png clean_jpeg clean_tiff clean_regex |
4ce1efe1 CE |
113 | -del $(COMMDIR)\*.obj |
114 | -del $(MSWDIR)\*.obj | |
115 | -del $(GENDIR)\*.obj | |
0caac3b4 | 116 | -del $(HTMLDIR)\*.obj |
f2071dda VZ |
117 | -del *.obj |
118 | -del $(LIBTARGET) | |
119 | ||
0caac3b4 CE |
120 | png: |
121 | make -f $(WXDIR)\src\png\makefile.sc FINAL=$(FINAL) | |
122 | ||
123 | clean_png: | |
124 | make -f $(WXDIR)\src\png\makefile.sc clean | |
125 | ||
126 | zlib: | |
127 | make -f $(WXDIR)\src\zlib\makefile.sc FINAL=$(FINAL) | |
128 | ||
129 | clean_zlib: | |
130 | make -f $(WXDIR)\src\zlib\makefile.sc clean | |
131 | ||
132 | jpeg: | |
133 | make -f $(WXDIR)\src\jpeg\makefile.sc FINAL=$(FINAL) | |
134 | ||
135 | clean_jpeg: | |
136 | make -f $(WXDIR)\src\jpeg\makefile.sc clean | |
137 | ||
138 | regex: | |
139 | make -f $(WXDIR)\src\regex\makefile.sc FINAL=$(FINAL) | |
140 | ||
141 | clean_regex: | |
142 | make -f $(WXDIR)\src\regex\makefile.sc clean | |
143 | ||
144 | tiff: | |
145 | make -f $(WXDIR)\src\tiff\makefile.sc FINAL=$(FINAL) | |
146 | ||
147 | clean_tiff: | |
148 | make -f $(WXDIR)\src\tiff\makefile.sc clean | |
f2071dda | 149 | |
9be9b974 RD |
150 | MFTYPE=sc |
151 | makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t | |
152 | cd $(WXWIN)\distrib\msw\tmake | |
153 | tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE) | |
154 | copy makefile.$(MFTYPE) $(WXWIN)\src\msw |