]>
Commit | Line | Data |
---|---|---|
4414cc1d JS |
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 | |
2243eed5 | 62 | $(TARGET).res |
4414cc1d | 63 | ! |
4414cc1d JS |
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 |