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