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