]>
Commit | Line | Data |
---|---|---|
2fd284a4 | 1 | # |
e06b9569 | 2 | # File: makefile.vc |
2fd284a4 JS |
3 | # Author: Julian Smart |
4 | # Created: 1997 | |
5 | # Updated: | |
6 | # Copyright: (c) 1997, Julian Smart | |
7 | # | |
8 | # "%W% %G%" | |
9 | # | |
10 | # Makefile : Builds xpm.lib for VC++ (32-bit) | |
11 | # | |
48d1144b | 12 | !include <..\makevc.env> |
2fd284a4 | 13 | |
cd31c795 GT |
14 | !if "$(RM)" == "" |
15 | RM= del | |
16 | !endif | |
17 | ||
2fd284a4 JS |
18 | THISDIR=$(WXWIN)\src\xpm |
19 | ||
5fa399c9 | 20 | !if "$(FINAL)" == "1" |
2fd284a4 | 21 | LIBTARGET=$(WXDIR)\lib\xpm.lib |
f641dada RD |
22 | !else if "$(FINAL)" == "hybrid" |
23 | LIBTARGET=$(WXDIR)\lib\xpmh.lib | |
5fa399c9 JS |
24 | !else |
25 | LIBTARGET=$(WXDIR)\lib\xpmd.lib | |
26 | !endif | |
2fd284a4 | 27 | |
2fd284a4 JS |
28 | XPMDIR=$(WXDIR)\src\xpm |
29 | ||
cd31c795 GT |
30 | OBJECTS = $(XPMDIR)\$D\attrib.obj\ |
31 | $(XPMDIR)\$D\crbuffri.obj\ | |
32 | $(XPMDIR)\$D\crdatfri.obj\ | |
33 | $(XPMDIR)\$D\create.obj\ | |
34 | $(XPMDIR)\$D\crifrbuf.obj\ | |
35 | $(XPMDIR)\$D\crifrdat.obj\ | |
36 | $(XPMDIR)\$D\data.obj\ | |
37 | $(XPMDIR)\$D\image.obj\ | |
38 | $(XPMDIR)\$D\info.obj\ | |
39 | $(XPMDIR)\$D\hashtab.obj\ | |
40 | $(XPMDIR)\$D\misc.obj\ | |
41 | $(XPMDIR)\$D\parse.obj\ | |
42 | $(XPMDIR)\$D\rdftodat.obj\ | |
43 | $(XPMDIR)\$D\rdftoi.obj\ | |
44 | $(XPMDIR)\$D\rgb.obj\ | |
45 | $(XPMDIR)\$D\scan.obj\ | |
46 | $(XPMDIR)\$D\simx.obj\ | |
47 | $(XPMDIR)\$D\wrffrdat.obj\ | |
48 | $(XPMDIR)\$D\wrffri.obj | |
49 | ||
50 | all: $D $(LIBTARGET) | |
51 | ||
52 | $D: | |
53 | mkdir .\$D | |
2fd284a4 JS |
54 | |
55 | $(LIBTARGET): $(OBJECTS) | |
56 | -erase $(LIBTARGET) | |
57 | $(implib) @<< | |
58 | -out:$@ | |
59 | -machine:$(CPU) | |
60 | $(OBJECTS) $(PERIPH_LIBS) | |
61 | << | |
62 | ||
cd31c795 | 63 | $(XPMDIR)\$D\attrib.obj: $(XPMDIR)\attrib.c |
2fd284a4 | 64 | cl @<< |
cd31c795 | 65 | $(CPPFLAGS2) /c $(*B).c /Fo$@ |
2fd284a4 JS |
66 | << |
67 | ||
cd31c795 | 68 | $(XPMDIR)\$D\crbuffri.obj: $(XPMDIR)\crbuffri.c |
2fd284a4 | 69 | cl @<< |
cd31c795 | 70 | $(CPPFLAGS2) /c $(*B).c /Fo$@ |
2fd284a4 JS |
71 | << |
72 | ||
cd31c795 | 73 | $(XPMDIR)\$D\crdatfri.obj: $(XPMDIR)\crdatfri.c |
2fd284a4 | 74 | cl @<< |
cd31c795 | 75 | $(CPPFLAGS2) /c $(*B).c /Fo$@ |
2fd284a4 JS |
76 | << |
77 | ||
cd31c795 | 78 | $(XPMDIR)\$D\create.obj: $(XPMDIR)\create.c |
2fd284a4 | 79 | cl @<< |
cd31c795 | 80 | $(CPPFLAGS2) /c $(*B).c /Fo$@ |
2fd284a4 JS |
81 | << |
82 | ||
cd31c795 | 83 | $(XPMDIR)\$D\crifrbuf.obj: $(XPMDIR)\crifrbuf.c |
2fd284a4 | 84 | cl @<< |
cd31c795 | 85 | $(CPPFLAGS2) /c $(*B).c /Fo$@ |
2fd284a4 JS |
86 | << |
87 | ||
cd31c795 | 88 | $(XPMDIR)\$D\crifrdat.obj: $(XPMDIR)\crifrdat.c |
2fd284a4 | 89 | cl @<< |
cd31c795 | 90 | $(CPPFLAGS2) /c $(*B).c /Fo$@ |
2fd284a4 JS |
91 | << |
92 | ||
cd31c795 | 93 | $(XPMDIR)\$D\data.obj: $(XPMDIR)\data.c |
2fd284a4 | 94 | cl @<< |
cd31c795 | 95 | $(CPPFLAGS2) /c $(*B).c /Fo$@ |
2fd284a4 JS |
96 | << |
97 | ||
cd31c795 | 98 | $(XPMDIR)\$D\image.obj: $(XPMDIR)\image.c |
2fd284a4 | 99 | cl @<< |
cd31c795 | 100 | $(CPPFLAGS2) /c $(*B).c /Fo$@ |
2fd284a4 JS |
101 | << |
102 | ||
cd31c795 | 103 | $(XPMDIR)\$D\info.obj: $(XPMDIR)\info.c |
2fd284a4 | 104 | cl @<< |
cd31c795 | 105 | $(CPPFLAGS2) /c $(*B).c /Fo$@ |
2fd284a4 JS |
106 | << |
107 | ||
cd31c795 | 108 | $(XPMDIR)\$D\hashtab.obj: $(XPMDIR)\hashtab.c |
2fd284a4 | 109 | cl @<< |
cd31c795 | 110 | $(CPPFLAGS2) /c $(*B).c /Fo$@ |
2fd284a4 JS |
111 | << |
112 | ||
cd31c795 | 113 | $(XPMDIR)\$D\misc.obj: $(XPMDIR)\misc.c |
2fd284a4 | 114 | cl @<< |
cd31c795 | 115 | $(CPPFLAGS2) /c $(*B).c /Fo$@ |
2fd284a4 JS |
116 | << |
117 | ||
cd31c795 | 118 | $(XPMDIR)\$D\parse.obj: $(XPMDIR)\parse.c |
2fd284a4 | 119 | cl @<< |
cd31c795 | 120 | $(CPPFLAGS2) /c $(*B).c /Fo$@ |
2fd284a4 JS |
121 | << |
122 | ||
cd31c795 | 123 | $(XPMDIR)\$D\rdftodat.obj: $(XPMDIR)\rdftodat.c |
2fd284a4 | 124 | cl @<< |
cd31c795 | 125 | $(CPPFLAGS2) /c $(*B).c /Fo$@ |
2fd284a4 JS |
126 | << |
127 | ||
cd31c795 | 128 | $(XPMDIR)\$D\rdftoi.obj: $(XPMDIR)\rdftoi.c |
2fd284a4 | 129 | cl @<< |
cd31c795 | 130 | $(CPPFLAGS2) /c $(*B).c /Fo$@ |
2fd284a4 JS |
131 | << |
132 | ||
cd31c795 | 133 | $(XPMDIR)\$D\rgb.obj: $(XPMDIR)\rgb.c |
2fd284a4 | 134 | cl @<< |
cd31c795 | 135 | $(CPPFLAGS2) /c $(*B).c /Fo$@ |
2fd284a4 JS |
136 | << |
137 | ||
cd31c795 | 138 | $(XPMDIR)\$D\scan.obj: $(XPMDIR)\scan.c |
2fd284a4 | 139 | cl @<< |
cd31c795 | 140 | $(CPPFLAGS2) /c $(*B).c /Fo$@ |
2fd284a4 JS |
141 | << |
142 | ||
cd31c795 | 143 | $(XPMDIR)\$D\simx.obj: $(XPMDIR)\simx.c |
2fd284a4 | 144 | cl @<< |
cd31c795 | 145 | $(CPPFLAGS2) /c $(*B).c /Fo$@ |
2fd284a4 JS |
146 | << |
147 | ||
cd31c795 | 148 | $(XPMDIR)\$D\wrffrdat.obj: $(XPMDIR)\wrffrdat.c |
2fd284a4 | 149 | cl @<< |
cd31c795 | 150 | $(CPPFLAGS2) /c $(*B).c /Fo$@ |
2fd284a4 JS |
151 | << |
152 | ||
cd31c795 | 153 | $(XPMDIR)\$D\wrffri.obj: $(XPMDIR)\wrffri.c |
2fd284a4 | 154 | cl @<< |
cd31c795 | 155 | $(CPPFLAGS2) /c $(*B).c /Fo$@ |
2fd284a4 JS |
156 | << |
157 | ||
2fd284a4 | 158 | clean: |
cd31c795 GT |
159 | -$(RM) $D\*.obj |
160 | -$(RM) $(LIBTARGET) | |
161 | -$(RM) *.pdb | |
162 | -$(RM) *.sbr | |
163 | -$(RM) *.pch | |
2fd284a4 JS |
164 | |
165 | cleanall: clean | |
166 |