]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # File: makefile.vc | |
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 | ||
15 | WINPNGDIR = ..\png | |
16 | WINPNGINC = $(WINPNGDIR) | |
17 | ||
18 | !if "$(FINAL)" == "1" | |
19 | WINPNGLIB=..\..\lib\png.lib | |
20 | !else | |
21 | WINPNGLIB=..\..\lib\pngd.lib | |
22 | !endif | |
23 | ||
24 | INC = /I..\zlib | |
25 | ||
26 | # Set this to nothing if your compiler is MS C++ 7 | |
27 | ZOPTION= | |
28 | ||
29 | !ifndef FINAL | |
30 | FINAL=0 | |
31 | !endif | |
32 | ||
33 | PRECOMP=/YuWX.H | |
34 | ||
35 | !if "$(FINAL)" == "0" | |
36 | OPT = /Od | |
37 | CPPFLAGS= /W4 /Zi $(CRTFLAG) /GX $(ZOPTION) $(OPT) /D__WXMSW__ $(INC) | |
38 | CFLAGS= /W4 /Zi $(CRTFLAG) /GX /Od /D__WXMSW__ $(INC) | |
39 | LINKFLAGS=/NOD /CO /ONERROR:NOEXE | |
40 | _CRTFLAG=/MDd | |
41 | !else | |
42 | # /Ox for real FINAL version | |
43 | OPT = /O2 | |
44 | CPPFLAGS= /W4 $(CRTFLAG) /GX /D__WXMSW__ $(INC) | |
45 | CFLAGS= /W4 $(CRTFLAG) /GX /D__WXMSW__ $(INC) | |
46 | LINKFLAGS=/NOD /ONERROR:NOEXE | |
47 | _CRTFLAG=/MDd | |
48 | !endif | |
49 | ||
50 | !if "$(CRTFLAG)" == "" | |
51 | CRTFLAG=$(_CRTFLAG) | |
52 | !endif | |
53 | ||
54 | ||
55 | OBJECTS = png.obj pngread.obj pngrtran.obj pngrutil.obj \ | |
56 | pngpread.obj pngtrans.obj pngwrite.obj pngwtran.obj pngwutil.obj \ | |
57 | pngerror.obj pngmem.obj pngwio.obj pngrio.obj pngget.obj pngset.obj | |
58 | ||
59 | all: $(WINPNGLIB) | |
60 | ||
61 | $(WINPNGLIB): $(OBJECTS) | |
62 | -del $(WINPNGLIB) | |
63 | lib @<< | |
64 | -out:$(WINPNGLIB) | |
65 | $(OBJECTS) | |
66 | << | |
67 | ||
68 | .c.obj: | |
69 | cl -DWIN32 $(OPT) $(CFLAGS) /c $*.c | |
70 | ||
71 | clean: | |
72 | -erase *.obj | |
73 | -erase *.exe | |
74 | -erase *.lib | |
75 | ||
76 | cleanall: clean |