]> git.saurik.com Git - wxWidgets.git/blame - samples/printing/makefile.dos
CodeWarrior Support (no defines in project possible)
[wxWidgets.git] / samples / printing / makefile.dos
CommitLineData
99025f6e
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 printing 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\printing
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
32DEBUGFLAG=#/DDEBUG=1
33
34!if "$(FINAL)" == "0"
35CPPFLAGS=/AL /W3 /Zi $(ZOPTION) /G2sw /Od $(INC) $(DEBUGFLAG) /YuWX_PREC.H /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch
36LINKFLAGS=/NOD /NOE /CO /ONERROR:NOEXE /SEG:256
37!else
38CPPFLAGS=/AL /W3 /G2sw $(INC) /Ox /YuWX_PREC.H /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch
39LINKFLAGS=/NOD /ONERROR:NOEXE /SEG:256
40!endif
41
42HEADERS = printing.h
43SOURCES = printing.$(SRCSUFF)
44OBJECTS = printing.obj
45
46printing: printing.exe
47
48all: wx printing.exe
49
50wx:
51 cd $(WXDIR)\src\msw
52 nmake -f makefile.dos FINAL=$(FINAL)
53 cd $(THISDIR)
54
55wxclean:
56 cd $(WXDIR)\src\msw
57 nmake -f makefile.dos clean
58 cd $(THISDIR)
59
60
61printing.exe: $(DUMMY) $(WXLIB) printing.obj printing.def printing.res
62 link $(LINKFLAGS) @<<
63$(DUMMY) printing.obj,
64printing,
65NUL,
66$(LIBS),
67printing.def
68;
69<<
70 rc -31 -K printing.res
71
72printing.obj: printing.h printing.$(SRCSUFF) $(DUMMY) $(WXDIR)\include\base\wx_print.h
73 cl @<<
74$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
75<<
76
77printing.res : printing.rc $(WXDIR)\include\msw\wx.rc
78 rc -r /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa printing
79
80clean:
81 -erase *.obj
82 -erase *.exe
83 -erase *.res
84 -erase *.map
85 -erase *.sbr
86 -erase *.pdb
87
88