$NetBSD: patch-aa,v 1.1.1.1 2004/02/24 23:09:51 cube Exp $ --- Makefile.orig Sat Oct 20 01:40:33 2001 +++ Makefile @@ -4,17 +4,19 @@ IMLIB_INCLUDE = `imlib-config --cflags-gdk` IMLIB_LIB = `imlib-config --libs-gdk` THREAD_LIB = -lpthread -INSTALLDIR = /usr/share/gkrellm/plugins +INSTALLDIR = ${PREFIX}/lib/gkrellm/plugins -FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) +CFLAGS += -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) -I${PREFIX}/include LIBS = $(GTK_LIB) $(IMLIB_LIB) $(THREAD_LIB) LFLAGS = -shared -CC = gcc $(CFLAGS) $(FLAGS) +CC = gcc $(CFLAGS) OBJS = gkrellmoon.o MoonRise.o CalcEphem.o Moon.o +all: gkrellmoon.so + gkrellmoon.so: $(OBJS) $(CC) $(OBJS) -o gkrellmoon.so $(LFLAGS) $(LIBS) @@ -26,4 +28,4 @@ # %.o: %.c install: gkrellmoon.so - sudo install -c -s -m 644 gkrellmoon.so $(INSTALLDIR) + install -c -s -m 644 gkrellmoon.so $(INSTALLDIR)