GTK_INCLUDE = `$(GTK_CONFIG) --cflags` GTK_LIB = `$(GTK_CONFIG) --libs` IMLIB_INCLUDE = `${IMLIB_CONFIG} --cflags-gdk` IMLIB_LIB = `${IMLIB_CONFIG} --libs-gdk` CFLAGS+= -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) LIBS = $(GTK_LIB) $(IMLIB_LIB) LFLAGS = -shared CC ?= gcc $(CFLAGS) OBJS = gkrellshoot.o gkrellshoot.so: $(OBJS) $(CC) $(OBJS) -o gkrellshoot.so $(LFLAGS) $(LIBS) clean: rm -f *.o core *.so* *.bak *~ gkrellshoot.o: gkrellshoot.c install: install -c -s gkrellshoot.so ${PREFIX}/libexec/gkrellm/plugins userinstall: if [ -d $(HOME)/.gkrellm/plugins/ ] ; then \ install -C -s -m 644 gkrellshoot.so $(HOME)/.gkrellm/plugins/ ; \ else \ install -D -C -s -m 644 gkrellshoot.so $(HOME)/.gkrellm/plugins/gkrellshoot.so ; \ fi uninstall: rm -f $(PLUGIN_DIR)/gkrellshoot.so all: gkrellshoot.so