]> git.saurik.com Git - wxWidgets.git/blame - src/png/makefile.dos
no message
[wxWidgets.git] / src / png / makefile.dos
CommitLineData
c801d85f
KB
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)\utils\imatest\png
18WINPNGINC = $(WINPNGDIR)
58c55d1f 19WINPNGLIB = ..\..\lib\winpng.lib
c801d85f
KB
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) /Dwx_msw $(INC) # $(PRECOMP) /Fp$(WXDIR)\src\msw\wx.pch
37CFLAGS= /AL /W4 /Gt4 /Zi /G2sw /Od /Dwx_msw $(INC)
38LINKFLAGS=/NOD /CO /ONERROR:NOEXE
39!else
40# /Ox for real FINAL version
41OPT = /Ox
42CPPFLAGS= /AL /W4 /Gt4 /Zi /Os /G2sw $(OPT) /Dwx_msw $(INC) # $(PRECOMP) /Fp$(WXDIR)\src\msw\wx.pch
43CFLAGS= /AL /W4 /Gt4 /Zi /Os /G2sw /Dwx_msw $(INC)
44LINKFLAGS=/NOD /ONERROR:NOEXE
45!endif
46
47OBJECTS = png.obj pngrcb.obj pngread.obj pngrtran.obj pngrutil.obj pngstub.obj \
48 pngtrans.obj pngwrite.obj pngwtran.obj pngwutil.obj
49
50all: $(WINPNGLIB)
51
52wx:
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)
60y
61$(OBJECTS)
62nul
63;
64<<
65
66.c.obj:
67 cl $(CFLAGS) /c $*.c
68
69clean:
70 -erase *.obj
71 -erase *.exe
72 -erase *.lib
73 -erase *.sbr
74 -erase *.pdb
75
76cleanall: clean