3 # Author: David Webster
6 # Copyright: c) 1993, AIAI, University of Edinburgh
10 # Makefile : Builds os2xpm.lib library for OS/2 3.0/4.0
16 OS2FLAGS=/c /W2 /DOS232 /D__VISAGECPP30__ /Dwx_msw /Q /N100
17 OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16
19 OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
21 !if "$(WXMAKINGDLL)" != "0"
22 EXTRADLLFLAGS=/DWXMAKINGDLL=1 /Ge- /D__OS2DLL__
26 # Change WXDIR or WXWIN to wherever wxWindows is found
29 OS2XPMDIR=$(WXDIR)\src\xpm
30 OS2XPMINC=$(WINXPMDIR)
32 !if "$(WXMAKINGDLL)" != "1"
33 OS2XPMLIB=$(WXDIR)\lib\os2xpm.lib
35 OS2XPMLIB=$(WXDIR)\lib\os2xpm.dll
37 INC=-I$(WXDIR)\src\xpm -I$(OS2XPMINC)
54 !if "$(WXMAKINGDLL)" == "1"
60 DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
61 LINK_DEBUG_FLAGS=/DEBUG
66 !if "$(WXMAKINGDLL)" == "1"
73 LINK_DEBUG_FLAGS=/RELEASE
77 !if [md $(OS2XPMDIR)\$D]
81 CPPFLAGS=$(OS2FLAGS) $(EXTRADLLFLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
82 LINKFKAGS=$(OS2LINKFLAGS) $(EXTRALNKFLAGS)
84 {..\xpm}.c{..\xpm\$D}.obj:
87 $(CPPFLAGS) /Fo$@ /Tp $<
91 ..\xpm\$D\attrib.obj \
92 ..\xpm\$D\crbuffri.obj \
93 ..\xpm\$D\crdatfri.obj \
94 ..\xpm\$D\create.obj \
95 ..\xpm\$D\crifrbuf.obj \
96 ..\xpm\$D\crifrdat.obj \
100 ..\xpm\$D\hashtab.obj \
102 ..\xpm\$D\parse.obj \
103 ..\xpm\$D\rdftodat.obj \
104 ..\xpm\$D\rdftoi.obj \
108 ..\xpm\$D\wrffrdat.obj \
132 all: $(OBJECTS) $(OS2XPMLIB)
134 !if "$(WXMAKINGDLL)" != "1"
136 $(WXDIR)\lib\os2xpm.lib: $(LIBOBJECTS)
137 touch $(WXDIR)\lib\os2xpm.lib
138 del $(WXDIR)\lib\os2xpm.lib
139 ilib $(OS2LIBFLAGS) $@ @<<
146 # Update the dynamic link library
147 $(WXDIR)\lib\os2xpm.dll: $(OBJECTS)
149 /B" $(LINKFLAGS)" /Fe$@
152 $(WXDIR)\src\os2\os2xpm.def
154 implib $(WXDIR)\lib\os2xpmd.lib $(WXDIR)\src\os2\os2xpm.def
160 erase /N $(OS2XPMDIR)\$D
166 copy ..\xpm\$D\attrib.obj
167 copy ..\xpm\$D\crbuffri.obj
168 copy ..\xpm\$D\crdatfri.obj
169 copy ..\xpm\$D\create.obj
170 copy ..\xpm\$D\crifrbuf.obj
171 copy ..\xpm\$D\crifrdat.obj
172 copy ..\xpm\$D\data.obj
173 copy ..\xpm\$D\image.obj
174 copy ..\xpm\$D\info.obj
175 copy ..\xpm\$D\hashtab.obj
176 copy ..\xpm\$D\misc.obj
177 copy ..\xpm\$D\parse.obj
178 copy ..\xpm\$D\rdftodat.obj
179 copy ..\xpm\$D\rdftoi.obj
180 copy ..\xpm\$D\rgb.obj
181 copy ..\xpm\$D\scan.obj
182 copy ..\xpm\$D\simx.obj
183 copy ..\xpm\$D\wrffrdat.obj
184 copy ..\xpm\$D\wrffri.obj