]>
Commit | Line | Data |
---|---|---|
4bf78aae JS |
1 | # |
2 | # File: makeprog.b32 | |
3 | # Author: Julian Smart | |
4 | # Created: 1999 | |
5 | # Updated: | |
6 | # Copyright: | |
7 | # | |
8 | # Include file for samples and utilities. Set TARGET and OBJECTS | |
9 | # before including this file. | |
10 | ||
11 | # WXWIN and BCCDIR are set by parent make | |
12 | ||
13 | WXDIR = $(WXWIN) | |
14 | !include $(WXDIR)\src\makeb32.env | |
15 | ||
16 | LIBS=$(WXLIB) cw32mt import32 ole2w32 | |
17 | ||
18 | !if "$(FINAL)" == "0" | |
19 | LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib | |
20 | OPT = -Od | |
21 | DEBUG_FLAGS= -v | |
22 | !else | |
23 | LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib | |
24 | OPT = -Od | |
25 | DEBUG_FLAGS = | |
26 | !endif | |
27 | CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG) | |
28 | ||
29 | $(TARGET).exe: $(OBJECTS) $(TARGET).res | |
30 | tlink32 $(LINKFLAGS) @&&! | |
31 | c0w32.obj $(OBJECTS) | |
32 | $(TARGET) | |
33 | nul | |
34 | $(LIBS) | |
35 | ||
36 | $(TARGET).res | |
37 | ! | |
38 | ||
39 | .$(SRCSUFF).obj: | |
40 | bcc32 $(CPPFLAGS) -c {$< } | |
41 | ||
42 | .c.obj: | |
43 | bcc32 $(CPPFLAGS) -P- -c {$< } | |
44 | ||
45 | $(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc | |
46 | brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include $(TARGET) | |
47 | ||
48 | clean: | |
49 | -erase *.obj | |
50 | -erase *.exe | |
51 | -erase *.res | |
52 | -erase *.map | |
53 | -erase *.rws | |
54 |