]> git.saurik.com Git - wxWidgets.git/blame - samples/toolbar/makefile.dos
Attempting to check in this wretched cursor again. Also added SetAcceleratorTable
[wxWidgets.git] / samples / toolbar / makefile.dos
CommitLineData
14d1ccd8
JS
1#
2# File: makefile.dos
3# Author: Julian Smart
4# Created: 1993
5# Updated:
6# Copyright: (c) 1993, AIAI, University of Edinburgh
7#
8# "%W% %G%"
9#
10# Makefile : Builds wxToolbar sample
11# Use FINAL=1 argument to nmake to build final version with no debugging
12# info
13
14# Set WXDIR for your system
15WXDIR = $(WXWIN)
16
17!include $(WXDIR)\src\makemsc.env
18
19BBARDIR = $(WXDIR)\samples\toolbar
20
21INC = /I$(WXDIR)\include\base /I$(WXDIR)\include\msw
22
23THISDIR = $(BBARDIR)
24
25!ifndef FINAL
26FINAL=0
27!endif
28
29# Default is to output RTF for WinHelp
30!ifndef WINHELP
31WINHELP=-winhelp
32!endif
33
34# Set this to nothing if using MS C++ 7
35ZOPTION=/Z7
36
37!if "$(FINAL)" == "0"
38CPPFLAGS=/AL /Gt8 /W3 /Zi $(ZOPTION) /G2sw /Od /YuWX_PREC.H $(INC) /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch
39CFLAGS=/AL /Gt8 /W3 /Zi $(ZOPTION) /G2sw /Od $(INC) /Dwx_msw
40LINKFLAGS=/NOD /CO /SEG:512 /ONERROR:NOEXE
41!else
42CPPFLAGS=/AL /Gt8 /W3 /G2sw /Os /YuWX_PREC.H $(INC) /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch
43CFLAGS=/AL /Gt8 /W3 /Zi $(ZOPTION) /G2sw /Od $(INC) /Dwx_msw
44LINKFLAGS=/NOD /SEG:512 /ONERROR:NOEXE
45!endif
46
47OBJECTS = test.obj
48
49all: test.exe
50
51wx:
52 cd $(WXDIR)\src\msw
53 nmake -f makefile.dos FINAL=$(FINAL)
54 cd $(THISDIR)
55
56wxclean:
57 cd $(WXDIR)\src\msw
58 nmake -f makefile.dos clean
59 cd $(THISDIR)
60
61test.exe: $(WXDIR)\src\msw\dummy.obj $(WXLIB) test.obj test.def test.res
62 link $(LINKFLAGS) @<<
63$(WXDIR)\src\msw\dummy.obj test.obj,
64test,
65NUL,
66$(LIBS),
67test.def
68;
69<<
70 rc -30 -K test.res
71
72test.obj: test.h test.$(SRCSUFF)
73 cl @<<
74$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
75<<
76
77test.res : test.rc $(WXDIR)\include\msw\wx.rc
78 rc -r /dFAFA_LIB /i$(WXDIR)\contrib\fafa /i$(WXDIR)\include\msw test
79
80clean:
81 -erase *.obj
82 -erase *.exe
83 -erase *.res
84 -erase *.map
85 -erase *.sbr
86 -erase *.pdb
87