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