]> git.saurik.com Git - wxWidgets.git/blame_incremental - distrib/msw/tmake/sc.t
compilation fix
[wxWidgets.git] / distrib / msw / tmake / sc.t
... / ...
CommitLineData
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
56WXDIR = $(WXWIN)
57
58include ..\makesc.env
59
60DEBUG=0
61
62LIBTARGET = $(LIBDIR)\wx.lib
63
64OPTIONS=
65
66# end of configuration section ##########################################
67
68GENDIR=$(WXDIR)\src\generic
69COMMDIR=$(WXDIR)\src\common
70XPMDIR=$(WXDIR)\src\xpm
71OLEDIR=ole
72MSWDIR=$(WXDIR)\src\msw
73
74GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
75
76COMMONOBJS = \
77 $(COMMDIR)\y_tab.obj \
78 #$ ExpandList("WXCOMMONOBJS");
79
80MSWOBJS = #$ ExpandList("WXMSWOBJS");
81
82XPMOBJECTS = $(XPMDIR)\crbuffri.obj\
83 $(XPMDIR)\crdatfri.obj\
84 $(XPMDIR)\create.obj $(XPMDIR)\crifrbuf.obj\
85 $(XPMDIR)\crifrdat.obj\
86 $(XPMDIR)\data.obj\
87 $(XPMDIR)\hashtab.obj $(XPMDIR)\misc.obj\
88 $(XPMDIR)\parse.obj $(XPMDIR)\rdftodat.obj\
89 $(XPMDIR)\rdftoi.obj\
90 $(XPMDIR)\rgb.obj $(XPMDIR)\scan.obj\
91 $(XPMDIR)\simx.obj $(XPMDIR)\wrffrdat.obj\
92 $(XPMDIR)\wrffrp.obj $(XPMDIR)\wrffri.obj
93
94# Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
95OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) # $(XPMOBJECTS)
96
97all: $(LIBTARGET)
98
99$(LIBTARGET): $(OBJECTS)
100 -del $(LIBTARGET)
101 *lib /PAGESIZE:512 $(LIBTARGET) y $(OBJECTS), nul;
102
103clean:
104 -del *.obj
105 -del $(LIBTARGET)
106
107$(COMMDIR)\y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c
108
109$(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c
110 copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
111
112$(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c
113 copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
114
115# $(COMMDIR)\cmndata.obj: $(COMMDIR)\cmndata.cpp
116# *$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) $(COMMDIR)\cmndata.cpp -o$(COMMDIR)\cmndata.obj
117
118MFTYPE=sc
119makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
120 cd $(WXWIN)\distrib\msw\tmake
121 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
122 copy makefile.$(MFTYPE) $(WXWIN)\src\msw