]> git.saurik.com Git - wxWidgets.git/blob - src/png/makefile.dos
More details about the internal module name changes
[wxWidgets.git] / src / png / makefile.dos
1 #
2 # File: makefile.dos
3 # Author: Julian Smart
4 # Created: 1993
5 # Updated:
6 # Copyright:
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)\src\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) /D__WXMSW__ $(INC)
37 CFLAGS= /AL /W4 /Gt4 /Zi /G2sw /Od /D__WXMSW__ $(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) /D__WXMSW__ $(INC)
43 CFLAGS= /AL /W4 /Gt4 /Zi /Os /G2sw /D__WXMSW__ $(INC)
44 LINKFLAGS=/NOD /ONERROR:NOEXE
45 !endif
46
47 OBJECTS = png.obj pngread.obj pngrtran.obj pngrutil.obj \
48 pngpread.obj pngtrans.obj pngwrite.obj pngwtran.obj pngwutil.obj \
49 pngerror.obj pngmem.obj pngwio.obj pngrio.obj pngget.obj pngset.obj
50
51 all: $(WINPNGLIB)
52
53 wx:
54 cd $(WXDIR)\src
55 nmake -f makefile.dos $(WXLIB) FINAL=$(FINAL)
56
57 $(WINPNGLIB): $(OBJECTS)
58 erase $(WINPNGLIB)
59 lib /PAGESIZE:128 @<<
60 $(WINPNGLIB)
61 y
62 $(OBJECTS)
63 nul
64 ;
65 <<
66
67 .c.obj:
68 cl $(CFLAGS) /c $*.c
69
70 clean:
71 -erase *.obj
72 -erase *.exe
73 -erase *.lib
74 -erase *.sbr
75 -erase *.pdb
76
77 cleanall: clean