6 # Copyright: (c) 2000 Julian Smart
8 # Makefile for OGL demo (GTK version)
10 # This makefile requires wxWindows/GTK to be
11 # installed (possibly using "make install")
15 CXX = $(shell wx-config --cxx)
16 WXCONFIG=../../../../wx-config
17 WXINCLUDE=-I../../../../include -I../../../include
18 WXLIB=-L../../../../lib -L../../../src/ogl
20 OBJECTS=ogledit.o palette.o doc.o view.o
23 $(CXX) -o ogledit $(OBJECTS) `$(WXCONFIG) --libs` $(WXLIB) -logl
25 ogledit.o: ogledit.cpp
26 $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c ogledit.cpp
28 palette.o: palette.cpp
29 $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c palette.cpp
32 $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c doc.cpp
35 $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c view.cpp