]>
Commit | Line | Data |
---|---|---|
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 | |
13 | WXDIR = $(WXWIN) | |
14 | WXLIB = $(WXDIR)\lib\wx.lib | |
15 | WXINC = $(WXDIR)\include | |
16 | ||
c7f49969 | 17 | WINPNGDIR = $(WXDIR)\src\png |
c801d85f | 18 | WINPNGINC = $(WINPNGDIR) |
58c55d1f | 19 | WINPNGLIB = ..\..\lib\winpng.lib |
c801d85f KB |
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 | |
c7f49969 JS |
36 | CPPFLAGS= /AL /W4 /Gt4 /Zi $(ZOPTION) /G2sw $(OPT) /D__WXMSW__ $(INC) |
37 | CFLAGS= /AL /W4 /Gt4 /Zi /G2sw /Od /D__WXMSW__ $(INC) | |
c801d85f KB |
38 | LINKFLAGS=/NOD /CO /ONERROR:NOEXE |
39 | !else | |
40 | # /Ox for real FINAL version | |
41 | OPT = /Ox | |
c7f49969 JS |
42 | CPPFLAGS= /AL /W4 /Gt4 /Zi /Os /G2sw $(OPT) /D__WXMSW__ $(INC) |
43 | CFLAGS= /AL /W4 /Gt4 /Zi /Os /G2sw /D__WXMSW__ $(INC) | |
c801d85f KB |
44 | LINKFLAGS=/NOD /ONERROR:NOEXE |
45 | !endif | |
46 | ||
c7f49969 JS |
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 | |
c801d85f KB |
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 |