]>
Commit | Line | Data |
---|---|---|
16a12a3d DW |
1 | # |
2 | # File: makefile.vc | |
3 | # Author: David Webster | |
4 | # Created: 1999 | |
5 | # Updated: | |
6 | # Copyright: c) 1993, AIAI, University of Edinburgh | |
7 | # | |
8 | # "%W% %G%" | |
9 | # | |
10 | # Makefile : Builds os2xpm.lib library for OS/2 3.0/4.0 | |
11 | ||
12 | # Suffixes | |
13 | OBJSUFF=obj | |
14 | SRCSUFF=cpp | |
15 | ||
57e3f9d9 | 16 | OS2FLAGS=/c /W2 /DOS232 /D__VISAGECPP__ /Dwx_msw /Ss /Q /N100 |
16a12a3d DW |
17 | OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16 |
18 | OS2LIBFLAGS=/NOL /NOE | |
19 | OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB | |
20 | ||
21 | # Change WXDIR or WXWIN to wherever wxWindows is found | |
57e3f9d9 | 22 | WXDIR = $(WXWIN) |
16a12a3d DW |
23 | |
24 | OS2XPMDIR=$(WXDIR)\src\xpm | |
25 | OS2XPMINC=$(WINXPMDIR) | |
26 | OS2XPMLIB=$(WXDIR)\lib\os2xpm.lib | |
27 | ||
28 | INC=-I$(WXDIR)\src\xpm -I$(OS2XPMINC) | |
29 | ||
30 | !ifndef FINAL | |
31 | FINAL=0 | |
32 | !endif | |
33 | ||
34 | !if "$(NOPCH)" == "1" | |
35 | PCH= | |
36 | PRECOMP= | |
37 | MAKEPRECOMP= | |
38 | !else | |
39 | PCH=$(WXLIBNAME).pch | |
40 | PRECOMP=/Si$(PCH) | |
41 | MAKEPRECOMP=/Fi$(PCH) | |
42 | !endif | |
43 | ||
44 | !if "$(FINAL)" == "0" | |
57e3f9d9 | 45 | D=DebugOS2 |
16a12a3d DW |
46 | OPT = |
47 | DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb | |
48 | LINK_DEBUG_FLAGS=/DEBUG | |
49 | CRTFLAG=/Gm /Gd | |
50 | !else | |
51 | # /O1 - smallest code | |
52 | # /O2 - fastest code | |
57e3f9d9 | 53 | D=RelseOS2 |
16a12a3d DW |
54 | OPT = /O+ /Oc /G5 |
55 | DEBUG_FLAGS= | |
56 | LINK_DEBUG_FLAGS=/RELEASE | |
57 | CRTFLAG=/Gm /Gd | |
58 | !endif | |
59 | ||
60 | !if [md $(OS2XPMDIR)\$D] | |
61 | !endif | |
62 | ||
63 | ||
64 | CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG) | |
65 | ||
66 | {..\xpm}.c{..\xpm\$D}.obj: | |
67 | @echo $< | |
68 | icc @<< | |
69 | $(CPPFLAGS) /Fo$@ /Tp $< | |
70 | << | |
71 | ||
72 | OBJECTS = \ | |
e6ed776f | 73 | ..\xpm\$D\attrib.obj \ |
16a12a3d DW |
74 | ..\xpm\$D\crbuffri.obj \ |
75 | ..\xpm\$D\crdatfri.obj \ | |
76 | ..\xpm\$D\create.obj \ | |
77 | ..\xpm\$D\crifrbuf.obj \ | |
78 | ..\xpm\$D\crifrdat.obj \ | |
79 | ..\xpm\$D\data.obj \ | |
e6ed776f GRG |
80 | ..\xpm\$D\image.obj \ |
81 | ..\xpm\$D\info.obj \ | |
16a12a3d DW |
82 | ..\xpm\$D\hashtab.obj \ |
83 | ..\xpm\$D\misc.obj \ | |
84 | ..\xpm\$D\parse.obj \ | |
85 | ..\xpm\$D\rdftodat.obj \ | |
86 | ..\xpm\$D\rdftoi.obj \ | |
87 | ..\xpm\$D\rgb.obj \ | |
88 | ..\xpm\$D\scan.obj \ | |
89 | ..\xpm\$D\simx.obj \ | |
90 | ..\xpm\$D\wrffrdat.obj \ | |
16a12a3d DW |
91 | ..\xpm\$D\wrffri.obj |
92 | ||
ea258ad3 DW |
93 | LIBOBJECTS = \ |
94 | attrib.obj \ | |
95 | crbuffri.obj \ | |
96 | crdatfri.obj \ | |
97 | create.obj \ | |
98 | crifrbuf.obj \ | |
99 | crifrdat.obj \ | |
100 | data.obj \ | |
101 | image.obj \ | |
102 | info.obj \ | |
103 | hashtab.obj \ | |
104 | misc.obj \ | |
105 | parse.obj \ | |
106 | rdftodat.obj \ | |
107 | rdftoi.obj \ | |
108 | rgb.obj \ | |
109 | scan.obj \ | |
110 | simx.obj \ | |
111 | wrffrdat.obj \ | |
112 | wrffri.obj | |
113 | ||
114 | $(LIBOBJECTS): | |
115 | copy ..\xpm\$D\attrib.obj | |
116 | copy ..\xpm\$D\crbuffri.obj | |
117 | copy ..\xpm\$D\crdatfri.obj | |
118 | copy ..\xpm\$D\create.obj | |
119 | copy ..\xpm\$D\crifrbuf.obj | |
120 | copy ..\xpm\$D\crifrdat.obj | |
121 | copy ..\xpm\$D\data.obj | |
122 | copy ..\xpm\$D\image.obj | |
123 | copy ..\xpm\$D\info.obj | |
124 | copy ..\xpm\$D\hashtab.obj | |
125 | copy ..\xpm\$D\misc.obj | |
126 | copy ..\xpm\$D\parse.obj | |
127 | copy ..\xpm\$D\rdftodat.obj | |
128 | copy ..\xpm\$D\rdftoi.obj | |
129 | copy ..\xpm\$D\rgb.obj | |
130 | copy ..\xpm\$D\scan.obj | |
131 | copy ..\xpm\$D\simx.obj | |
132 | copy ..\xpm\$D\wrffrdat.obj | |
133 | copy ..\xpm\$D\wrffri.obj | |
134 | ||
16a12a3d DW |
135 | all: $(OS2XPMLIB) |
136 | ||
ea258ad3 | 137 | $(WXDIR)\lib\os2xpm.lib: $(LIBOBJECTS) |
16a12a3d DW |
138 | touch $(WXDIR)\lib\os2xpm.lib |
139 | del $(WXDIR)\lib\os2xpm.lib | |
140 | ilib $(OS2LIBFLAGS) $@ @<< | |
141 | $**; | |
142 | << | |
ea258ad3 | 143 | del *.obj |
16a12a3d DW |
144 | |
145 | clean: | |
50c375d3 DW |
146 | del $(OS2XPMLIB) |
147 | erase /N $(OS2XPMDIR)\$D | |
148 | rd $(OS2XPMDIR)\$D | |
16a12a3d DW |
149 | |
150 | cleanall: clean | |
151 |