# $Source: /afs/pdc.kth.se/cluster/tegner/src/kdeposit/RCS/Makefile,v $ CC=gcc LD=gcc CFLAGS=-Wall $(shell krb5-config --cflags) LDFLAGS=$(shell krb5-config --libs) -Wl,--rpath -Wl,/usr/heimdal/lib64 DEST=/afs/pdc.kth.se/cluster/tegner/usr CLIENT=kdeposit DAEMON=in.kdepositd all: $(CLIENT) $(DAEMON) kdeposit.o: kdeposit.c kdeposit.h $(CC) $(CFLAGS) -c -o $@ $< in.kdepositd.o: in.kdepositd.c kdeposit.h $(CC) $(CFLAGS) -c -o $@ $< kdeposit: kdeposit.o $(LD) -o $@ $^ $(LDFLAGS) in.kdepositd: in.kdepositd.o $(LD) -o $@ $^ $(LDFLAGS) clean: rm -f *~ kdeposit.o in.kdepositd.o kdeposit in.kdepositd install: in.kdepositd kdeposit mkdir -p $(DEST)/sbin mkdir -p $(DEST)/bin cp in.kdepositd $(DEST)/sbin/in.kdepositd cp kdeposit $(DEST)/bin/kdeposit