include ../Make.config

CUTOFF_PROTO	= f_cutoffmain.h f_files.h f_flag.h f_moveobject.h \
		  f_pointers.h f_stage1.h f_stage2.h f_stage3.h f_traverse.h

DBS_PROTO	= f_dbrdmol.h f_dbserfs.h f_dbserrors.h f_dbserv.h \
		  f_dbshandler.h f_dbwrmol.h f_gobble.h f_makelinks.h \
		  f_molfile.h f_query.h f_queue.h

LIBLINCKS_PROTOS= f_attrpack.h f_autostart.h f_comhist.h f_dbcomm.h \
		  f_linckshandler.h f_linkpack.h f_ll_version.h f_logws.h \
		  f_lowcom.h f_rdwrmol.h f_structsupport.h f_sysfuns.h \
		  f_usfuns.h f_wssupport.h

LIBXL_PROTOS	= f_generic.h f_layout.h f_libxl_version.h f_ltext.h \
		  f_ltextaction.h f_ltextfocussing.h f_ltextpublic.h \
		  f_ltextsaving.h f_ltextsink.h f_view.h

LIBSHARED_PROTO = f_links.h f_logging.h f_ls_version.h f_misc.h \
		  f_packunpack.h f_xconfig.h f_xdr.h f_tcp.h f_rpc.h \
		  f_uu.h

MONITOR_PROTO	= f_dbsqueue.h f_flags.h f_getentry.h f_labelinfo.h \
		  f_locks.h f_monerrors.h f_monhandler.h f_newfiles.h \
		  f_putentry.h f_rpccalls.h

XLINCKS_PROTO	= f_aim_version.h f_aimbuildref.h f_aimcmdstream.h \
		  f_aimcommand.h f_aimcursor.h f_aimcutbuf.h f_aimdbdump.h \
		  f_aimeditops.h f_aimexport.h f_aimpropagate.h f_aimstart.h \
		  f_aimstredit.h f_aimstruct.h f_aimsubr.h f_autolinks.h \
		  f_blddisplay.h f_chng_prop.h f_gpdmenu.h f_pen_notify.h \
		  f_uim_propagate.h f_xdumpref.h f_xlincks_help.h f_xstuff.h \
		  f_graphutils.h f_rendering.h f_graph.h f_showhistory.h \
		  f_xaimexport.h

PROG		= includes
PROTOS		= $(CUTOFF_PROTO) $(DBS_PROTO) $(LIBLINCKS_PROTOS) \
		  $(LIBXL_PROTOS) $(LIBSHARED_PROTO) $(MONITOR_PROTO) \
		  $(XLINCKS_PROTO)

all:	$(PROG)

install:
	@ for i in $(PROTOS) ;\
	do \
	if [ ! -d $(INCDIR) ] ; then \
		echo "Making directory $(INCDIR)"; \
		$(MKDIRHIER) $(INCDIR); \
		chmod 755 $(INCDIR); \
	fi; \
	echo installing $$i in $(INCDIR) ; \
	$(INSTALL) $(INCINSTALLFLAGS) $$i $(INCDIR) ; \
	done

$(PROG):
	@ echo "nothing to make"

clean:
	/bin/rm -f *~
depend:
	@ echo "nothing to depend"

current:
	ln -s $(SCCSHOME) SCCS
	sccs get $(PROTOS)
	/bin/rm SCCS
