]> git.saurik.com Git - wxWidgets.git/blob - utils/wxprop/src/makefile.b32
Changed files to work with wxDataFormat
[wxWidgets.git] / utils / wxprop / 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 wxProperty library for Windows
11 # and Borland C++ 4.x
12
13 WXDIR = $(WXWIN)
14 !include $(WXDIR)\src\makeb32.env
15
16 WXINC = $(WXDIR)\include
17 TARGET=test
18 TESTOBJECTS=test.obj
19 LIBTARGET= $(WXLIBDIR)\wxprop.lib
20 LIBS=$(WXLIB)\wx32.lib $(LIBTARGET) cw32 import32
21
22 !ifndef DEBUG
23 DEBUG=0
24 !endif
25
26 !if "$(FINAL)" == "0"
27 LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
28 OPT = -Od
29 DEBUG_FLAGS= -v -DDEBUG=$(DEBUG)
30 !else
31 LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
32 OPT = -O2
33 DEBUG_FLAGS = -DDEBUG=$(DEBUG)
34 !endif
35
36 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
37
38 .$(SRCSUFF).obj:
39 bcc32 $(CPPFLAGS) -c {$< }
40
41 .c.obj:
42 bcc32 $(CPPFLAGS) -P- -c {$< }
43
44 OBJECTS = prop.obj proplist.obj propform.obj
45
46 all: $(LIBTARGET)
47
48 $(LIBTARGET): $(OBJECTS)
49 erase $(LIBTARGET)
50 tlib $(LIBTARGET) /P32 @&&!
51 +$(OBJECTS:.obj =.obj +)
52 !
53
54 prop.obj: prop.$(SRCSUFF) prop.h
55 proplist.obj: proplist.$(SRCSUFF) prop.h proplist.h
56 propform.obj: propform.$(SRCSUFF) prop.h propform.h
57
58 $(TARGET).exe: $(TESTOBJECTS) $(LIBTARGET) $(TARGET).def $(TARGET).res
59 tlink32 $(LINKFLAGS) @&&!
60 c0w32.obj $(TESTOBJECTS)
61 $(TARGET)
62 nul
63 $(LIBS) $(LIBTARGET)
64 $(TARGET).def
65 !
66 brc32 -K $(TARGET).res
67
68 $(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
69 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include $(TARGET)
70
71 test.obj: test.$(SRCSUFF) test.h
72
73 clean:
74 -erase *.obj $(LIBTARGET) *.exe *.res *.map *.rws