]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/png/makefile.dos
better <HR> tag handling in wxHTML
[wxWidgets.git] / src / png / makefile.dos
... / ...
CommitLineData
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
13WXDIR = $(WXWIN)
14WXLIB = $(WXDIR)\lib\wx.lib
15WXINC = $(WXDIR)\include
16
17WINPNGDIR = $(WXDIR)\src\png
18WINPNGINC = $(WINPNGDIR)
19WINPNGLIB = ..\..\lib\winpng.lib
20
21INC = /I..\zlib
22
23LIBS=$(WXLIB) $(WINPNGLIB) libw llibcew commdlg ddeml shell # ctl3d
24
25# Set this to nothing if your compiler is MS C++ 7
26ZOPTION=
27
28!ifndef FINAL
29FINAL=0
30!endif
31
32PRECOMP=/YuWX.H
33
34!if "$(FINAL)" == "0"
35OPT = /Od
36CPPFLAGS= /AL /W4 /Gt4 /Zi $(ZOPTION) /G2sw $(OPT) /D__WXMSW__ $(INC)
37CFLAGS= /AL /W4 /Gt4 /Zi /G2sw /Od /D__WXMSW__ $(INC)
38LINKFLAGS=/NOD /CO /ONERROR:NOEXE
39!else
40# /Ox for real FINAL version
41OPT = /Ox
42CPPFLAGS= /AL /W4 /Gt4 /Zi /Os /G2sw $(OPT) /D__WXMSW__ $(INC)
43CFLAGS= /AL /W4 /Gt4 /Zi /Os /G2sw /D__WXMSW__ $(INC)
44LINKFLAGS=/NOD /ONERROR:NOEXE
45!endif
46
47OBJECTS = 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
51all: $(WINPNGLIB)
52
53wx:
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)
61y
62$(OBJECTS)
63nul
64;
65<<
66
67.c.obj:
68 cl $(CFLAGS) /c $*.c
69
70clean:
71 -erase *.obj
72 -erase *.exe
73 -erase *.lib
74 -erase *.sbr
75 -erase *.pdb
76
77cleanall: clean