2000-02-28 03:22:57 -05:00
|
|
|
#
|
|
|
|
# File: makefile.unx
|
|
|
|
# Author: Julian Smart
|
|
|
|
# Created: 1998
|
|
|
|
# Updated:
|
|
|
|
# Copyright: (c) 1998 Julian Smart
|
|
|
|
#
|
|
|
|
# Makefile for penguin example (UNIX).
|
|
|
|
|
2001-04-29 13:57:22 -04:00
|
|
|
OPENGL_LIBS=-lGL -lGLU
|
|
|
|
#if you have old Mesa, try this:
|
|
|
|
#OPENGL_LIBS=-lMesaGL -lMesaGLU
|
|
|
|
|
2000-03-05 12:49:58 -05:00
|
|
|
CPP = g++
|
|
|
|
CC = gcc
|
2000-02-28 03:22:57 -05:00
|
|
|
|
2000-03-05 12:49:58 -05:00
|
|
|
Penguin: penguin.o trackball.o lw.o
|
|
|
|
$(CPP) -o Penguin \
|
|
|
|
penguin.o trackball.o lw.o \
|
2001-04-29 13:57:22 -04:00
|
|
|
`wx-config --libs` -lwx_gtk_gl $(OPENGL_LIBS)
|
2000-02-28 03:22:57 -05:00
|
|
|
|
2000-03-05 12:49:58 -05:00
|
|
|
penguin.o: penguin.cpp
|
|
|
|
$(CPP) `wx-config --cflags` -I../../gtk -c penguin.cpp
|
2000-02-28 03:22:57 -05:00
|
|
|
|
2000-03-05 12:49:58 -05:00
|
|
|
lw.o: lw.cpp
|
|
|
|
$(CPP) `wx-config --cflags` -I../../gtk -c lw.cpp
|
2000-02-28 03:22:57 -05:00
|
|
|
|
2000-03-05 12:49:58 -05:00
|
|
|
trackball.o: trackball.c
|
|
|
|
$(CC) `wx-config --cflags` -I../../gtk -c trackball.c
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o Penguin
|
2000-02-28 03:22:57 -05:00
|
|
|
|