]>
Commit | Line | Data |
---|---|---|
c8c5323c RR |
1 | # |
2 | # File: Makefile | |
3 | # Author: Robert Roebling | |
4 | # Created: 1999 | |
5 | # Updated: | |
6 | # Copyright: (c) 1998 Robert Roebling | |
7 | # | |
8 | # Makefile for OpenGl demo (GTK version) | |
9 | # | |
10 | # This makefile requires wxWindows/GTK to be | |
11 | # installed (possibly using "make install") | |
12 | # on your system. | |
13 | # | |
14 | ||
7941ba11 | 15 | CC = gcc |
dc1efb1d JS |
16 | WXCONFIG=../../../../wx-config |
17 | WXINCLUDE=-I../../../../include | |
18 | WXLIB=-L../../../../lib | |
c8c5323c RR |
19 | |
20 | cube: cube.o glcanvas.o | |
dc1efb1d | 21 | $(CC) -o cube cube.o glcanvas.o `$(WXCONFIG) --libs` $(WXLIB) -lMesaGL -lMesaGLU |
c8c5323c RR |
22 | |
23 | cube.o: cube.cpp | |
dc1efb1d | 24 | $(CC) `$(WXCONFIG) --cflags` -I../../gtk $(WXINCLUDE) -c cube.cpp |
c8c5323c RR |
25 | |
26 | glcanvas.o: ../../gtk/glcanvas.cpp | |
dc1efb1d | 27 | $(CC) `$(WXCONFIG) --cflags` `gtk-config --cflags` -I../../gtk $(WXINCLUDE) -c ../../gtk/glcanvas.cpp |
c8c5323c RR |
28 | |
29 | clean: | |
30 | rm -f *.o cube | |
dc1efb1d | 31 |