6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile : Builds docview example (MS VC++).
11 # Use FINAL=1 argument to nmake to build final version with no debugging
14 # Set WXDIR for your system
17 !include $(WXDIR)\src\makevc.env
19 THISDIR = $(WXDIR)\utils\ogl\samples\ogledit
21 OGLDIR = $(WXDIR)\utils\ogl
22 OGLINC = $(OGLDIR)\src
23 OGLLIB = $(WXDIR)\lib\ogl$(LIBEXT).lib
30 OBJECTS = $(PROGRAM).obj doc.obj view.obj palette.obj
32 $(PROGRAM): $(PROGRAM).exe
38 nmake -f makefile.vc FINAL=$(FINAL)
43 nmake -f makefile.vc clean
48 nmake -f makefile.vc FINAL=$(FINAL)
51 $(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(OGLLIB) $(PROGRAM).res
55 $(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
59 $(PROGRAM).obj: $(PROGRAM).h doc.h view.h palette.h $(PROGRAM).$(SRCSUFF) $(DUMMYOBJ)
61 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
64 doc.obj: view.h doc.h doc.$(SRCSUFF) ogledit.h $(DUMMYOBJ)
66 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
69 view.obj: view.h doc.h view.$(SRCSUFF) ogledit.h $(DUMMYOBJ)
71 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
74 palette.obj: view.h doc.h ogledit.h palette.$(SRCSUFF) $(DUMMYOBJ)
76 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
79 $(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc ogl.ico
80 $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc
85 nmake -f makefile.vc clean