]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/glcanvas/samples/cube/Makefile
Some Motif fixes; makefile fixes; added wxTransferStreamToFile/FileToStream for wxWin
[wxWidgets.git] / utils / glcanvas / samples / cube / Makefile
index 2b48e8478a8587d97f810faddb4af9717cf49f91..f1e4059dadf9acddee178437a8dde0d894857f9a 100644 (file)
 #
 
 CC = gcc
+WXCONFIG=../../../../wx-config
+WXINCLUDE=-I../../../../include
+WXLIB=-L../../../../lib
 
 cube: cube.o glcanvas.o
-       $(CC) -o cube cube.o glcanvas.o `wx-config --libs` -lMesaGL -lMesaGLU
+       $(CC) -o cube cube.o glcanvas.o `$(WXCONFIG) --libs` $(WXLIB) -lMesaGL -lMesaGLU
 
 cube.o: cube.cpp
-       $(CC) `wx-config --cflags` -I../../gtk -c cube.cpp
+       $(CC) `$(WXCONFIG) --cflags` -I../../gtk $(WXINCLUDE) -c cube.cpp
 
 glcanvas.o: ../../gtk/glcanvas.cpp
-       $(CC) `wx-config --cflags` `gtk-config --cflags` -I../../gtk -c ../../gtk/glcanvas.cpp
+       $(CC) `$(WXCONFIG) --cflags` `gtk-config --cflags` -I../../gtk $(WXINCLUDE) -c ../../gtk/glcanvas.cpp
 
 clean: 
        rm -f *.o cube
+