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

2
globals/.depend Normal file
View file

@ -0,0 +1,2 @@
config_pfff.cmo :
config_pfff.cmx :

4
globals/META Normal file
View file

@ -0,0 +1,4 @@
description = "required pfff modules when using -linkall, from pfff"
requires = "unix num"
archive(byte) = "lib.cma"
archive(native) = "lib.cmxa"

49
globals/Makefile Normal file
View file

@ -0,0 +1,49 @@
TOP=..
-include $(TOP)/Makefile.config
##############################################################################
# Variables
##############################################################################
TARGET=lib
SRC= config_pfff.ml
LIBS=
INCLUDEDIRS=../commons
##############################################################################
# Generic
##############################################################################
-include $(TOP)/Makefile.common
##############################################################################
# Top rules
##############################################################################
all:: $(TARGET).cma
all.opt: $(TARGET).cmxa
$(TARGET).cma: $(OBJS) $(LIBS)
$(OCAMLC) -a -o $(TARGET).cma $(OBJS)
$(TARGET).cmxa: $(OPTOBJS) $(LIBS:.cma=.cmxa)
$(OCAMLOPT) -a -o $(TARGET).cmxa $(OPTOBJS)
config_pfff.ml:
@echo "config_pfff.ml is missing. Have you run ./configure?"
@exit 1
distclean::
rm -f config_pfff.ml
##############################################################################
# install
##############################################################################
LIBNAME=pfff-config
EXPORTSRC=\
install-findlib: all all.opt
ocamlfind install $(LIBNAME) META \
lib.cma lib.cmxa lib.a \
$(EXPORTSRC) $(EXPORTSRC:%.mli=%.cmi) \

11
globals/config_pfff.ml Normal file
View file

@ -0,0 +1,11 @@
let version = "0.29"
let path =
try (Sys.getenv "PFFF_HOME")
with Not_found->"/usr/local/share/pfff"
let std_xxx = ref (Filename.concat path "xxx.yyy")
let logger =
try Some (Sys.getenv "PFFF_LOGGER")
with Not_found-> None

11
globals/config_pfff.ml.in Normal file
View file

@ -0,0 +1,11 @@
let version = "0.29"
let path =
try (Sys.getenv "PFFF_HOME")
with Not_found1->"/usr/local/share/pfff"
let std_xxx = ref (Filename.concat path "xxx.yyy")
let logger =
try Some (Sys.getenv "PFFF_LOGGER")
with Not_found2-> None