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
|
|
|
|
|
2002-12-04 09:11:26 -05:00
|
|
|
CC = $(shell wx-config --cc)
|
2001-11-28 13:10:15 -05:00
|
|
|
CXX = $(shell wx-config --cxx)
|
2000-02-28 03:22:57 -05:00
|
|
|
|
2000-03-05 12:49:58 -05:00
|
|
|
Penguin: penguin.o trackball.o lw.o
|
2002-12-04 09:11:26 -05:00
|
|
|
$(CXX) -o Penguin \
|
2000-03-05 12:49:58 -05:00
|
|
|
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
|
2002-12-04 09:11:26 -05:00
|
|
|
$(CXX) `wx-config --cxxflags` -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
|
2002-12-04 09:11:26 -05:00
|
|
|
$(CXX) `wx-config --cxxflags` -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
|
2002-12-04 09:11:26 -05:00
|
|
|
$(CC) `wx-config --cflags` -I../../gtk -c trackball.c
|
2000-03-05 12:49:58 -05:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o Penguin
|
2000-02-28 03:22:57 -05:00
|
|
|
|