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