Added TOP to point to top of tree to find includes and libs
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 6 Aug 2003 18:04:32 +0000 (18:04 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 6 Aug 2003 18:04:32 +0000 (18:04 +0000)
progs/miniglx/Makefile

index 48923eb..5a78139 100644 (file)
@@ -3,10 +3,11 @@
 # These programs aren't intended to be included with the normal
 # distro.  They're not too interesting but they're good for testing.
 
+TOP = ../..
 
 CC = gcc
-CFLAGS = -g -I../include
-LIBS = -L../lib -lGL -lGLU -lglut -lm -Wl,-rpath,../lib
+CFLAGS = -g -I$(TOP)/include
+LIBS = -L$(TOP)/lib -lGL -lGLU -lglut -lm -Wl,-rpath,$(TOP)/lib
 
 PROGS = miniglxtest miniglxsample sample_server sample_server2 manytex texline