]> git.saurik.com Git - wxWidgets.git/blob - utils/ogl/samples/studio/makefile.vc
added Makefile[.in] for build using wxGTK method. Note that wxGTK's createall
[wxWidgets.git] / utils / ogl / samples / studio / makefile.vc
1 #
2 # File: makefile.vc
3 # Author: Julian Smart
4 # Created: 1999
5 # Updated:
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
15 WXDIR = $(WXWIN)
16 WXUSINGDLL=0
17
18 STUDIODIR = $(WXDIR)\utils\ogl\samples\studio
19 THISDIR = $(STUDIODIR)
20
21 OGLDIR = $(WXDIR)\utils\ogl
22 OGLINC = $(OGLDIR)\src
23 OGLLIB = $(WXDIR)\lib\ogl.lib
24
25 !include $(WXDIR)\src\makevc.env
26
27 EXTRALIBS=$(OGLLIB)
28 EXTRAINC = /I$(OGLINC)
29
30 PROGRAM=studio
31
32 OBJECTS = $(PROGRAM).obj doc.obj shapes.obj symbols.obj view.obj cspalette.obj\
33 mainfrm.obj project.obj dialogs.obj csprint.obj
34
35 all: wx ogl $(PROGRAM).exe
36
37 $(PROGRAM): $(PROGRAM).exe
38
39 cleanall: clean cleanogl # cleanidelib
40 cleanutils: cleanall
41
42 wx:
43 cd $(WXDIR)\src\msw
44 nmake -f makefile.vc FINAL=$(FINAL)
45 cd $(THISDIR)
46
47 cleanwx:
48 cd $(WXDIR)\src\msw
49 nmake -f makefile.vc clean
50 cd $(THISDIR)
51
52 idelib:
53 cd $(CLIPDIR)\IDELib\src
54 nmake -f makefile.vc FINAL=$(FINAL)
55 cd $(THISDIR)
56
57 cleanidelib:
58 cd $(CLIPDIR)\IDELib\src
59 nmake -f makefile.vc clean
60 cd $(THISDIR)
61
62 ogl:
63 cd $(OGLDIR)\src
64 nmake -f makefile.vc FINAL=$(FINAL)
65 cd $(THISDIR)
66
67 cleanogl:
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
86 mainfrm.obj: mainfrm.$(SRCSUFF) mainfrm.h
87 $(cc) @<<
88 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
89 <<
90
91 cspalette.obj: cspalette.$(SRCSUFF) cspalette.h
92 $(cc) @<<
93 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
94 <<
95
96 project.obj: project.$(SRCSUFF) project.h
97 $(cc) @<<
98 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
99 <<
100
101 view.obj: view.$(SRCSUFF) view.h
102 $(cc) @<<
103 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
104 <<
105
106 doc.obj: doc.$(SRCSUFF) doc.h
107 $(cc) @<<
108 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
109 <<
110
111 shapes.obj: shapes.$(SRCSUFF) shapes.h
112 $(cc) @<<
113 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
114 <<
115
116 symbols.obj: symbols.$(SRCSUFF) symbols.h
117 $(cc) @<<
118 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
119 <<
120
121 dialogs.obj: dialogs.$(SRCSUFF) dialogs.h
122 $(cc) @<<
123 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
124 <<
125
126 csprint.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
137 clean:
138 -erase *.obj
139 -erase *.exe
140 -erase *.res
141 -erase *.map
142 -erase *.sbr
143 -erase *.pdb