]>
Commit | Line | Data |
---|---|---|
457814b5 JS |
1 | # |
2 | # File: makefile.bcc | |
3 | # Author: Julian Smart | |
4 | # Created: 1993 | |
5 | # Updated: | |
6 | # Copyright: (c) 1993, AIAI, University of Edinburgh | |
7 | # | |
8 | # "%W% %G%" | |
9 | # | |
10 | # Makefile : Builds validate example (DOS). | |
11 | ||
12 | # WXWIN and BCCDIR are set by parent make | |
13 | ||
14 | WXDIR = $(WXWIN) | |
15 | !include $(WXDIR)\src\makeb32.env | |
16 | ||
17 | WXLIBDIR = $(WXDIR)\lib | |
18 | WXINC = $(WXDIR)\include\msw | |
19 | WXBASESRC = $(WXDIR)\src\base | |
20 | WXBASEINC = $(WXDIR)\include\base | |
21 | WXLIB = $(WXLIBDIR)\wx32.lib | |
22 | LIBS=$(WXLIB) cw32 import32 | |
23 | ||
24 | TARGET=validate | |
25 | ||
26 | !if "$(FINAL)" == "0" | |
27 | LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib | |
28 | OPT = -Od | |
29 | DEBUG_FLAGS= -v | |
30 | !else | |
31 | LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib | |
32 | OPT = -Od | |
33 | DEBUG_FLAGS = | |
34 | !endif | |
35 | CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG) | |
36 | ||
37 | OBJECTS = validate.obj | |
38 | ||
39 | $(TARGET).exe: $(OBJECTS) $(TARGET).def $(TARGET).res | |
40 | tlink32 $(LINKFLAGS) @&&! | |
41 | c0w32.obj $(OBJECTS) | |
42 | $(TARGET) | |
43 | nul | |
44 | $(LIBS) | |
45 | ! | |
46 | brc32 -K $(TARGET).res | |
47 | ||
48 | .$(SRCSUFF).obj: | |
49 | bcc32 $(CPPFLAGS) -c {$< } | |
50 | ||
51 | .c.obj: | |
52 | bcc32 $(CPPFLAGS) -P- -c {$< } | |
53 | ||
54 | validate.obj: validate.$(SRCSUFF) | |
55 | ||
56 | $(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc | |
57 | brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include $(TARGET) | |
58 | ||
59 | clean: | |
60 | -erase *.obj | |
61 | -erase *.exe | |
62 | -erase *.res | |
63 | -erase *.map | |
64 | -erase *.rws | |
65 |