# Generated automatically from Makefile.in by configure.
#
# Makefile for rpcsec_gss.
#
# Dug Song <dugsong@monkey.org>
#
# $Id: Makefile,v 1.13 2002/01/15 15:43:00 andros Exp $

srcdir	= .

CC	= gcc
# -O2 or -g : -DSPKM for spkm.
#CFLAGS	= -g  -DSPKM -D_BSD_SOURCE  -DSTDC_HEADERS=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DGETGROUPS_T=gid_t -DHAVE_VPRINTF=1 -DHAVE_GETHOSTNAME=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRERROR=1 -DHAVE_LIBNSL=1 -DHAVE_LIBRESOLV=1 -DHAVE_KRB5=1 

CFLAGS	= -02  -D_BSD_SOURCE  -DSTDC_HEADERS=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DGETGROUPS_T=gid_t -DHAVE_VPRINTF=1 -DHAVE_GETHOSTNAME=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRERROR=1 -DHAVE_LIBNSL=1 -DHAVE_LIBRESOLV=1 -DHAVE_KRB5=1 

KRBDIR	= /usr/local/src/krb5-1.2.1-lipkey
KRBINC	= -I$(KRBDIR)/include

INCS	= -I$(srcdir) $(KRBINC)

HDRS	= auth.h auth_gss.h auth_unix.h clnt.h netdb.h pmap_clnt.h	\
	  pmap_prot.h pmap_rmt.h rpc.h rpc_msg.h svc.h svc_auth.h	\
	  types.h xdr.h 

SRCS	= auth_none.c auth_unix.c authunix_prot.c auth_gss.c		\
	  authgss_prot.c bindresvport.c clnt_generic.c clnt_perror.c	\
	  clnt_raw.c clnt_simple.c clnt_tcp.c clnt_udp.c		\
	  rpc_dtablesize.c get_myaddress.c getrpcent.c getrpcport.c	\
	  pmap_clnt.c pmap_getmaps.c pmap_getport.c pmap_prot.c		\
	  pmap_prot2.c pmap_rmt.c rpc_prot.c rpc_commondata.c		\
	  rpc_callmsg.c svc.c svc_auth.c svc_auth_none.c		\
	  svc_auth_unix.c svc_auth_gss.c svc_raw.c svc_run.c		\
	  svc_simple.c svc_tcp.c svc_udp.c xdr.c xdr_array.c		\
	  xdr_float.c xdr_mem.c xdr_rec.c xdr_reference.c xdr_stdio.c

OBJS	= $(SRCS:.c=.o)

.c.o:
	$(CC) $(CFLAGS) $(INCS) -c $(srcdir)/$*.c

all:	rpc librpc.a

rpc:	
	ln -sf $(srcdir) $(srcdir)/rpc

librpc.a: $(OBJS)
	@echo "building librpc.a"
	ar cru librpc.a $(OBJS)
	ranlib librpc.a

clean:
	rm -f *.o *~ librpc.a

distclean: clean
	rm -f Makefile
