]> git.saurik.com Git - wxWidgets.git/blob - src/png/makefile.b32
0425a7f2fb5c136bf3936d571c77958b87827ce5
[wxWidgets.git] / src / png / makefile.b32
1 #
2 # File: makefile.b32
3 # Author: Julian Smart
4 # Created: 1993
5 # Updated:
6 # Copyright:
7 #
8 # "%W% %G%"
9 #
10 # Makefile : Builds PNG library (BC++ 32-bit)
11
12 # WXWIN and BCCDIR are set by parent make
13
14 WXDIR = $(WXWIN)
15 !include $(WXDIR)\src\makeb32.env
16
17 WINPNGLIB = ..\..\lib\winpng.lib
18
19 WXLIBDIR = $(WXDIR)\lib
20 WXINC = $(WXDIR)\include\msw
21 WXLIB = $(WXLIBDIR)\wx32.lib
22
23 !if "$(FINAL)" == "0"
24 OPT = -Od
25 DEBUG_FLAGS= -v
26 !else
27 OPT = -Od
28 DEBUG_FLAGS =
29 !endif
30 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
31
32 OBJECTS = png.obj pngread.obj pngrtran.obj pngrutil.obj \
33 pngpread.obj pngtrans.obj pngwrite.obj pngwtran.obj pngwutil.obj \
34 pngerror.obj pngmem.obj pngwio.obj pngrio.obj pngget.obj pngset.obj
35
36 all: $(WINPNGLIB)
37
38 $(WINPNGLIB): $(OBJECTS)
39 -erase $(WINPNGLIB)
40 tlib $(WINPNGLIB) /P512 @&&!
41 -+$(OBJECTS:.obj =.obj -+)
42 !
43
44 .$(SRCSUFF).obj:
45 bcc32 $(CPPFLAGS) -c {$< }
46
47 .c.obj:
48 bcc32 $(CPPFLAGS) -P- -c {$< }
49
50 $(CFG): makefile.b32
51 copy &&!
52 -3
53 -P
54 -d
55 -w-hid
56 -w-par
57 -w-pia
58 -w-aus
59 -w-rch
60 -Oxt
61 -WE
62
63 -I$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/png;$(WXDIR)/src/zlib
64 -I$(WXDIR)\include\wx\msw\gnuwin32
65
66 -L$(BCCDIR)\lib
67 -D__WXWIN__
68 -D__WXMSW__
69 -D__WINDOWS__
70 -DWIN32
71 $(OPT)
72 $(DEBUG_FLAGS)
73 $(WIN95FLAG)
74 ! $(CFG)
75
76 clean:
77 -erase *.obj
78 -erase *.exe
79 -erase *.res
80 -erase *.map
81 -erase *.rws
82