]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/opengl/isosurf/makefile.unx
Replaced /'s with \'s as BCC requires \'s for path names
[wxWidgets.git] / samples / opengl / isosurf / makefile.unx
index 2c0a36480812c29bd807936e6a6330aab3fdca3a..86c4c5a6a4643040dc2baabfd2bf28749ac5c472 100644 (file)
@@ -9,18 +9,30 @@
 #
 # Makefile for isosurf example (UNIX).
 
+OPENGL_LIBS=-lGL -lGLU
+#if you have old Mesa, try this:
+#OPENGL_LIBS=-lMesaGL -lMesaGLU
+
 PROGRAM=isosurf
 
-OPENGLHOME=/home/jacs/mesa/Mesa-2.3
+CC = gcc
+
+OBJECTS = $(PROGRAM).o
+
+# implementation
+
+.SUFFIXES:     .o .cpp
+
+.cpp.o :
+       $(CC) -c `wx-config --cflags` -o $@ $<
 
-EXTRACPPFLAGS=-I$(OPENGLHOME)/include
-EXTRALDFLAGS=-L$(OPENGLHOME)/lib
-EXTRALDLIBS=-lMesaGL -lMesaGLU
+all: $(PROGRAM) isosurf.dat
 
-OBJECTS=$(PROGRAM).o
-EXTRATARGETS=isosurf.dat
+$(PROGRAM):    $(OBJECTS)
+       $(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` -lwx_gtk_gl $(OPENGL_LIBS)
 
-include ../../../src/makeprog.env
+clean: 
+       rm -f *.o $(PROGRAM)
 
 isosurf.dat:   isosurf.dat.gz
        gzip -c -d isosurf.dat.gz > isosurf.dat