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