TOP_DIR = ../..
include $(TOP_DIR)/Makefile.rules

all:
	$(MAKE) depend
	$(MAKE) -f Makefile.code all

opt:
	$(MAKE) depend
	$(MAKE) -f Makefile.code opt

depend:
	$(OCAMLDEP) *.ml *.mli >depend

clean:
	rm -f $(CLEAN_LIST)

CLEAN: clean

distclean: clean
	rm -f META

# We install rtypes.cmx and xdr.cmx to allow inlining

install:
	files=`$(COLLECT_FILES) *.mli *.cmi *.cma *.cmxa *.a rtypes.cmx xdr.cmx META` && \
	$(OCAMLFIND) install rpc $$files

uninstall:
	$(OCAMLFIND) remove rpc
