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 # Change WXDIR or WXWIN to wherever wxWindows is found
24 OS2XPMDIR=$(WXDIR)\src\xpm
25 OS2XPMINC=$(WINXPMDIR)
26 OS2XPMLIB=$(WXDIR)\lib\os2xpm.lib
28 INC=-I$(WXDIR)\src\xpm -I$(OS2XPMINC)
47 DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
48 LINK_DEBUG_FLAGS=/DEBUG
56 LINK_DEBUG_FLAGS=/RELEASE
60 !if [md $(OS2XPMDIR)\$D]
64 CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
66 {..\xpm}.c{..\xpm\$D}.obj:
69 $(CPPFLAGS) /Fo$@ /Tp $<
73 ..\xpm\$D\attrib.obj \
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 \
82 ..\xpm\$D\hashtab.obj \
85 ..\xpm\$D\rdftodat.obj \
86 ..\xpm\$D\rdftoi.obj \
90 ..\xpm\$D\wrffrdat.obj \
114 all: $(OBJECTS) $(OS2XPMLIB)
116 $(WXDIR)\lib\os2xpm.lib: $(LIBOBJECTS)
117 touch $(WXDIR)\lib\os2xpm.lib
118 del $(WXDIR)\lib\os2xpm.lib
119 ilib $(OS2LIBFLAGS) $@ @<<
126 erase /N $(OS2XPMDIR)\$D
132 copy ..\xpm\$D\attrib.obj
133 copy ..\xpm\$D\crbuffri.obj
134 copy ..\xpm\$D\crdatfri.obj
135 copy ..\xpm\$D\create.obj
136 copy ..\xpm\$D\crifrbuf.obj
137 copy ..\xpm\$D\crifrdat.obj
138 copy ..\xpm\$D\data.obj
139 copy ..\xpm\$D\image.obj
140 copy ..\xpm\$D\info.obj
141 copy ..\xpm\$D\hashtab.obj
142 copy ..\xpm\$D\misc.obj
143 copy ..\xpm\$D\parse.obj
144 copy ..\xpm\$D\rdftodat.obj
145 copy ..\xpm\$D\rdftoi.obj
146 copy ..\xpm\$D\rgb.obj
147 copy ..\xpm\$D\scan.obj
148 copy ..\xpm\$D\simx.obj
149 copy ..\xpm\$D\wrffrdat.obj
150 copy ..\xpm\$D\wrffri.obj