]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tmake/sc.t
moved Watcom thread stack size fix from .h to the .cpp
[wxWidgets.git] / distrib / msw / tmake / sc.t
CommitLineData
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
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
c54f5226 40 my $isOleObj = $wxMSW{$file} =~ /\bO\b/;
f2071dda 41 $file =~ s/cp?p?$/obj/;
c54f5226
VZ
42 $project{"WXMSWOBJS"} .= '$(MSWDIR)\\';
43 $project{"WXMSWOBJS"} .= 'ole\\' if $isOleObj;
44 $project{"WXMSWOBJS"} .= $file . " "
f2071dda
VZ
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
f2071dda
VZ
70OLEDIR=ole
71MSWDIR=$(WXDIR)\src\msw
72
73GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
74
75COMMONOBJS = \
76 $(COMMDIR)\y_tab.obj \
77 #$ ExpandList("WXCOMMONOBJS");
78
79MSWOBJS = #$ ExpandList("WXMSWOBJS");
80
f2071dda 81# Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
268d5364 82OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS)
f2071dda
VZ
83
84all: $(LIBTARGET)
85
86$(LIBTARGET): $(OBJECTS)
87 -del $(LIBTARGET)
88 *lib /PAGESIZE:512 $(LIBTARGET) y $(OBJECTS), nul;
89
90clean:
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
9be9b974
RD
105MFTYPE=sc
106makefile.$(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