Permalink
Browse files

introduce lang_opa/

  • Loading branch information...
1 parent c9879d4 commit fc28b66a0eb10f77461c2d6961063d05dc20882e @aryx aryx committed Jan 19, 2012
View
@@ -335,3 +335,4 @@ external/ocamlbdb/libcamlbdb.a
/lang_cpp/parsing/ocamldoc.out
/pm_depend
/lang_php/pretty/prettyphp
+/lang_opa/parsing/parser_opa.output
View
@@ -166,6 +166,7 @@ BASICLIBS=commons/commons.cma \
lang_java/parsing/lib.cma \
lang_python/parsing/lib.cma \
lang_csharp/parsing/lib.cma \
+ lang_opa/parsing/lib.cma \
lang_erlang/parsing/lib.cma \
lang_html/parsing/lib.cma \
lang_js/parsing/lib.cma \
@@ -218,6 +219,8 @@ LIBS= commons/commons.cma \
lang_python/analyze/lib.cma \
lang_csharp/parsing/lib.cma \
lang_csharp/analyze/lib.cma \
+ lang_opa/parsing/lib.cma \
+ lang_opa/analyze/lib.cma \
lang_erlang/parsing/lib.cma \
lang_erlang/analyze/lib.cma \
lang_text/lib.cma \
@@ -260,6 +263,8 @@ MAKESUBDIRS=commons \
lang_python/analyze \
lang_csharp/parsing \
lang_csharp/analyze \
+ lang_opa/parsing \
+ lang_opa/analyze \
lang_erlang/parsing \
lang_erlang/analyze \
lang_php/analyze \
View
@@ -2,6 +2,9 @@
* ?? (Q1 2012) (??)
+** introduce lang_opa
+basic support
+
* -----------------------------------------------------------
* 0.18 (Q4 2011) (prolog)
@@ -0,0 +1,96 @@
+TOP=../..
+##############################################################################
+# Variables
+##############################################################################
+TARGET=lib
+
+SRC= \
+ highlight_opa.ml \
+ database_light_opa.ml \
+ test_analyze_opa.ml
+
+-include $(TOP)/Makefile.config
+
+#ifeq ($(FEATURES_PCRE), 1)
+#PCRECMA=pcre.cma
+#PCREINCLUDE= +pcre
+#PCREINCLUDE=$(TOP)/ocamlpcre/lib
+#endif
+
+SYSLIBS= str.cma unix.cma $(PCRECMA)
+LIBS=$(TOP)/commons/commons.cma \
+ $(TOP)/h_program-lang/lib.cma \
+ $(TOP)/h_version-control/lib.cma \
+ ../parsing/lib.cma \
+
+MAKESUBDIRS=
+
+#database \
+# dynamic_analysis static_analysis \
+# qa_test qa_code \
+
+INCLUDEDIRS= $(TOP)/commons \
+ $(TOP)/commons/ocollection $(TOP)/commons/ocamlextra \
+ $(TOP)/commons/lib-json \
+ $(TOP)/external/ocamlpcre/lib \
+ $(TOP)/h_program-lang $(TOP)/h_version-control \
+ $(TOP)/globals \
+ ../parsing \
+
+# $(TOP)/analyze_php/basic \
+# $(TOP)/analyze_php/foundation \
+# $(TOP)/analyze_php/database \
+# $(TOP)/analyze_php/checker \
+# $(TOP)/analyze_php/annotaters \
+# $(TOP)/analyze_php/tools \
+# $(TOP)/analyze_php/typing \
+# $(TOP)/analyze_php/static_analysis \
+# $(TOP)/analyze_php/dynamic_analysis \
+# $(TOP)/analyze_php/qa_test \
+
+# $(PCREINCLUDE) $(JANEINCLUDE)
+#$(TOP)/matcher_php
+#$(TOP)/parsing-comments \
+#$(TOP)/smpl \
+
+##############################################################################
+# Generic variables
+##############################################################################
+-include $(TOP)/Makefile.common
+
+
+##############################################################################
+# Top rules
+##############################################################################
+all:: rec $(TARGET).cma
+all.opt:: rec.opt $(TARGET).cmxa
+
+rec:
+ set -e; for i in $(MAKESUBDIRS); do $(MAKE) -C $$i all || exit 1; done
+
+rec.opt:
+ set -e; for i in $(MAKESUBDIRS); do $(MAKE) -C $$i all.opt || exit 1; done
+
+clean::
+ set -e; for i in $(MAKESUBDIRS); do $(MAKE) -C $$i clean; done
+depend::
+ set -e; for i in $(MAKESUBDIRS); do $(MAKE) -C $$i depend; done
+
+
+$(TARGET).cma: $(OBJS)
+ $(OCAMLC) -a -o $(TARGET).cma $(OBJS)
+
+$(TARGET).cmxa: $(OPTOBJS) $(LIBS:.cma=.cmxa)
+ $(OCAMLOPT) -a -o $(TARGET).cmxa $(OPTOBJS)
+
+$(TARGET).top: $(OBJS) $(LIBS)
+ $(OCAMLMKTOP) -o $(TARGET).top $(SYSLIBS) $(LIBS) $(OBJS)
+
+clean::
+ rm -f $(TARGET).top
+
+
+##############################################################################
+# Literate Programming rules
+##############################################################################
+
Oops, something went wrong.

0 comments on commit fc28b66

Please sign in to comment.