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