--- ./Makefile.orig 2012-05-01 18:11:56.000000000 +0200 +++ ./Makefile 2012-05-01 18:15:04.000000000 +0200 @@ -1,18 +1,19 @@ # Makefile for gladtex -BINPATH = /usr/local/bin -MANPATH = /usr/local/share/man/man1 +BINPATH?= /usr/local/bin +MANPATH?= /usr/local/share/man/man1 -CC = gcc -O2 -DGIF -LIB = -lm -lz -lgif -lpng +CC ?= gcc +CFLAGS+= -DGIF ${INCPATH} +LIB = -lm -lz ${LIBPATH} -lgif -lpng OBJ = eqn2img.o POD2MAN = pod2man all: ${OBJ} gladtex.1 - ${CC} -o eqn2img ${LIB} ${OBJ} + ${CC} ${CFLAGS} -o eqn2img ${LIB} ${OBJ} eqn2img.o: eqn2img.c - ${CC} -c eqn2img.c + ${CC} ${CFLAGS} -c eqn2img.c gladtex.1: gladtex.pod ${POD2MAN} -c "User Commands" -r "gladtex 1.2" gladtex.pod > gladtex.1