]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tmake/sc.t
fixed initial focus handling in the dialog and made SetFocus() send the focus
[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) {
6a253da1
VS
30 next if $wxCommon{$file} =~ /\b(16|U)\b/;
31
f2071dda
VZ
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
c54f5226 42 my $isOleObj = $wxMSW{$file} =~ /\bO\b/;
f2071dda 43 $file =~ s/cp?p?$/obj/;
c54f5226
VZ
44 $project{"WXMSWOBJS"} .= '$(MSWDIR)\\';
45 $project{"WXMSWOBJS"} .= 'ole\\' if $isOleObj;
46 $project{"WXMSWOBJS"} .= $file . " "
f2071dda
VZ
47 }
48#$}
49
0f04dbf3 50# This file was automatically generated by tmake
f2071dda
VZ
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
58WXDIR = $(WXWIN)
59
60include ..\makesc.env
61
62DEBUG=0
63
64LIBTARGET = $(LIBDIR)\wx.lib
65
66OPTIONS=
67
68# end of configuration section ##########################################
69
70GENDIR=$(WXDIR)\src\generic
71COMMDIR=$(WXDIR)\src\common
f2071dda
VZ
72OLEDIR=ole
73MSWDIR=$(WXDIR)\src\msw
74
75GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
76
77COMMONOBJS = \
78 $(COMMDIR)\y_tab.obj \
79 #$ ExpandList("WXCOMMONOBJS");
80
81MSWOBJS = #$ ExpandList("WXMSWOBJS");
82
f2071dda 83# Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
268d5364 84OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS)
f2071dda
VZ
85
86all: $(LIBTARGET)
87
88$(LIBTARGET): $(OBJECTS)
89 -del $(LIBTARGET)
90 *lib /PAGESIZE:512 $(LIBTARGET) y $(OBJECTS), nul;
91
92clean:
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
9be9b974
RD
107MFTYPE=sc
108makefile.$(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