srcdir=@srcdir@
include @TOP_OBJDIR@/src/config/Makefile.config
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@

OBJS=main.o CFGrowlAdditions.o

all: growlagent-openafs

growlagent-openafs: ${OBJS}
	${CC} ${CFLAGS} -o $@ ${OBJS} -framework Security -framework AppKit -framework CoreFoundation

CFGrowlAdditions.o: CFGrowlAdditions.h
main.o: GrowlDefines.h GrowlPathway.h CFGrowlAdditions.h

clean:
	$(RM) -f *.o growlagent-openafs

install:

dest: \
	${DEST}/tools/growlagent-openafs \
	${DEST}/tools/._growlagent-openafs

${DEST}/tools/growlagent-openafs: growlagent-openafs
	${INSTALL} $? $@
${DEST}/tools/._growlagent-openafs: ${srcdir}/._growlagent-openafs
	${INSTALL} $? $@

include ../../../config/Makefile.version

