]>
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 | ||
bf3dab48 | 16 | LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib jpeg xpm tiff odbc32 |
4bf78aae JS |
17 | |
18 | !if "$(FINAL)" == "0" | |
a6e2b3a8 | 19 | LINKFLAGS=/v /c /Tpe /L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS) |
4bf78aae JS |
20 | OPT = -Od |
21 | DEBUG_FLAGS= -v | |
22 | !else | |
a6e2b3a8 | 23 | LINKFLAGS=/Tpe /L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS) |
4bf78aae JS |
24 | OPT = -Od |
25 | DEBUG_FLAGS = | |
26 | !endif | |
dbda9e86 JS |
27 | |
28 | CPPFLAGS=$(DEBUG_FLAGS) $(EXTRACPPFLAGS) $(OPT) @$(CFG) | |
29 | ||
30 | all: $(TARGET).exe $(EXTRATARGETS) | |
4bf78aae JS |
31 | |
32 | $(TARGET).exe: $(OBJECTS) $(TARGET).res | |
c3b177ae | 33 | $(LINK) $(LINKFLAGS) @&&! |
4bf78aae JS |
34 | c0w32.obj $(OBJECTS) |
35 | $(TARGET) | |
36 | nul | |
37 | $(LIBS) | |
38 | ||
39 | $(TARGET).res | |
40 | ! | |
41 | ||
42 | .$(SRCSUFF).obj: | |
43 | bcc32 $(CPPFLAGS) -c {$< } | |
44 | ||
45 | .c.obj: | |
46 | bcc32 $(CPPFLAGS) -P- -c {$< } | |
47 | ||
48 | $(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc | |
b14391d1 | 49 | brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include /i$(WXDIR)\contrib\include $(TARGET) |
4bf78aae JS |
50 | |
51 | clean: | |
52 | -erase *.obj | |
53 | -erase *.exe | |
54 | -erase *.res | |
55 | -erase *.map | |
56 | -erase *.rws | |
c3b177ae JS |
57 | -erase *.tds |
58 | -erase *.il? | |
4bf78aae | 59 |