2000-02-28 03:22:57 -05:00
|
|
|
#
|
|
|
|
# File: makefile.unx
|
|
|
|
# Author: Julian Smart
|
|
|
|
# Created: 1998
|
|
|
|
# Updated:
|
|
|
|
# Copyright: (c) 1998 Julian Smart
|
|
|
|
#
|
|
|
|
# "%W% %G%"
|
|
|
|
#
|
|
|
|
# Makefile for cube 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-02-28 03:22:57 -05:00
|
|
|
PROGRAM=cube
|
|
|
|
|
2000-03-05 12:49:58 -05:00
|
|
|
CC = gcc
|
2000-02-28 03:22:57 -05:00
|
|
|
|
2000-03-05 12:49:58 -05:00
|
|
|
OBJECTS = $(PROGRAM).o
|
2000-02-28 03:22:57 -05:00
|
|
|
|
2000-03-05 12:49:58 -05:00
|
|
|
# implementation
|
2000-02-28 03:22:57 -05:00
|
|
|
|
2000-03-05 12:49:58 -05:00
|
|
|
.SUFFIXES: .o .cpp
|
2000-02-28 03:22:57 -05:00
|
|
|
|
2000-03-05 12:49:58 -05:00
|
|
|
.cpp.o :
|
2001-11-28 07:30:26 -05:00
|
|
|
$(CC) -c `wx-config --cxxflags` -o $@ $<
|
2000-03-05 12:49:58 -05:00
|
|
|
|
|
|
|
all: $(PROGRAM)
|
|
|
|
|
|
|
|
$(PROGRAM): $(OBJECTS)
|
2001-04-29 13:57:22 -04:00
|
|
|
$(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` -lwx_gtk_gl $(OPENGL_LIBS)
|
2000-03-05 12:49:58 -05:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o $(PROGRAM)
|