]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/tmake/sc.t
update to make digitalmars compile
[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 $wxMSW{$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$(SC_SUFFIX).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: MAKEARCHDIR $(LIBTARGET)
87
88 MAKEARCHDIR:
89 @if not exist $(MSWINCDIR)\setup.h copy $(MSWINCDIR)\setup0.h $(MSWINCDIR)\setup.h
90 @if not exist $(ARCHINCDIR)\wx\setup.h mkdir $(ARCHINCDIR)
91 @if not exist $(ARCHINCDIR)\wx\setup.h mkdir $(ARCHINCDIR)\wx
92 @if not exist $(ARCHINCDIR)\wx\setup.h copy $(MSWINCDIR)\setup.h $(ARCHINCDIR)\wx\setup.h
93
94 $(LIBTARGET): $(OBJECTS)
95 -del $(LIBTARGET)
96 *lib /PAGESIZE:512 $(LIBTARGET) y $(OBJECTS), nul;
97
98 clean:
99 -del $(COMMDIR)\*.obj
100 -del $(MSWDIR)\*.obj
101 -del $(GENDIR)\*.obj
102 -del *.obj
103 -del $(LIBTARGET)
104
105 ## $(COMMDIR)\y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c
106 ##
107 ## $(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c
108 ## copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
109 ##
110 ## $(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c
111 ## copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
112 ##
113 ### $(COMMDIR)\cmndata.obj: $(COMMDIR)\cmndata.cpp
114 ### *$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) $(COMMDIR)\cmndata.cpp -o$(COMMDIR)\cmndata.obj
115
116 MFTYPE=sc
117 makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
118 cd $(WXWIN)\distrib\msw\tmake
119 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
120 copy makefile.$(MFTYPE) $(WXWIN)\src\msw