]> git.saurik.com Git - wxWidgets.git/blame - samples/layout/makefile.dos
added option to hide page controls
[wxWidgets.git] / samples / layout / makefile.dos
CommitLineData
c801d85f
KB
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 layout example (DOS).
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
19THISDIR = $(WXDIR)\samples\layout
20WXLIB = $(WXDIR)\lib\wx.lib
21LIBS=$(WXLIB) oldnames libw llibcew commdlg ddeml shell mmsystem
22INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw
23DUMMY=$(WXDIR)\src\msw\dummy.obj
24
25# Set this to nothing if using MS C++ 7
26ZOPTION=/Z7
27
28!ifndef FINAL
29FINAL=0
30!endif
31
32!if "$(FINAL)" == "0"
33CPPFLAGS=/AL /W3 /Zi $(ZOPTION) /G2sw /Od $(INC) /YuWX_PREC.H /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch
34LINKFLAGS=/NOD /CO /ONERROR:NOEXE /SEG:512
35!else
36CPPFLAGS=/AL /W3 /G2sw $(INC) /Ox /YuWX_PREC.H /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch
37LINKFLAGS=/NOD /ONERROR:NOEXE /SEG:512
38!endif
39
40HEADERS = layout.h
41SOURCES = layout.$(SRCSUFF)
42OBJECTS = layout.obj
43
44layout: layout.exe
45
46all: wx layout.exe
47
48wx:
49 cd $(WXDIR)\src\msw
50 nmake -f makefile.dos FINAL=$(FINAL)
51 cd $(THISDIR)
52
53wxclean:
54 cd $(WXDIR)\src\msw
55 nmake -f makefile.dos clean
56 cd $(THISDIR)
57
58
59layout.exe: $(DUMMY) $(WXLIB) layout.obj layout.def layout.res
60 link $(LINKFLAGS) @<<
61$(DUMMY) layout.obj,
62layout,
63NUL,
64$(LIBS),
65layout.def
66;
67<<
68 rc -31 -K layout.res
69
70layout.obj: layout.h layout.$(SRCSUFF) $(DUMMY)
71 cl @<<
72$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
73<<
74
75layout.res : layout.rc $(WXDIR)\include\msw\wx.rc
76 rc -r /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa layout
77
78clean:
79 -erase *.obj
80 -erase *.exe
81 -erase *.res
82 -erase *.map
83 -erase *.sbr
84 -erase *.pdb
85