]> git.saurik.com Git - wxWidgets.git/blob - src/zlib/MAKEFILE.VA
1. more HP-UX warning fixes (almost done...)
[wxWidgets.git] / src / zlib / MAKEFILE.VA
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 os2png.lib library for OS/2 3.0/4.0
11
12 # Suffixes
13 OBJSUFF=obj
14 SRCSUFF=c
15
16 OS2FLAGS=/c /W3 /DOS232 /D__VISAGECPP__ /Ss /Q /N100
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
22 WXDIR = j:\dev\wx2\wxWindows
23
24 OS2ZLIBDIR=$(WXDIR)\src\zlib
25 OS2ZLIBINC=$(WINPNGDIR)
26 OS2ZLIBLIB=$(WXDIR)\lib\os2zlib.lib
27
28 INC=
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"
45 D=Debug
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
53 D=Release
54 OPT = /O+ /Oc /G5
55 DEBUG_FLAGS=
56 LINK_DEBUG_FLAGS=/RELEASE
57 CRTFLAG=/Gm /Gd
58 !endif
59
60 !if [md $(OS2ZLIBDIR)\$D]
61 !endif
62
63 CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
64
65 {..\zlib}.c{..\zlib\$D}.obj:
66 @echo $<
67 icc @<<
68 $(CPPFLAGS) /Fo$@ /Tp $<
69 <<
70
71 OBJECTS = \
72 ..\zlib\$D\adler32.obj \
73 ..\zlib\$D\compress.obj \
74 ..\zlib\$D\crc32.obj \
75 ..\zlib\$D\deflate.obj \
76 ..\zlib\$D\gzio.obj \
77 ..\zlib\$D\infblock.obj \
78 ..\zlib\$D\infcodes.obj \
79 ..\zlib\$D\inflate.obj \
80 ..\zlib\$D\inftrees.obj \
81 ..\zlib\$D\infutil.obj \
82 ..\zlib\$D\inffast.obj \
83 ..\zlib\$D\trees.obj \
84 ..\zlib\$D\uncompr.obj \
85 ..\zlib\$D\zutil.obj
86
87 all: $(OS2ZLIBLIB)
88
89 $(WXDIR)\lib\os2zlib.lib: $(OBJECTS)
90 touch $(WXDIR)\lib\os2zlib.lib
91 del $(WXDIR)\lib\os2zlib.lib
92 ilib $(OS2LIBFLAGS) $@ @<<
93 $**;
94 <<
95
96 clean:
97 del $(OS2ZLIBLIB)
98 erase /N $(OS2ZLIBDIR)\$D
99 rd $(OS2ZLIBDIR)\$D
100
101 cleanall: clean
102