]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # File: makefile.b32 | |
3 | # Author: Patrick Halke, modified by Guilhem Lavaux | |
4 | # Created: 1997 | |
5 | # Updated: | |
6 | # Copyright: (c) 1993, AIAI, University of Edinburgh | |
7 | # | |
8 | # "%W% %G%" | |
9 | # | |
10 | # Makefile : Builds 32bit wxstring library for Windows 3.1 | |
11 | # and Borland C++ 4.x | |
12 | ||
13 | WXDIR = $(WXWIN) | |
14 | ||
15 | !if "$(DLL)" == "1" | |
16 | WXBUILDDLL=1 | |
17 | WXUSINGDLL=1 | |
18 | !endif | |
19 | ||
20 | !include $(WXDIR)\src\makeb32.env | |
21 | ||
22 | WXLIBDIR = $(WXDIR)\lib | |
23 | LIBS=$(WXLIB) cw32 import32 | |
24 | ||
25 | !ifndef DEBUG | |
26 | DEBUG=0 | |
27 | !endif | |
28 | ||
29 | LIBTARGET= $(WXLIBDIR)\wxserial.dll | |
30 | CPPFLAGS= $(CPPFLAGS) -Od | |
31 | ||
32 | .c.obj: | |
33 | bcc32 $(CPPFLAGS) -P- -c {$< } | |
34 | ||
35 | OBJECTS = sermain.obj sercore.obj serwnd.obj serctrl.obj sergdi.obj serext.obj | |
36 | ||
37 | all: $(LIBTARGET) | |
38 | ||
39 | sermain.obj: sermain.$(SRCSUFF) | |
40 | bcc32 $(CPPFLAGS) -P- -u- -c sermain.$(SRCSUFF) | |
41 | ||
42 | $(LIBTARGET): $(OBJECTS) | |
43 | erase $(LIBTARGET) | |
44 | tlink32 $(LINK_FLAGS) /v @&&! | |
45 | c0d32.obj $(OBJECTS) | |
46 | $(LIBTARGET) | |
47 | nul | |
48 | $(LIBS) | |
49 | serial | |
50 | ! | |
51 | ||
52 | clean: | |
53 | -erase *.obj | |
54 | -erase $(LIBTARGET) | |
55 | -erase *.exe | |
56 | -erase *.res | |
57 | -erase *.map | |
58 | -erase *.rws |