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