]> git.saurik.com Git - wxWidgets.git/blob - src/makeprog.b32
Added def files for making OpenGL DLLs (Mingw32); added comment to wxHTML format
[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 LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib jpeg xpm tiff odbc32
17
18 # Note: you may need to remove some libraries for earlier versions of BC++, as below
19 #LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib xpm tiff
20
21 !if "$(FINAL)" == "0"
22 #LINKFLAGS=/v /c /Tpe $(LNKCFG) $(EXTRALINKFLAGS)
23 LINKFLAGS=/v /c /aa -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
24 OPT = -Od
25 DEBUG_FLAGS= -v
26 !else
27 #LINKFLAGS=/Tpe +$(LNKCFG) $(EXTRALINKFLAGS)
28 LINKFLAGS=/aa -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
29 OPT = -Od
30 DEBUG_FLAGS =
31 !endif
32
33 CPPFLAGS=$(DEBUG_FLAGS) $(EXTRACPPFLAGS) $(OPT) @$(CFG)
34
35 all: $(TARGET).exe $(EXTRATARGETS)
36
37 $(TARGET).exe: $(OBJECTS) $(TARGET).res
38 $(LINK) $(LINKFLAGS) @&&!
39 c0w32.obj $(OBJECTS)
40 $(TARGET)
41 nul
42 $(LIBS)
43
44 $(TARGET).res
45 !
46
47 .$(SRCSUFF).obj:
48 bcc32 $(CPPFLAGS) -c {$< }
49
50 .c.obj:
51 bcc32 $(CPPFLAGS) -P- -c {$< }
52
53 $(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
54 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include /i$(WXDIR)\contrib\include $(TARGET)
55
56 clean:
57 -erase *.obj
58 -erase *.exe
59 -erase *.res
60 -erase *.map
61 -erase *.rws
62 -erase *.tds
63 -erase *.il?
64