]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/tmake/sc.t
Removed obsolete -WE flags from WIN32 BC++ makefiles
[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 %wxCommon) {
30 next if $wxCommon{$file} =~ /\b(16|U)\b/;
31
32 $file =~ s/cp?p?$/obj/;
33 $project{"WXCOMMONOBJS"} .= '$(COMMDIR)\\' . $file . " "
34 }
35
36 foreach $file (sort keys %wxMSW) {
37 #! these files don't compile with SC++ 6
38 next if $file =~ /^(joystick|pnghand)\./;
39
40 next if $wxGeneric{$file} =~ /\b16\b/;
41
42 my $isOleObj = $wxMSW{$file} =~ /\bO\b/;
43 $file =~ s/cp?p?$/obj/;
44 $project{"WXMSWOBJS"} .= '$(MSWDIR)\\';
45 $project{"WXMSWOBJS"} .= 'ole\\' if $isOleObj;
46 $project{"WXMSWOBJS"} .= $file . " "
47 }
48 #$}
49
50 # This file was automatically generated by tmake
51 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE SC.T!
52
53 # Symantec C++ makefile for the msw objects
54 # called from src\makefile.sc
55
56 # configuration section (see src\makefile.sc) ###########################
57
58 WXDIR = $(WXWIN)
59
60 include ..\makesc.env
61
62 DEBUG=0
63
64 LIBTARGET = $(LIBDIR)\wx.lib
65
66 OPTIONS=
67
68 # end of configuration section ##########################################
69
70 GENDIR=$(WXDIR)\src\generic
71 COMMDIR=$(WXDIR)\src\common
72 OLEDIR=ole
73 MSWDIR=$(WXDIR)\src\msw
74
75 GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
76
77 COMMONOBJS = \
78 $(COMMDIR)\y_tab.obj \
79 #$ ExpandList("WXCOMMONOBJS");
80
81 MSWOBJS = #$ ExpandList("WXMSWOBJS");
82
83 # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
84 OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS)
85
86 all: $(LIBTARGET)
87
88 $(LIBTARGET): $(OBJECTS)
89 -del $(LIBTARGET)
90 *lib /PAGESIZE:512 $(LIBTARGET) y $(OBJECTS), nul;
91
92 clean:
93 -del *.obj
94 -del $(LIBTARGET)
95
96 $(COMMDIR)\y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c
97
98 $(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c
99 copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
100
101 $(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c
102 copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
103
104 # $(COMMDIR)\cmndata.obj: $(COMMDIR)\cmndata.cpp
105 # *$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) $(COMMDIR)\cmndata.cpp -o$(COMMDIR)\cmndata.obj
106
107 MFTYPE=sc
108 makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
109 cd $(WXWIN)\distrib\msw\tmake
110 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
111 copy makefile.$(MFTYPE) $(WXWIN)\src\msw