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 isosurf 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=isosurf
|
|
|
|
|
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
|
|
|
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
|
|
|
|
|
|
|
|
.cpp.o :
|
2001-11-28 13:10:15 -05:00
|
|
|
$(CXX) -c `wx-config --cxxflags` -o $@ $<
|
2000-03-05 12:49:58 -05:00
|
|
|
|
|
|
|
all: $(PROGRAM) isosurf.dat
|
|
|
|
|
|
|
|
$(PROGRAM): $(OBJECTS)
|
2001-11-28 13:10:15 -05:00
|
|
|
$(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` -lwx_gtk_gl $(OPENGL_LIBS)
|
2000-03-05 12:49:58 -05:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o $(PROGRAM)
|
2000-02-28 03:22:57 -05:00
|
|
|
|
|
|
|
isosurf.dat: isosurf.dat.gz
|
|
|
|
gzip -c -d isosurf.dat.gz > isosurf.dat
|
|
|
|
|