--- Makefile.orig 2002-04-05 05:56:05.000000000 +0200 +++ Makefile 2013-11-05 16:39:16.000000000 +0100 @@ -6,7 +6,7 @@ PREFIX = /usr/local/ # What compiler should be used -CC = gcc +CC?= gcc # Where to find the gtk-config script GTK_DIR = @@ -20,9 +20,9 @@ GTK_DIR = # add -DUSE_GNOME if you want to make grpn GNOME compliant. -CFLAGS = -g -O2 -I/usr/X11/include `$(GTK_DIR)gtk-config --cflags` -DGTK_VER_1_1 +CFLAGS+= -I${LOCALBASE}/include -I${PREFIX}/include `${GTK_CONFIG} --cflags` -DGTK_VER_1_1 -DFLAGS = -L/usr/X11/lib +DFLAGS = -L${LOCALBASE}/lib -L${PREFIX}/lib # end of user configurable section @@ -37,7 +37,7 @@ OBJS = test_gtk_ver.o real.o complex.o m -LIBS = `$(GTK_DIR)gtk-config --libs` -lX11 -lm +LIBS = `${GTK_CONFIG} --libs` -lX11 -lm grpn: $(OBJS)