]>
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 | ||
2b5f62a0 VZ |
17 | !if "$(wxUSE_GUI)" == "0" |
18 | IMGLIBS= | |
19 | !else | |
20 | IMGLIBS= winpng jpeg tiff | |
21 | !endif | |
22 | ||
f6bcfd97 | 23 | !if "$(WXUSINGDLL)" == "1" |
2b5f62a0 | 24 | LIBS=$(WXLIB) $(EXTRALIBS) cw32mti import32 ole2w32 regex zlib $(IMGLIBS) odbc32 |
f6bcfd97 | 25 | !else |
2b5f62a0 | 26 | LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 regex zlib $(IMGLIBS) odbc32 |
f6bcfd97 | 27 | !endif |
4bf78aae | 28 | |
b2cf617c | 29 | # Note: you may need to remove some libraries for earlier versions of BC++, as below |
9d8c2f41 | 30 | #LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib tiff |
b2cf617c | 31 | |
8c3288a7 CE |
32 | !if "$(wxUSE_GUI)" == "0" |
33 | LINKOUT = /ap | |
34 | !else | |
35 | LINKOUT = /aa | |
36 | !endif | |
37 | ||
4bf78aae | 38 | !if "$(FINAL)" == "0" |
b2cf617c | 39 | #LINKFLAGS=/v /c /Tpe $(LNKCFG) $(EXTRALINKFLAGS) |
8c3288a7 | 40 | LINKFLAGS=/v /c $(LINKOUT) -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS) |
4bf78aae JS |
41 | OPT = -Od |
42 | DEBUG_FLAGS= -v | |
43 | !else | |
b2cf617c | 44 | #LINKFLAGS=/Tpe +$(LNKCFG) $(EXTRALINKFLAGS) |
8c3288a7 | 45 | LINKFLAGS=$(LINKOUT) -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS) |
4bf78aae JS |
46 | OPT = -Od |
47 | DEBUG_FLAGS = | |
48 | !endif | |
dbda9e86 | 49 | |
f6bcfd97 | 50 | CPPFLAGS=$(CPPFLAGS) $(DEBUG_FLAGS) $(OPT) |
dbda9e86 | 51 | |
77fc3492 | 52 | TARGETDEF = |
8c3288a7 CE |
53 | !if "$(wxUSE_GUI)" == "0" |
54 | TARGETRES = | |
55 | STARTUP = c0x32.obj | |
56 | !else | |
77fc3492 | 57 | if exist $(TARGET).def TARGETDEF = $(TARGET).def |
8c3288a7 CE |
58 | TARGETRES = $(TARGET).res |
59 | STARTUP = c0w32.obj | |
60 | !endif | |
61 | ||
dbda9e86 | 62 | all: $(TARGET).exe $(EXTRATARGETS) |
4bf78aae | 63 | |
77fc3492 | 64 | $(TARGET).exe: $(OBJECTS) $(TARGETDEF) $(TARGETRES) |
c3b177ae | 65 | $(LINK) $(LINKFLAGS) @&&! |
8c3288a7 | 66 | $(STARTUP) $(OBJECTS) |
4bf78aae JS |
67 | $(TARGET) |
68 | nul | |
69 | $(LIBS) | |
70 | ||
8c3288a7 | 71 | $(TARGETRES) |
4bf78aae JS |
72 | ! |
73 | ||
74 | .$(SRCSUFF).obj: | |
75 | bcc32 $(CPPFLAGS) -c {$< } | |
76 | ||
77 | .c.obj: | |
78 | bcc32 $(CPPFLAGS) -P- -c {$< } | |
79 | ||
80 | $(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc | |
b14391d1 | 81 | brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include /i$(WXDIR)\contrib\include $(TARGET) |
4bf78aae JS |
82 | |
83 | clean: | |
84 | -erase *.obj | |
85 | -erase *.exe | |
86 | -erase *.res | |
87 | -erase *.map | |
88 | -erase *.rws | |
c3b177ae JS |
89 | -erase *.tds |
90 | -erase *.il? | |
4bf78aae | 91 |