6 # Copyright: (c) Julian Smart
10 # Makefile : Builds OGL studio example (MS VC++).
11 # Use FINAL=1 argument to nmake to build final version with no debugging
14 # Set WXDIR for your system
18 STUDIODIR = $(WXDIR)\utils\ogl\samples\studio
19 THISDIR = $(STUDIODIR)
21 OGLDIR = $(WXDIR)\utils\ogl
22 OGLINC = $(OGLDIR)\src
23 OGLLIB = $(WXDIR)\lib\ogl$(LIBEXT).lib
25 !include $(WXDIR)\src\makevc.env
28 EXTRAINC = /I$(OGLINC)
32 OBJECTS = $(PROGRAM).obj doc.obj shapes.obj symbols.obj view.obj cspalette.obj\
33 mainfrm.obj project.obj dialogs.obj csprint.obj
35 all: ogl $(PROGRAM).exe
37 $(PROGRAM): $(PROGRAM).exe
39 cleanall: clean cleanogl # cleanidelib
44 nmake -f makefile.vc FINAL=$(FINAL)
49 nmake -f makefile.vc clean
53 cd $(CLIPDIR)\IDELib\src
54 nmake -f makefile.vc FINAL=$(FINAL)
58 cd $(CLIPDIR)\IDELib\src
59 nmake -f makefile.vc clean
64 nmake -f makefile.vc FINAL=$(FINAL)
69 nmake -f makefile.vc clean
72 $(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(EXTRALIBS) $(PROGRAM).res
76 $(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
81 $(PROGRAM).obj: $(PROGRAM).$(SRCSUFF) cspalette.h doc.h view.h $(DUMMYOBJ)
83 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
86 mainfrm.obj: mainfrm.$(SRCSUFF) mainfrm.h
88 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
91 cspalette.obj: cspalette.$(SRCSUFF) cspalette.h
93 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
96 project.obj: project.$(SRCSUFF) project.h
98 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
101 view.obj: view.$(SRCSUFF) view.h
103 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
106 doc.obj: doc.$(SRCSUFF) doc.h
108 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
111 shapes.obj: shapes.$(SRCSUFF) shapes.h
113 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
116 symbols.obj: symbols.$(SRCSUFF) symbols.h
118 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
121 dialogs.obj: dialogs.$(SRCSUFF) dialogs.h
123 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
126 csprint.obj: csprint.$(SRCSUFF) shapes.h
128 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
131 $(OBJECTS): shapes.h doc.h view.h mainfrm.h studio.h cspalette.h project.h symbols.h dialogs.h
133 $(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
134 $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc