]> git.saurik.com Git - wxWidgets.git/blame - utils/ogl/samples/studio/makefile.vc
Some OGl updates:
[wxWidgets.git] / utils / ogl / samples / studio / makefile.vc
CommitLineData
306dfc2b
JS
1#
2# File: makefile.vc
3# Author: Julian Smart
4# Created: 1999
a097c93d 5# Updated:
306dfc2b
JS
6# Copyright: (c) Julian Smart
7#
8# "%W% %G%"
9#
10# Makefile : Builds OGL studio example (MS VC++).
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)
16WXUSINGDLL=0
17
18STUDIODIR = $(WXDIR)\utils\ogl\samples\studio
19THISDIR = $(STUDIODIR)
20
21OGLDIR = $(WXDIR)\utils\ogl
22OGLINC = $(OGLDIR)\src
a097c93d 23OGLLIB = $(WXDIR)\lib\ogl$(LIBEXT).lib
306dfc2b
JS
24
25!include $(WXDIR)\src\makevc.env
26
27EXTRALIBS=$(OGLLIB)
28EXTRAINC = /I$(OGLINC)
29
30PROGRAM=studio
31
32OBJECTS = $(PROGRAM).obj doc.obj shapes.obj symbols.obj view.obj cspalette.obj\
33 mainfrm.obj project.obj dialogs.obj csprint.obj
34
a097c93d 35all: ogl $(PROGRAM).exe
306dfc2b
JS
36
37$(PROGRAM): $(PROGRAM).exe
38
39cleanall: clean cleanogl # cleanidelib
40cleanutils: cleanall
41
42wx:
43 cd $(WXDIR)\src\msw
44 nmake -f makefile.vc FINAL=$(FINAL)
45 cd $(THISDIR)
46
47cleanwx:
48 cd $(WXDIR)\src\msw
49 nmake -f makefile.vc clean
50 cd $(THISDIR)
51
52idelib:
53 cd $(CLIPDIR)\IDELib\src
54 nmake -f makefile.vc FINAL=$(FINAL)
55 cd $(THISDIR)
56
57cleanidelib:
58 cd $(CLIPDIR)\IDELib\src
59 nmake -f makefile.vc clean
60 cd $(THISDIR)
61
62ogl:
63 cd $(OGLDIR)\src
64 nmake -f makefile.vc FINAL=$(FINAL)
65 cd $(THISDIR)
66
67cleanogl:
68 cd $(OGLDIR)\src
69 nmake -f makefile.vc clean
70 cd $(THISDIR)
71
72$(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(EXTRALIBS) $(PROGRAM).res
73 $(link) @<<
74-out:$(PROGRAM).exe
75$(LINKFLAGS)
76$(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
77$(LIBS)
78<<
79
80
81$(PROGRAM).obj: $(PROGRAM).$(SRCSUFF) cspalette.h doc.h view.h $(DUMMYOBJ)
82 $(cc) @<<
83$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
84<<
85
86mainfrm.obj: mainfrm.$(SRCSUFF) mainfrm.h
87 $(cc) @<<
88$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
89<<
90
91cspalette.obj: cspalette.$(SRCSUFF) cspalette.h
92 $(cc) @<<
93$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
94<<
95
96project.obj: project.$(SRCSUFF) project.h
97 $(cc) @<<
98$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
99<<
100
101view.obj: view.$(SRCSUFF) view.h
102 $(cc) @<<
103$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
104<<
105
106doc.obj: doc.$(SRCSUFF) doc.h
107 $(cc) @<<
108$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
109<<
110
111shapes.obj: shapes.$(SRCSUFF) shapes.h
112 $(cc) @<<
113$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
114<<
115
116symbols.obj: symbols.$(SRCSUFF) symbols.h
117 $(cc) @<<
118$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
119<<
120
121dialogs.obj: dialogs.$(SRCSUFF) dialogs.h
122 $(cc) @<<
123$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
124<<
125
126csprint.obj: csprint.$(SRCSUFF) shapes.h
127 $(cc) @<<
128$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
129<<
130
131$(OBJECTS): shapes.h doc.h view.h mainfrm.h studio.h cspalette.h project.h symbols.h dialogs.h
132
133$(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
134 $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc
135
136
137clean:
138 -erase *.obj
139 -erase *.exe
140 -erase *.res
141 -erase *.map
142 -erase *.sbr
143 -erase *.pdb