thisconfigdir=./..
myfulldir=appl/gss-sample
mydir=gss-sample
MY_SUBDIRS=.
BUILDTOP=$(REL)$(U)$(S)$(U)
DEFINES = -DUSE_AUTOCONF_H -DGSSAPI_V2
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)

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

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

all-unix:: gss-server gss-client
all-windows:: $(OUTPRE)gss-server.exe $(OUTPRE)gss-client.exe

gss-server: gss-server.o gss-misc.o $(GSS_DEPLIBS) $(KRB5_BASE_DEPLIBS)
	$(CC_LINK) -o gss-server gss-server.o gss-misc.o $(GSS_LIBS) $(KRB5_BASE_LIBS)

gss-client: gss-client.o gss-misc.o $(GSS_DEPLIBS) $(KRB5_BASE_DEPLIBS)
	$(CC_LINK) -o gss-client gss-client.o gss-misc.o $(GSS_LIBS) $(KRB5_BASE_LIBS)

$(OUTPRE)gss-server.exe: $(OUTPRE)gss-server.obj $(OUTPRE)gss-misc.obj $(GLIB) $(KLIB)
	link $(EXE_LINKOPTS) -out:$@ $** wsock32.lib

$(OUTPRE)gss-client.exe: $(OUTPRE)gss-client.obj $(OUTPRE)gss-misc.obj $(GLIB) $(KLIB)
	link $(EXE_LINKOPTS) -out:$@ $** wsock32.lib

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

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