]> git.saurik.com Git - wxWidgets.git/blob - src/png/makefile.bcc
Removed a space (oh, dear, it looks like a joke
[wxWidgets.git] / src / png / makefile.bcc
1 #
2 # File: makefile.bcc
3 # Author: Julian Smart
4 # Created: 1993
5 # Updated:
6 # Copyright:
7 #
8 # "%W% %G%"
9 #
10 # Makefile : Builds PNG library (BC++ 16-bit)
11
12 # WXWIN and BCCDIR are set by parent make
13
14 WXDIR = $(WXWIN)
15 !include $(WXDIR)\src\makebcc.env
16
17 WINPNGLIB = ..\..\lib\winpng.lib
18
19 WXLIBDIR = $(WXDIR)\lib
20 WXINC = $(WXDIR)\include\msw
21 WXLIB = $(WXLIBDIR)\wx.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 bcc $(CPPFLAGS) -c {$< }
46
47 .c.obj:
48 bcc $(CPPFLAGS) -P- -c {$< }
49
50 $(CFG): makefile.bcc
51 copy &&!
52 -H=$(WXDIR)\src\msw\borland.pch
53 -2
54 -P
55 -d
56 -w-hid
57 -w-par
58 -w-pia
59 -w-aus
60 -w-rch
61 -ml
62 -Od
63 -WE
64 -Fs-
65 -Vf
66 -Ff=4
67 -I$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/png;$(WXDIR)/src/zlib;$(WXDIR)/src/xpm
68 -I$(WXDIR)\include\wx\msw\gnuwin32
69 -L$(BCCDIR)\lib
70 -D__WXWIN__
71 -D__WXMSW__
72 -D__WINDOWS__
73 -D__WIN16__
74 ! $(CFG)
75 !if "$(BOR_VER)" == "3.1"
76 echo -Ff=4 >>$(CFG)
77 !elif "$(BOR_VER)" == "4"
78 echo -Ff=512 >>$(CFG)
79 echo -dc >>$(CFG)
80 !else
81 echo -Ff=512 >>$(CFG)
82 echo -dc >>$(CFG)
83 !endif
84
85 clean:
86 -erase *.obj
87 -erase *.exe
88 -erase *.res
89 -erase *.map
90 -erase *.rws
91 -erase $(WINPNGLIB)
92