]> git.saurik.com Git - wxWidgets.git/blob - contrib/samples/ogl/ogledit/makefile.unx
replaced "CC = gcc" and even stranger "CPP = gcc -g" (huh?) with
[wxWidgets.git] / contrib / samples / ogl / ogledit / makefile.unx
1 #
2 # File: Makefile
3 # Author: Julian Smart
4 # Created: 1999
5 # Updated:
6 # Copyright: (c) 2000 Julian Smart
7 #
8 # Makefile for OGL demo (GTK version)
9 #
10 # This makefile requires wxWindows/GTK to be
11 # installed (possibly using "make install")
12 # on your system.
13 #
14
15 CXX = $(shell wx-config --cxx)
16 WXCONFIG=../../../../wx-config
17 WXINCLUDE=-I../../../../include -I../../../include
18 WXLIB=-L../../../../lib -L../../../src/ogl
19
20 OBJECTS=ogledit.o palette.o doc.o view.o
21
22 ogledit: $(OBJECTS)
23 $(CXX) -o ogledit $(OBJECTS) `$(WXCONFIG) --libs` $(WXLIB) -logl
24
25 ogledit.o: ogledit.cpp
26 $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c ogledit.cpp
27
28 palette.o: palette.cpp
29 $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c palette.cpp
30
31 doc.o: doc.cpp
32 $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c doc.cpp
33
34 view.o: view.cpp
35 $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c view.cpp
36
37 clean:
38 rm -f *.o ogledit