]> git.saurik.com Git - wxWidgets.git/blame_incremental - utils/wxtree/src/makefile.b32
no message
[wxWidgets.git] / utils / wxtree / src / makefile.b32
... / ...
CommitLineData
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
12WXDIR = $(WXWIN)
13!include $(WXDIR)\src\makeb32.env
14
15WXINC = $(WXDIR)\include
16TARGET=test
17TESTOBJECTS=test.obj
18LIBTARGET= $(WXLIBDIR)\wxprop.lib
19LIBS=$(WXLIB)\wx32.lib $(LIBTARGET) cw32 import32 ole2w32
20
21!ifndef DEBUG
22DEBUG=0
23!endif
24
25!if "$(FINAL)" == "0"
26LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
27OPT = -Od
28DEBUG_FLAGS= -v -DDEBUG=$(DEBUG)
29!else
30LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
31OPT = -O2
32DEBUG_FLAGS = -DDEBUG=$(DEBUG)
33!endif
34
35CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
36
37.$(SRCSUFF).obj:
38 bcc32 $(CPPFLAGS) -c {$< }
39
40.c.obj:
41 bcc32 $(CPPFLAGS) -P- -c {$< }
42
43OBJECTS = wxtree.obj
44
45all: $(LIBTARGET)
46
47$(LIBTARGET): $(OBJECTS)
48 erase $(LIBTARGET)
49 tlib $(LIBTARGET) /P32 @&&!
50+$(OBJECTS:.obj =.obj +)
51!
52
53wxtree.obj: wxtree.$(SRCSUFF) wxtree.h
54
55$(TARGET).exe: $(TESTOBJECTS) $(LIBTARGET) $(TARGET).def $(TARGET).res
56 tlink32 $(LINKFLAGS) @&&!
57c0w32.obj $(TESTOBJECTS)
58$(TARGET)
59nul
60$(LIBS) $(LIBTARGET)
61$(TARGET).def
62$(TARGET).res
63!
64
65test.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
70clean:
71 -erase *.obj $(LIBTARGET) *.exe *.res *.map *.rws