CFLAGS = $(CCOPTS) $(DEFS) $(LOCALINCLUDE) -DUSE_AUTOCONF_H -DGSSAPI_V2

SRCS= gss-client.c gss-misc.c gss-server.c

OBJS= gss-client.o gss-misc.o gss-server.o

all:: gss-server gss-client

LOCAL_LIBRARIES = -lgssapi_krb5
DEPLOCAL_LIBRARIES = $(TOPLIBD)/gssapi/libgssapi_krb5.a

gss-server: gss-server.o gss-misc.o $(DEPLIBS)
	$(LD) $(LDFLAGS) $(LDARGS) -o gss-server gss-server.o gss-misc.o $(LIBS)

gss-client: gss-client.o gss-misc.o $(DEPLIBS)
	$(LD) $(LDFLAGS) $(LDARGS) -o gss-client gss-client.o gss-misc.o $(LIBS)

gss-client.o:	$(srcdir)/gss-client.c

gss-misc.o:	$(srcdir)/gss-misc.c

gss-server.o:	$(srcdir)/gss-server.c

clean::
	$(RM) gss-server gss-client

install::
	$(INSTALL_PROGRAM) gss-client ${DESTDIR}$(CLIENT_BINDIR)/gss-client
	$(INSTALL_PROGRAM) gss-server ${DESTDIR}$(SERVER_BINDIR)/gss-server
