]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/opengl/cube/makefile.unx
Forgot to add this one
[wxWidgets.git] / samples / opengl / cube / makefile.unx
index ecf313ff333a5ddc699b6105c37e3632bb809597..afa6121f6f2dbd46fd04c0b6f1682b95d01e311a 100644 (file)
 
 PROGRAM=cube
 
-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
+# implementation
 
-include ../../../src/makeprog.env
+.SUFFIXES:     .o .cpp
 
+.cpp.o :
+       $(CC) -c `wx-config --cflags` -o $@ $<
+
+all:    $(PROGRAM)
+
+$(PROGRAM):    $(OBJECTS)
+       $(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` -lwx_gtk_gl -lMesaGL -lMesaGLU
+
+clean: 
+       rm -f *.o $(PROGRAM)