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