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