]> git.saurik.com Git - wxWidgets.git/blob - src/png/makefile.dos
*** empty log message ***
[wxWidgets.git] / src / png / makefile.dos
1 #
2 # File: makefile.dos
3 # Author: Julian Smart
4 # Created: 1993
5 # Updated:
6 # Copyright: (c) 1993, AIAI, University of Edinburgh
7 #
8 # "%W% %G%"
9 #
10 # Makefile : Builds winpng.lib library for Windows 3.1
11
12 # Change WXDIR or WXWIN to wherever wxWindows is found
13 WXDIR = $(WXWIN)
14 WXLIB = $(WXDIR)\lib\wx.lib
15 WXINC = $(WXDIR)\include
16
17 WINPNGDIR = $(WXDIR)\utils\imatest\png
18 WINPNGINC = $(WINPNGDIR)
19 WINPNGLIB = ..\..\lib\winpng.lib
20
21 INC = /I..\zlib
22
23 LIBS=$(WXLIB) $(WINPNGLIB) libw llibcew commdlg ddeml shell # ctl3d
24
25 # Set this to nothing if your compiler is MS C++ 7
26 ZOPTION=
27
28 !ifndef FINAL
29 FINAL=0
30 !endif
31
32 PRECOMP=/YuWX.H
33
34 !if "$(FINAL)" == "0"
35 OPT = /Od
36 CPPFLAGS= /AL /W4 /Gt4 /Zi $(ZOPTION) /G2sw $(OPT) /Dwx_msw $(INC) # $(PRECOMP) /Fp$(WXDIR)\src\msw\wx.pch
37 CFLAGS= /AL /W4 /Gt4 /Zi /G2sw /Od /Dwx_msw $(INC)
38 LINKFLAGS=/NOD /CO /ONERROR:NOEXE
39 !else
40 # /Ox for real FINAL version
41 OPT = /Ox
42 CPPFLAGS= /AL /W4 /Gt4 /Zi /Os /G2sw $(OPT) /Dwx_msw $(INC) # $(PRECOMP) /Fp$(WXDIR)\src\msw\wx.pch
43 CFLAGS= /AL /W4 /Gt4 /Zi /Os /G2sw /Dwx_msw $(INC)
44 LINKFLAGS=/NOD /ONERROR:NOEXE
45 !endif
46
47 OBJECTS = png.obj pngrcb.obj pngread.obj pngrtran.obj pngrutil.obj pngstub.obj \
48 pngtrans.obj pngwrite.obj pngwtran.obj pngwutil.obj
49
50 all: $(WINPNGLIB)
51
52 wx:
53 cd $(WXDIR)\src
54 nmake -f makefile.dos $(WXLIB) FINAL=$(FINAL)
55
56 $(WINPNGLIB): $(OBJECTS)
57 erase $(WINPNGLIB)
58 lib /PAGESIZE:128 @<<
59 $(WINPNGLIB)
60 y
61 $(OBJECTS)
62 nul
63 ;
64 <<
65
66 .c.obj:
67 cl $(CFLAGS) /c $*.c
68
69 clean:
70 -erase *.obj
71 -erase *.exe
72 -erase *.lib
73 -erase *.sbr
74 -erase *.pdb
75
76 cleanall: clean