]>
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 | CPP = gcc |
c8c5323c | 16 | CC = gcc |
dc1efb1d JS |
17 | WXCONFIG=../../../../wx-config |
18 | WXINCLUDE=-I../../../../include | |
19 | WXLIB=-L../../../../lib | |
c8c5323c RR |
20 | |
21 | Penguin: penguin.o trackball.o lw.o glcanvas.o | |
dc1efb1d | 22 | $(CPP) -o Penguin penguin.o trackball.o lw.o glcanvas.o `$(WXCONFIG) --libs` $(WXLIB) -lMesaGL -lMesaGLU |
c8c5323c RR |
23 | |
24 | penguin.o: penguin.cpp | |
dc1efb1d | 25 | $(CPP) `$(WXCONFIG) --cflags` -I../../gtk $(WXINCLUDE) -c penguin.cpp |
c8c5323c RR |
26 | |
27 | lw.o: lw.cpp | |
dc1efb1d | 28 | $(CPP) `$(WXCONFIG) --cflags` -I../../gtk $(WXINCLUDE) -c lw.cpp |
c8c5323c RR |
29 | |
30 | trackball.o: trackball.c | |
dc1efb1d | 31 | $(CC) `$(WXCONFIG) --cflags` -I../../gtk $(WXINCLUDE) -c trackball.c |
c8c5323c RR |
32 | |
33 | glcanvas.o: ../../gtk/glcanvas.cpp | |
dc1efb1d | 34 | $(CPP) `$(WXCONFIG) --cflags` `gtk-config --cflags` -g -I../../gtk $(WXINCLUDE) -c ../../gtk/glcanvas.cpp |
c8c5323c RR |
35 | |
36 | clean: | |
37 | rm -f *.o Penguin |