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