--- Makefile.orig Wed Aug 30 09:35:43 2000 +++ Makefile Thu Sep 14 09:54:48 2000 @@ -1,7 +1,7 @@ -GCC = gcc -PREFIX=/usr/local -CFLAGS = -I/usr/lib/glib/include -I/usr/X11R6/include -LIBS = -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm +GCC = ${CC} +PREFIX?=/usr/local +CFLAGS += `${X11BASE}/bin/gtk12-config --cflags` +LIBS = `${X11BASE}/bin/gtk12-config --libs` VERSION = 0.4 all : gthemeswitch @@ -12,8 +12,8 @@ -rm gthemeswitch *~ install: all - install -c gthemeswitch ${PREFIX}/bin - install -c switch ${PREFIX}/bin + ${BSD_INSTALL_PROGRAM} gthemeswitch ${PREFIX}/bin + ${BSD_INSTALL_SCRIPT} switch ${PREFIX}/bin dist: clean rm -rf /tmp/gtk-theme-switch-$(VERSION)