]> git.saurik.com Git - wxWidgets.git/blob - samples/mfc/makefile.b32
some fixes to wxSingleInstanceChecker error reporting
[wxWidgets.git] / samples / mfc / makefile.b32
1 #
2 # File: makefile.bcc
3 # Author: Andre Beltman
4 # Created: 1995
5 # Updated:
6 # Copyright: (c) 1995, AIAI, University of Edinburgh
7 #
8 # "%W% %G%"
9 #
10 # Makefile : Builds mfc example (DOS).
11
12 # WXWIN and BCCDIR are set by parent make
13
14 WXDIR = $(WXWIN)
15 !include $(WXDIR)\src\makeb32.env
16
17 WXLIBDIR = $(WXDIR)\lib
18 WXINC = $(WXDIR)\include\msw
19 WXBASESRC = $(WXDIR)\src\base
20 WXBASEINC = $(WXDIR)\include\base
21 WXLIB = $(WXLIBDIR)\wx32.lib
22 FAFALIB = $(WXLIBDIR)\fafa.lib
23 ITSYLIB = $(WXLIBDIR)\itsy.lib
24 XPMLIB = $(WXLIBDIR)\xpm.lib
25 DIBLIB = $(WXLIBDIR)\dib.lib
26 GAUGELIB = $(WXLIBDIR)\gauge.lib
27 WXTREELIB = $(WXLIBDIR)\wxtree.lib
28 RCPARSERLIB = $(WXLIBDIR)\rcparser.lib
29 PROLOGLIB = $(WXLIBDIR)\prologio.lib
30 LIBS=$(WXLIB) cw32 import32 ctl3d32 $(FAFALIB) $(ITSYLIB) $(DIBLIB)\
31 $(XPMLIB) $(PROLOGLIB) $(RCPARSERLIB) $(GAUGELIB) $(WXTREELIB)
32
33 TARGET=hello
34
35 !if "$(FINAL)" == "0"
36 LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
37 OPT = -Od
38 DEBUG_FLAGS= -v
39 !else
40 LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
41 OPT = -Od
42 DEBUG_FLAGS =
43 !endif
44 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
45
46 OBJECTS = hello.obj
47
48 $(TARGET).exe: $(OBJECTS) $(TARGET).def $(TARGET).res
49 tlink32 $(LINKFLAGS) @&&!
50 c0w32.obj $(OBJECTS)
51 $(TARGET)
52 nul
53 $(LIBS)
54 $(TARGET).def
55 $(TARGET).res
56 !
57
58 .$(SRCSUFF).obj:
59 bcc32 $(CPPFLAGS) -c {$< }
60
61 .c.obj:
62 bcc32 $(CPPFLAGS) -P- -c {$< }
63
64 hello.obj: hello.$(SRCSUFF)
65
66 $(TARGET).res : $(TARGET).rc $(WXDIR)\include\msw\wx.rc
67 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa $(TARGET)
68
69 clean:
70 -erase *.obj *.exe *.res *.map *.rws
71