]>
Commit | Line | Data |
---|---|---|
c801d85f | 1 | # |
27529614 | 2 | # File: makefile.b32 |
c801d85f KB |
3 | # Author: Julian Smart |
4 | # Created: 1993 | |
5 | # Updated: | |
27529614 | 6 | # Copyright: |
c801d85f KB |
7 | # |
8 | # "%W% %G%" | |
9 | # | |
27529614 | 10 | # Makefile : Builds minimal example |
c801d85f KB |
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 | WXLIB = $(WXLIBDIR)\wx32.lib | |
20 | LIBS=$(WXLIB) cw32 import32 ole2w32 | |
21 | ||
22 | TARGET=minimal | |
23 | ||
24 | !if "$(FINAL)" == "0" | |
25 | LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib | |
26 | OPT = -Od | |
27 | DEBUG_FLAGS= -v | |
28 | !else | |
29 | LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib | |
30 | OPT = -Od | |
31 | DEBUG_FLAGS = | |
32 | !endif | |
33 | CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG) | |
34 | ||
35 | OBJECTS = minimal.obj | |
36 | ||
27529614 | 37 | $(TARGET).exe: $(OBJECTS) $(TARGET).res |
c801d85f KB |
38 | tlink32 $(LINKFLAGS) @&&! |
39 | c0w32.obj $(OBJECTS) | |
40 | $(TARGET) | |
41 | nul | |
42 | $(LIBS) | |
c801d85f KB |
43 | ! |
44 | brc32 -K $(TARGET).res | |
45 | ||
46 | .$(SRCSUFF).obj: | |
47 | bcc32 $(CPPFLAGS) -c {$< } | |
48 | ||
49 | .c.obj: | |
50 | bcc32 $(CPPFLAGS) -P- -c {$< } | |
51 | ||
52 | minimal.obj: minimal.$(SRCSUFF) | |
53 | ||
54 | $(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc | |
55 | brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include $(TARGET) | |
56 | ||
57 | clean: | |
58 | -erase *.obj | |
59 | -erase *.exe | |
60 | -erase *.res | |
61 | -erase *.map | |
62 | -erase *.rws | |
63 |