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