--- Makefile.orig 2003-12-23 12:27:34.000000000 -0600 +++ Makefile 2014-06-23 19:12:15.000000000 -0500 @@ -1,22 +1,19 @@ # Makefile for wmbsdbatt # # $Id: Makefile,v 1.1 2003/12/23 18:27:34 le Exp $ -CC = gcc +#CC = gcc PROGRAM = wmbsdbatt OBJS = wmbsdbatt.o dockapp.o HEADER = dockapp.h -CFLAGS += -Wall -I/usr/local/include -I/usr/X11R6/include -LDFLAGS += -L/usr/local/lib -L/usr/X11R6/lib -lX11 -lXext -lXpm +CFLAGS += -Wall -I$(LOCALBASE)/include +LDFLAGS += -L$(LOCALBASE)/lib -lX11 -lXext -lXpm all: ${PROGRAM} ${PROGRAM}: ${OBJS} - gcc ${CFLAGS} ${LDFLAGS} -o ${PROGRAM} ${OBJS} + ${CC} ${CFLAGS} ${LDFLAGS} -o ${PROGRAM} ${OBJS} ${OBJS}: ${HEADER} -install: - install -c -o 0 -g 0 -s ${PROGRAM} /usr/X11R6/bin - clean: rm -f *.o *.core ${PROGRAM}