Add poc files

This commit is contained in:
Joey Yakimowich-Payne 2018-05-26 10:55:38 +09:00
commit fa600b98f7
220 changed files with 45679 additions and 0 deletions

42
h_files-format/Makefile Normal file
View file

@ -0,0 +1,42 @@
TOP=..
##############################################################################
# Variables
##############################################################################
TARGET=lib
SRC= outline.ml simple_format.ml source_tree.ml
LIBS=$(TOP)/commons/lib.cma
INCLUDEDIRS= $(TOP)/commons
##############################################################################
# Generic variables
##############################################################################
-include $(TOP)/Makefile.common
##############################################################################
# Top rules
##############################################################################
all:: $(TARGET).cma
all.opt:: $(TARGET).cmxa
opt:: all.opt
$(TARGET).cma: $(OBJS) $(LIBS)
$(OCAMLC) -a -o $(TARGET).cma $(OBJS)
$(TARGET).cmxa: $(OPTOBJS) $(LIBS:.cma=.cmxa)
$(OCAMLOPT) -a -o $(TARGET).cmxa $(OPTOBJS)
##############################################################################
# install
##############################################################################
LIBNAME=pfff-h_files-format
EXPORTSRC=\
outline.mli
install-findlib: all all.opt
ocamlfind install $(LIBNAME) META \
lib.cma lib.cmxa lib.a \
$(EXPORTSRC) $(EXPORTSRC:%.mli=%.cmi) \