TST=if test -n "`cat DONE`" ; then

##DOSBUILDTOP = ..\..
##DOS!include $(BUILDTOP)\config\windows.in

all-unix::

all-mac::

libgssapi_krb5.a: generic/DONE krb5/DONE
	(cd generic; $(TST) $(ARADD) ../$@ `cat DONE` ; fi)
	(cd krb5; $(TST) $(ARADD) ../$@ `cat DONE` ; fi)
	$(RANLIB) $@

install:: libgssapi_krb5.a
	$(INSTALL_DATA) libgssapi_krb5.a $(DESTDIR)$(KRB5_LIBDIR)/libgssapi_krb5.a
	$(RANLIB) $(DESTDIR)$(KRB5_LIBDIR)/libgssapi_krb5.a

clean:: clean-$(WHAT)

clean-unix::
	$(RM) libgssapi_krb5.a

clean-mac::
	$(RM) libgssapi_krb5.a

clean-windows::
	$(RM) gssapi.lib gssapi.bak

all-windows::
	cd generic
	@echo Making in gssapi\generic
	-$(MAKE) -$(MFLAGS) LIBCMD=$(LIBCMD)
	cd ..\krb5
	@echo Making in gssapi\krb5
	-$(MAKE) -$(MFLAGS) LIBCMD=$(LIBCMD)
	cd ..

clean-windows::
	cd generic
	@echo Making clean in gssapi\generic
	-$(MAKE) -$(MFLAGS) clean
	cd ..\krb5
	@echo Making clean in gssapi\krb5
	-$(MAKE) -$(MFLAGS) clean
	cd ..
	@echo Making clean in gssapi

