]>
Commit | Line | Data |
---|---|---|
1fc25a89 | 1 | # |
f6bcfd97 | 2 | # File: Makefile |
1fc25a89 | 3 | # Author: Julian Smart |
f6bcfd97 | 4 | # Created: 1999 |
1fc25a89 | 5 | # Updated: |
f6bcfd97 | 6 | # Copyright: (c) 2000 Julian Smart |
1fc25a89 | 7 | # |
f6bcfd97 | 8 | # Makefile for OGL demo (GTK version) |
1fc25a89 | 9 | # |
f6bcfd97 BP |
10 | # This makefile requires wxWindows/GTK to be |
11 | # installed (possibly using "make install") | |
12 | # on your system. | |
13 | # | |
14 | ||
a6f762a6 | 15 | CXX = $(shell wx-config --cxx) |
f6bcfd97 BP |
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) | |
a6f762a6 | 23 | $(CXX) -o ogledit $(OBJECTS) `$(WXCONFIG) --libs` $(WXLIB) -logl |
1fc25a89 | 24 | |
f6bcfd97 | 25 | ogledit.o: ogledit.cpp |
a6f762a6 | 26 | $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c ogledit.cpp |
1fc25a89 | 27 | |
f6bcfd97 | 28 | palette.o: palette.cpp |
a6f762a6 | 29 | $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c palette.cpp |
1fc25a89 | 30 | |
f6bcfd97 | 31 | doc.o: doc.cpp |
a6f762a6 | 32 | $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c doc.cpp |
1fc25a89 | 33 | |
f6bcfd97 | 34 | view.o: view.cpp |
a6f762a6 | 35 | $(CXX) `$(WXCONFIG) --cxxflags` -I../../src $(WXINCLUDE) -c view.cpp |
1fc25a89 | 36 | |
f6bcfd97 BP |
37 | clean: |
38 | rm -f *.o ogledit |