]> git.saurik.com Git - wxWidgets.git/blame - src/png/makefile.bcc
the msw implementation even shows an ok button if it is not specified, we do the...
[wxWidgets.git] / src / png / makefile.bcc
CommitLineData
c801d85f 1#
c7f49969
JS
2# File: makefile.bcc
3# Author: Julian Smart
4# Created: 1993
5# Updated:
6# Copyright:
c801d85f 7#
c7f49969 8# "%W% %G%"
c801d85f 9#
c7f49969
JS
10# Makefile : Builds PNG library (BC++ 16-bit)
11
12# WXWIN and BCCDIR are set by parent make
13
14WXDIR = $(WXWIN)
15!include $(WXDIR)\src\makebcc.env
16
17WINPNGLIB = ..\..\lib\winpng.lib
18
19WXLIBDIR = $(WXDIR)\lib
20WXINC = $(WXDIR)\include\msw
21WXLIB = $(WXLIBDIR)\wx.lib
22
23!if "$(FINAL)" == "0"
24OPT = -Od
25DEBUG_FLAGS= -v
26!else
27OPT = -Od
28DEBUG_FLAGS =
29!endif
30CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
31
32OBJECTS = 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
36all: $(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
c801d85f 61-ml
c7f49969
JS
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
85clean:
86 -erase *.obj
87 -erase *.exe
88 -erase *.res
89 -erase *.map
90 -erase *.rws
91 -erase $(WINPNGLIB)
c801d85f 92