Add poc files
This commit is contained in:
parent
30da2412e3
commit
fa600b98f7
220 changed files with 45679 additions and 0 deletions
60
lang_c/parsing/Makefile
Normal file
60
lang_c/parsing/Makefile
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
TOP=../..
|
||||
##############################################################################
|
||||
# Variables
|
||||
##############################################################################
|
||||
TARGET=lib
|
||||
|
||||
-include $(TOP)/Makefile.config
|
||||
|
||||
SRC= ast_c.ml meta_ast_c.ml visitor_c.ml \
|
||||
ast_c_simple_build.ml \
|
||||
lib_parsing_c.ml \
|
||||
parse_c.ml \
|
||||
test_parsing_c.ml unit_parsing_c.ml \
|
||||
|
||||
SYSLIBS= str.cma unix.cma
|
||||
|
||||
LIBS=$(TOP)/commons/lib.cma \
|
||||
$(TOP)/h_program-lang/lib.cma \
|
||||
$(TOP)/lang_cpp/parsing/lib.cma
|
||||
|
||||
INCLUDEDIRS= \
|
||||
$(TOP)/commons\
|
||||
$(TOP)/globals \
|
||||
$(TOP)/h_program-lang \
|
||||
$(TOP)/lang_cpp/parsing \
|
||||
|
||||
##############################################################################
|
||||
# Generic variables
|
||||
##############################################################################
|
||||
|
||||
-include $(TOP)/Makefile.common
|
||||
|
||||
##############################################################################
|
||||
# Top rules
|
||||
##############################################################################
|
||||
all:: $(TARGET).cma
|
||||
all.opt:: $(TARGET).cmxa
|
||||
|
||||
$(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
|
||||
|
||||
visitor_c.cmo: visitor_c.ml
|
||||
$(OCAMLC) -w y -c $<
|
||||
|
||||
##############################################################################
|
||||
# Generic rules
|
||||
##############################################################################
|
||||
|
||||
##############################################################################
|
||||
# Literate Programming rules
|
||||
##############################################################################
|
||||
Loading…
Add table
Add a link
Reference in a new issue