]> git.saurik.com Git - wxWidgets.git/blame - samples/dialogs/makefile.dos
ExpandEnvVars was eating backslashes - no more.
[wxWidgets.git] / samples / dialogs / makefile.dos
CommitLineData
457814b5
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 dialogs example (DOS).
11# Use FINAL=1 argument to nmake to build final version with no debugging
12# info
13
14WXDIR = $(WXWIN)
15
16!include $(WXDIR)\src\makemsc.env
17
18THISDIR = $(WXDIR)\samples\dialogs
19WXLIB = $(WXDIR)\lib\wx.lib
20LIBS=$(WXLIB) oldnames libw llibcew commdlg shell ddeml
21
22!ifndef FINAL
23FINAL=0
24!endif
25
26INC=/I$(WXDIR)\include\msw /I$(WXDIR)\include\base
27
28# Set this to nothing if using MS C++ 7
29ZOPTION=/Z7
30
31!if "$(FINAL)" == "0"
32CPPFLAGS=/AL /W3 /Zi $(ZOPTION) /G2sw /Od /YuWX_PREC.H /DDEBUG=$(DEBUG) /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch $(INC)
33LINKFLAGS=/NOD /CO /ONERROR:NOEXE /SEG:512
34!else
35CPPFLAGS=/AL /W3 /G2sw /Ox /YuWX_PREC.H /Dwx_msw /DDEBUG=$(DEBUG) /Fp$(WXDIR)\src\msw\wx.pch $(INC)
36LINKFLAGS=/NOD /ONERROR:NOEXE /SEG:512
37!endif
38
39HEADERS =
40SOURCES = dialogs.$(SRCSUFF)
41OBJECTS = dialogs.obj
42
43all: dialogs.exe
44
45wx:
46 cd $(WXDIR)\src\msw
47 nmake -f makefile.dos FINAL=$(FINAL)
48 cd $(THISDIR)
49
50wxclean:
51 cd $(WXDIR)\src\msw
52 nmake -f makefile.dos clean
53 cd $(THISDIR)
54
55
56dialogs.exe: $(WXDIR)\src\msw\dummy.obj $(WXLIB) $(OBJECTS) dialogs.def dialogs.res
57 link $(LINKFLAGS) @<<
58$(OBJECTS) $(WXDIR)\src\msw\dummy.obj,
59dialogs,
60NUL,
61$(LIBS),
62dialogs.def
63;
64<<
65 rc -30 -K dialogs.res
66
67dialogs.obj: dialogs.$(SRCSUFF)
68 cl @<<
69$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
70<<
71
72dialogs.res : dialogs.rc $(WXDIR)\include\msw\wx.rc
73 rc -r /dFAFA_LIB /i$(WXDIR)\contrib\fafa /i$(WXDIR)\include\msw dialogs
74
75clean:
76 -erase *.obj
77 -erase *.exe
78 -erase *.res
79 -erase *.map
80 -erase *.sbr
81 -erase *.pdb