]> git.saurik.com Git - wxWidgets.git/blob - utils/wxtree/src/makefile.b32
no message
[wxWidgets.git] / utils / wxtree / src / makefile.b32
1 #
2 # File: makefile.b32
3 # Author: Patrick Halke
4 # Created: 1995
5 # Updated:
6 # Copyright: (c) 1993, AIAI, University of Edinburgh
7 #
8 # "%W% %G%"
9 #
10 # Makefile : Builds 32bit wxtree library for 32-bit BC++
11
12 WXDIR = $(WXWIN)
13 !include $(WXDIR)\src\makeb32.env
14
15 WXINC = $(WXDIR)\include
16 TARGET=test
17 TESTOBJECTS=test.obj
18 LIBTARGET= $(WXLIBDIR)\wxprop.lib
19 LIBS=$(WXLIB)\wx32.lib $(LIBTARGET) cw32 import32
20
21 !ifndef DEBUG
22 DEBUG=0
23 !endif
24
25 !if "$(FINAL)" == "0"
26 LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
27 OPT = -Od
28 DEBUG_FLAGS= -v -DDEBUG=$(DEBUG)
29 !else
30 LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
31 OPT = -O2
32 DEBUG_FLAGS = -DDEBUG=$(DEBUG)
33 !endif
34
35 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
36
37 .$(SRCSUFF).obj:
38 bcc32 $(CPPFLAGS) -c {$< }
39
40 .c.obj:
41 bcc32 $(CPPFLAGS) -P- -c {$< }
42
43 OBJECTS = wxtree.obj
44
45 all: $(LIBTARGET)
46
47 $(LIBTARGET): $(OBJECTS)
48 erase $(LIBTARGET)
49 tlib $(LIBTARGET) /P32 @&&!
50 +$(OBJECTS:.obj =.obj +)
51 !
52
53 wxtree.obj: wxtree.$(SRCSUFF) wxtree.h
54
55 $(TARGET).exe: $(TESTOBJECTS) $(LIBTARGET) $(TARGET).def $(TARGET).res
56 tlink32 $(LINKFLAGS) @&&!
57 c0w32.obj $(TESTOBJECTS)
58 $(TARGET)
59 nul
60 $(LIBS) $(LIBTARGET)
61 $(TARGET).def
62 !
63 brc32 -K $(TARGET).res
64
65 test.obj: test.$(SRCSUFF) test.h
66
67 $(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
68 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include $(TARGET)
69
70 clean:
71 -erase *.obj $(LIBTARGET) *.exe *.res *.map *.rws