]>
Commit | Line | Data |
---|---|---|
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 | $file =~ s/cp?p?$/obj/; | |
41 | $project{"WXMSWOBJS"} .= '$(MSWDIR)\\' . $file . " " | |
42 | } | |
43 | #$} | |
44 | ||
45 | # This file was automatically generated by tmake at #$ Now() | |
46 | # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE SC.T! | |
47 | ||
48 | # Symantec C++ makefile for the msw objects | |
49 | # called from src\makefile.sc | |
50 | ||
51 | # configuration section (see src\makefile.sc) ########################### | |
52 | ||
53 | WXDIR = $(WXWIN) | |
54 | ||
55 | include ..\makesc.env | |
56 | ||
57 | DEBUG=0 | |
58 | ||
59 | LIBTARGET = $(LIBDIR)\wx.lib | |
60 | ||
61 | OPTIONS= | |
62 | ||
63 | # end of configuration section ########################################## | |
64 | ||
65 | GENDIR=$(WXDIR)\src\generic | |
66 | COMMDIR=$(WXDIR)\src\common | |
67 | XPMDIR=$(WXDIR)\src\xpm | |
68 | OLEDIR=ole | |
69 | MSWDIR=$(WXDIR)\src\msw | |
70 | ||
71 | GENERICOBJS= #$ ExpandList("WXGENERICOBJS"); | |
72 | ||
73 | COMMONOBJS = \ | |
74 | $(COMMDIR)\y_tab.obj \ | |
75 | #$ ExpandList("WXCOMMONOBJS"); | |
76 | ||
77 | MSWOBJS = #$ ExpandList("WXMSWOBJS"); | |
78 | ||
79 | XPMOBJECTS = $(XPMDIR)\crbuffri.obj\ | |
80 | $(XPMDIR)\crdatfri.obj\ | |
81 | $(XPMDIR)\create.obj $(XPMDIR)\crifrbuf.obj\ | |
82 | $(XPMDIR)\crifrdat.obj\ | |
83 | $(XPMDIR)\data.obj\ | |
84 | $(XPMDIR)\hashtab.obj $(XPMDIR)\misc.obj\ | |
85 | $(XPMDIR)\parse.obj $(XPMDIR)\rdftodat.obj\ | |
86 | $(XPMDIR)\rdftoi.obj\ | |
87 | $(XPMDIR)\rgb.obj $(XPMDIR)\scan.obj\ | |
88 | $(XPMDIR)\simx.obj $(XPMDIR)\wrffrdat.obj\ | |
89 | $(XPMDIR)\wrffrp.obj $(XPMDIR)\wrffri.obj | |
90 | ||
91 | # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc. | |
92 | OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) # $(XPMOBJECTS) | |
93 | ||
94 | all: $(LIBTARGET) | |
95 | ||
96 | $(LIBTARGET): $(OBJECTS) | |
97 | -del $(LIBTARGET) | |
98 | *lib /PAGESIZE:512 $(LIBTARGET) y $(OBJECTS), nul; | |
99 | ||
100 | clean: | |
101 | -del *.obj | |
102 | -del $(LIBTARGET) | |
103 | ||
104 | $(COMMDIR)\y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c | |
105 | ||
106 | $(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c | |
107 | copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c | |
108 | ||
109 | $(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c | |
110 | copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c | |
111 | ||
112 | # $(COMMDIR)\cmndata.obj: $(COMMDIR)\cmndata.cpp | |
113 | # *$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) $(COMMDIR)\cmndata.cpp -o$(COMMDIR)\cmndata.obj | |
114 | ||
115 | MFTYPE=sc | |
116 | makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t | |
117 | cd $(WXWIN)\distrib\msw\tmake | |
118 | tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE) | |
119 | copy makefile.$(MFTYPE) $(WXWIN)\src\msw |