]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/opengl/isosurf/makefile.unx
Various makefile and installation things.
[wxWidgets.git] / samples / opengl / isosurf / makefile.unx
index 2c0a36480812c29bd807936e6a6330aab3fdca3a..fbb993eb4c4d3f930d67e9239c7c6fa7ade8fd6c 100644 (file)
 
 PROGRAM=isosurf
 
-OPENGLHOME=/home/jacs/mesa/Mesa-2.3
+CC = gcc
 
-EXTRACPPFLAGS=-I$(OPENGLHOME)/include
-EXTRALDFLAGS=-L$(OPENGLHOME)/lib
-EXTRALDLIBS=-lMesaGL -lMesaGLU
+OBJECTS = $(PROGRAM).o
 
-OBJECTS=$(PROGRAM).o
-EXTRATARGETS=isosurf.dat
+# implementation
 
-include ../../../src/makeprog.env
+.SUFFIXES:     .o .cpp
+
+.cpp.o :
+       $(CC) -c `wx-config --cflags` -o $@ $<
+
+all: $(PROGRAM) isosurf.dat
+
+$(PROGRAM):    $(OBJECTS)
+       $(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` -lwx_gtk_gl -lMesaGL -lMesaGLU
+
+clean: 
+       rm -f *.o $(PROGRAM)
 
 isosurf.dat:   isosurf.dat.gz
        gzip -c -d isosurf.dat.gz > isosurf.dat