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