Imported Debian patch 1.0.7-5
[nfs-utils.git] / utils / svcgssd / Makefile
1 #
2 # Makefile for rpc.gssd
3 #
4
5 PROGRAM = svcgssd
6 PREFIX  = rpc.
7 OBJS    = svcgssd.o svcgssd_main_loop.o svcgssd_proc.o err_util.o gss_util.o \
8           gss_oids.o context.o context_heimdal.o cacheio.o svcgssd_mech2file.o
9 LIBDEPS = $(TOP)support/lib/librpc.a $(TOP)support/lib/libgssapi.a
10 LIBS    = -lrpc -lgssapi -ldl $(KRBLIB) -lnfsidmap
11 MAN8    = svcgssd
12
13 LINKED  = err_util.c gss_util.c gss_oids.c context.c context_heimdal.c
14
15 predep :: $(LINKED)
16
17 $(LINKED) :
18         ln -s ../gssd/$@ .
19
20 distclean ::
21         for f in $(LINKED); do \
22             if [ -L "$$f" ]; then \
23                 echo "rm -f $$f"; \
24                 rm -f "$$f"; \
25             fi; \
26         done
27
28 include $(TOP)rules.mk
29
30 CFLAGS += -I../gssd -DKRB5_VERSION=$(KRB5_VERSION) \
31         -I$(TOP)support/rpc/include/ -I$(KRBDIR)/include