]> git.saurik.com Git - wxWidgets.git/blob - utils/ogl/samples/ogledit/makefile.dos
Restored the old Dialog Editor files.
[wxWidgets.git] / utils / ogl / samples / ogledit / makefile.dos
1 #
2 # File: makefile.dos
3 # Author: Julian Smart
4 # Created: 1995
5 # Updated:
6 # Copyright: (c) 1995, AIAI, University of Edinburgh
7 #
8 # "%W% %G%"
9 #
10 # Makefile : Builds OGLEdit example (MSVC++ 1.5).
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)\utils\ogl\samples\ogledit
19 WXLIB = $(WXDIR)\lib\wx.lib
20
21 OGLDIR = $(WXDIR)\utils\ogl
22 OGLINC = $(OGLDIR)\src
23 OGLLIB = $(OGLDIR)\lib\ogl.lib
24
25 LIBS=$(WXLIB) $(OGLLIB) oldnames libw llibcew commdlg shell ddeml
26
27 EXTRAFLAGS=/I$(OGLINC)
28
29 OBJECTS = ogledit.obj doc.obj view.obj palette.obj
30
31 all: ogledit.exe
32
33 wx:
34 cd $(WXDIR)\src\msw
35 nmake -f makefile.dos
36 cd $(THISDIR)
37
38 wxclean:
39 cd $(WXDIR)\src\msw
40 nmake -f makefile.dos clean
41 cd $(THISDIR)
42
43 ogl:
44 cd $(OGLDIR)\src
45 nmake -f makefile.dos FINAL=$(FINAL)
46 cd $(THISDIR)
47
48 prologio:
49 cd $(PROLOGDIR)\src
50 nmake -f makefile.dos FINAL=$(FINAL)
51 cd $(THISDIR)
52
53 ogledit.exe: $(WXDIR)\src\msw\dummy.obj $(WXLIB) $(OBJECTS) $(OGLLIB) ogledit.def ogledit.res
54 link $(LINKFLAGS) @<<
55 $(WXDIR)\src\msw\dummy.obj $(OBJECTS),
56 ogledit,
57 NUL,
58 $(LIBS),
59 ogledit.def
60 ;
61 <<
62 rc -30 -K ogledit.res
63
64 ogledit.obj: ogledit.h ogledit.$(SRCSUFF)
65 cl @<<
66 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
67 <<
68
69 view.obj: view.h view.$(SRCSUFF)
70 cl @<<
71 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
72 <<
73
74 doc.obj: doc.h doc.$(SRCSUFF)
75 cl @<<
76 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
77 <<
78
79 palette.obj: view.h doc.h ogledit.h palette.$(SRCSUFF) $(DUMMYOBJ)
80 cl @<<
81 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
82 <<
83
84 ogledit.res : ogledit.rc $(WXDIR)\include\msw\wx.rc
85 rc -r /dFAFA_LIB /i$(WXDIR)\contrib\fafa /i$(WXDIR)\include\msw ogledit
86
87 clean:
88 -erase *.obj
89 -erase *.exe
90 -erase *.res
91 -erase *.map
92 -erase *.sbr
93 -erase *.pdb
94
95 cleanogl:
96 cd $(OGLDIR)\src
97 nmake -f makefile.dos clean
98 cd $(THISDIR)
99
100 cleanall:
101 cd $(OGLDIR)\src
102 nmake -f makefile.dos clean
103 cd $(THISDIR)