--- Makefile.orig 1999-05-27 18:58:06.000000000 +0800 +++ Makefile 2014-01-10 14:20:30.000000000 +0800 @@ -1,6 +1,6 @@ -CC = gcc -CFLAGS = `gtk-config --cflags` -LDLIBS = `gtk-config --libs` +CC ?= gcc +CFLAGS += `$(GTK_CONFIG) --cflags` +LDLIBS = `$(GTK_CONFIG) --libs` all: gmessage @@ -8,7 +8,7 @@ gmessage: gmessage.c $(CC) $(CFLAGS) gmessage.c -o gmessage $(OBJS) $(LDLIBS) install: gmessage - cp ./gmessage /usr/local/bin + ${BSD_INSTALL_PROGRAM} gmessage $(DESTDIR)${PREFIX}/bin clean: $(RM) *.o core gmessage