srcdir=@srcdir@
include @TOP_OBJDIR@/src/config/Makefile.config
include @TOP_OBJDIR@/src/config/Makefile.pthread

OBJS=main.o CFGrowlAdditions.o

all: growlagent-openafs

_growlagent-openafs: ${OBJS}
	$(AFS_LDRULE) ${OBJS} -framework Security \
		-framework AppKit -framework CoreFoundation

growlagent-openafs: _growlagent-openafs
	${CP} $? $@
	Rez -o $@ growlagent.r
	SetFile -a "C" $@

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

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

install:

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

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

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

