6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile : Builds printing example (DOS).
11 # Use FINAL=1 argument to nmake to build final version with no debugging
14 # Set WXDIR for your system
17 !include $(WXDIR)\src\makemsc.env
19 THISDIR = $(WXDIR)\samples\printing
20 WXLIB = $(WXDIR)\lib\wx.lib
21 LIBS=$(WXLIB) oldnames libw llibcew commdlg ddeml shell mmsystem
22 INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw
23 DUMMY=$(WXDIR)\src\msw\dummy.obj
25 # Set this to nothing if using MS C++ 7
35 CPPFLAGS=/AL /W3 /Zi $(ZOPTION) /G2sw /Od $(INC) $(DEBUGFLAG) /YuWX_PREC.H /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch
36 LINKFLAGS=/NOD /NOE /CO /ONERROR:NOEXE /SEG:256
38 CPPFLAGS=/AL /W3 /G2sw $(INC) /Ox /YuWX_PREC.H /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch
39 LINKFLAGS=/NOD /ONERROR:NOEXE /SEG:256
43 SOURCES = printing.$(SRCSUFF)
44 OBJECTS = printing.obj
46 printing: printing.exe
52 nmake -f makefile.dos FINAL=$(FINAL)
57 nmake -f makefile.dos clean
61 printing.exe: $(DUMMY) $(WXLIB) printing.obj printing.def printing.res
63 $(DUMMY) printing.obj,
70 rc -31 -K printing.res
72 printing.obj: printing.h printing.$(SRCSUFF) $(DUMMY) $(WXDIR)\include\base\wx_print.h
74 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
77 printing.res : printing.rc $(WXDIR)\include\msw\wx.rc
78 rc -r /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa printing