Commit 472a86ad authored by bguillaum's avatar bguillaum

Flat source and new Makefiles with automatic dependencies computation

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/semagramme/libcaml-grew/trunk@8808 7838e531-6607-4d57-9587-6c381814729c
parent fa970e46
......@@ -7,6 +7,13 @@
*.cma
*.cmxa
# generated ml files
gr_grs_parser.ml
gr_grs_parser.mli
lexer.ml
.depend
Makefile
confdefs.h
......
all:
@make -C src libgrew.cmxa
@make -C src libgrew.cma
@make -C src all
LIB_DEP = libgrew_types.cmi libgrew.cmi libgrew.cma libgrew.cmxa libgrew.a
......
......@@ -8,6 +8,7 @@ OCAMLOPT = @OCAMLOPT@
OCAMLLIB = @OCAMLLIB@
OCAMLFIND = @OCAMLFIND@
OCAMLLEX = @OCAMLLEX@
OCAMLDEP = @OCAMLDEP@
MENHIR = @MENHIR@
BYTE_FLAGS = -g -dtypes
......@@ -52,6 +53,8 @@ infos:
@echo "OCAMLOPT -> " $(OCAMLOPT)
@echo "OCAMLLIB -> " $(OCAMLLIB)
@echo "OCAMLFIND -> " $(OCAMLFIND)
@echo "OCAMLDEP -> " $(OCAMLDEP)
@echo "MENHIR -> " $(MENHIR)
@echo "BYTE_FLAGS -> " $(BYTE_FLAGS)
@echo "OPT_FLAGS -> " $(OPT_FLAGS)
@echo ""
......
......@@ -34,6 +34,12 @@ if test "$config" = yes ; then
fi
AC_SUBST(OCAMLLEX)
AC_PATH_PROG(OCAMLDEP,ocamldep.opt ocamldep,no)
if test "$OCAMLDEP" = no ; then
AC_MSG_ERROR(Cannot find ocamldep)
fi
AC_SUBST(OCAMLDEP)
# Checks for libraries.
AC_MSG_CHECKING(for ocaml library path)
OCAMLLIB=$($OCAMLC -where)
......
......@@ -600,6 +600,7 @@ ANSITERMINAL_INCLUDE
MENHIR
OCAMLFIND
OCAMLLIB
OCAMLDEP
OCAMLLEX
OCAMLOPT
OCAMLC
......@@ -1862,6 +1863,52 @@ test -n "$OCAMLLEX" || OCAMLLEX="no"
fi
# Extract the first word of "ocamldep.opt ocamldep", so it can be a program name with args.
set dummy ocamldep.opt ocamldep; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_OCAMLDEP+:} false; then :
$as_echo_n "(cached) " >&6
else
case $OCAMLDEP in
[\\/]* | ?:[\\/]*)
ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
IFS=$as_save_IFS
test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="no"
;;
esac
fi
OCAMLDEP=$ac_cv_path_OCAMLDEP
if test -n "$OCAMLDEP"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDEP" >&5
$as_echo "$OCAMLDEP" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
if test "$OCAMLDEP" = no ; then
as_fn_error $? "Cannot find ocamldep" "$LINENO" 5
fi
# Checks for libraries.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ocaml library path" >&5
$as_echo_n "checking for ocaml library path... " >&6; }
......
......@@ -4,268 +4,75 @@ else
PP = -pp 'camlp4o pa_macro.cmo -DDATA_DIR=\"$(DATA_DIR)\" -DDEP2PICT'
endif
PRE_FILES_DEP = grew_base grew_types grew_ast
PRE_FILES_CMO = $(PRE_FILES_DEP:%=%.cmo)
PRE_FILES_CMX = $(PRE_FILES_DEP:%=%.cmx)
OCAMLFLAGS= \
str.cma bigarray.cma unix.cma -I +threads threads.cma dynlink.cma\
$(CAIRO_BYTE) $(CAMOMILE_BYTE) $(XML_LIGHT_BYTE) $(ANSITERMINAL_BYTE) $(LOG_BYTE) $(DEP2PICT_BYTE)
POST_FILES_DEP = grew_fs grew_edge grew_node grew_graph libgrew_types grew_command grew_rule grew_grs grew_html
POST_FILES_CMO = $(POST_FILES_DEP:%=%.cmo)
POST_FILES_CMX = $(POST_FILES_DEP:%=%.cmx)
OCAMLOPTFLAGS= \
str.cmxa bigarray.cmxa unix.cmxa -I +threads threads.cmxa dynlink.cmxa\
$(CAIRO_OPT) $(CAMOMILE_OPT) $(XML_LIGHT_OPT) $(ANSITERMINAL_OPT) $(LOG_OPT) $(DEP2PICT_OPT)
FILES_DEP = $(PRE_FILES_DEP) $(POST_FILES_DEP)
FILES_CMI = $(FILES_DEP:%=%.cmi)
FILES_CMO = $(FILES_DEP:%=%.cmo)
FILES_CMX = $(FILES_DEP:%=%.cmx)
TARGET = libgrew_types.cmi libgrew.cmi libgrew.cma libgrew.cmxa
BASE = grew_base grew_types grew_ast parser_global gr_grs_parser lexer grew_parser grew_fs grew_edge grew_node grew_graph libgrew_types grew_command grew_rule grew_grs grew_html libgrew
PARSER_DEP = parser_global lexer gr_grs_parser grew_parser
PARSER_CMI = $(PARSER_DEP:%=%.cmi)
PARSER_CMO = $(PARSER_DEP:%=%.cmo)
PARSER_CMX = $(PARSER_DEP:%=%.cmx)
CMO = $(BASE:%=%.cmo)
CMX = $(BASE:%=%.cmx)
.PHONY: parser
all: $(TARGET)
all: grew_base.cmx grew_ast.cmx parser grew test
byte: grew_base.cmo grew_ast.cmo parser.byte grew.byte test.byte
include ../config/Makefile
#parser
parser_opt:
@make -C parser
parser_byte:
@make -C parser byte
libgrew.cma : $(FILES_CMO) parser_byte libgrew.mli libgrew.ml
$(OCAMLC) -c $(PP) $(BYTE_FLAGS) $(FILES_CMO) $(XML_LIGHT_BYTE) str.cma -I parser $(PARSER_CMO) libgrew.mli
$(OCAMLC) -a -o libgrew.cma $(BYTE_FLAGS) $(PP) -linkall -I parser $(LOG_DIR) $(DEP2PICT_DIR) $(PRE_FILES_CMO) $(PARSER_CMO) $(POST_FILES_CMO) libgrew.ml
libgrew.cmxa : $(FILES_CMX) parser_opt libgrew.mli libgrew.ml
$(OCAMLOPT) -c $(PP) $(FILES_CMX) $(XML_LIGHT_OPT) str.cmxa -I parser $(PARSER_CMX) libgrew.mli
$(OCAMLOPT) -a -o libgrew.cmxa $(PP) -linkall -I parser $(LOG_DIR) $(DEP2PICT_DIR) $(PRE_FILES_CMX) $(PARSER_CMX) $(POST_FILES_CMX) libgrew.ml
DEPENDS_DIR= -I parser $(LOG_DIR)
###### grew_base.ml ##############################################################
GREW_UTILS_DEP =
GREW_UTILS_CMI = $(GREW_UTILS_DEP:%=%.cmi)
GREW_UTILS_CMO = $(GREW_UTILS_DEP:%=%.cmo)
GREW_UTILS_CMX = $(GREW_UTILS_DEP:%=%.cmx)
grew_base.cmi: $(GREW_UTILS_CMI) grew_base.mli
$(OCAMLC) -c grew_base.mli
grew_base.cmo: $(GREW_UTILS_CMO) grew_base.cmi grew_base.ml
$(OCAMLC) $(BYTE_FLAGS) -c $(DEPENDS_DIR) grew_base.ml
grew_base.cmx: $(GREW_UTILS_CMX) grew_base.cmi grew_base.ml
$(OCAMLOPT) $(OPT_FLAGS) -c $(DEPENDS_DIR) grew_base.ml
################################################################################
###### grew_types.ml ##############################################################
GREW_UTILS_DEP = grew_base
GREW_UTILS_CMI = $(GREW_UTILS_DEP:%=%.cmi)
GREW_UTILS_CMO = $(GREW_UTILS_DEP:%=%.cmo)
GREW_UTILS_CMX = $(GREW_UTILS_DEP:%=%.cmx)
grew_types.cmi: $(GREW_UTILS_CMI) grew_types.mli
$(OCAMLC) -c grew_types.mli
grew_types.cmo: $(GREW_UTILS_CMO) grew_types.cmi grew_types.ml
$(OCAMLC) $(BYTE_FLAGS) -c $(DEPENDS_DIR) grew_types.ml
grew_types.cmx: $(GREW_UTILS_CMX) grew_types.cmi grew_types.ml
$(OCAMLOPT) $(OPT_FLAGS) -c $(DEPENDS_DIR) grew_types.ml
################################################################################
###### grew_ast.ml ##############################################################
GREW_AST_DEP = grew_base grew_types
GREW_AST_CMI = $(GREW_AST_DEP:%=%.cmi)
GREW_AST_CMO = $(GREW_AST_DEP:%=%.cmo)
GREW_AST_CMX = $(GREW_AST_DEP:%=%.cmx)
grew_ast.cmi: $(GREW_AST_CMI) grew_ast.mli
$(OCAMLC) -c grew_ast.mli
grew_ast.cmo: $(GREW_AST_CMO) grew_ast.cmi grew_ast.ml
$(OCAMLC) $(BYTE_FLAGS) -c $(DEPENDS_DIR) grew_ast.ml
grew_ast.cmx: $(GREW_AST_CMX) grew_ast.cmi grew_ast.ml
$(OCAMLOPT) $(OPT_FLAGS) -c $(DEPENDS_DIR) grew_ast.ml
################################################################################
###### grew_html.ml ##############################################################
GREW_HTML_DEP = grew_base grew_types grew_ast grew_rule grew_grs
GREW_HTML_CMI = $(GREW_HTML_DEP:%=%.cmi)
GREW_HTML_CMO = $(GREW_HTML_DEP:%=%.cmo)
GREW_HTML_CMX = $(GREW_HTML_DEP:%=%.cmx)
grew_html.cmi: $(GREW_HTML_CMI) grew_html.mli
$(OCAMLC) -c grew_html.mli
grew_html.cmo: $(GREW_HTML_CMO) grew_html.cmi grew_html.ml
$(OCAMLC) $(BYTE_FLAGS) $(PP) -c $(DEPENDS_DIR) grew_html.ml
grew_html.cmx: $(GREW_HTML_CMX) grew_html.cmi grew_html.ml
$(OCAMLOPT) $(OPT_FLAGS) $(PP) -c $(DEPENDS_DIR) grew_html.ml
################################################################################
###### grew_fs.ml ##############################################################
GREW_FS_DEP = grew_base grew_types grew_ast
GREW_FS_CMI = $(GREW_FS_DEP:%=%.cmi)
GREW_FS_CMO = $(GREW_FS_DEP:%=%.cmo)
GREW_FS_CMX = $(GREW_FS_DEP:%=%.cmx)
grew_fs.cmi: $(GREW_FS_CMI) grew_fs.mli
$(OCAMLC) -c grew_fs.mli
grew_fs.cmo: $(GREW_FS_CMO) grew_fs.cmi grew_fs.ml
$(OCAMLC) $(BYTE_FLAGS) -c $(DEPENDS_DIR) grew_fs.ml
grew_fs.cmx: $(GREW_FS_CMX) grew_fs.cmi grew_fs.ml
$(OCAMLOPT) $(OPT_FLAGS) -c $(DEPENDS_DIR) grew_fs.ml
################################################################################
###### grew_edge.ml ##############################################################
GREW_EDGE_DEP = grew_base grew_types grew_ast
GREW_EDGE_CMI = $(GREW_EDGE_DEP:%=%.cmi)
GREW_EDGE_CMO = $(GREW_EDGE_DEP:%=%.cmo)
GREW_EDGE_CMX = $(GREW_EDGE_DEP:%=%.cmx)
grew_edge.cmi: $(GREW_EDGE_CMI) grew_edge.mli
$(OCAMLC) -c grew_edge.mli
grew_edge.cmo: $(GREW_EDGE_CMO) grew_edge.cmi grew_edge.ml
$(OCAMLC) $(BYTE_FLAGS) -c $(DEPENDS_DIR) grew_edge.ml
grew_edge.cmx: $(GREW_EDGE_CMX) grew_edge.cmi grew_edge.ml
$(OCAMLOPT) $(OPT_FLAGS) -c $(DEPENDS_DIR) grew_edge.ml
################################################################################
libgrew.cmxa : $(CMX)
$(OCAMLOPT) -a -o $@ $(CMX)
libgrew.cma : $(CMO)
$(OCAMLC) -a -o $@ $(CMO)
###### grew_node.ml ##############################################################
GREW_NODE_DEP = grew_base grew_types grew_ast grew_fs grew_edge
GREW_NODE_CMI = $(GREW_NODE_DEP:%=%.cmi)
GREW_NODE_CMO = $(GREW_NODE_DEP:%=%.cmo)
GREW_NODE_CMX = $(GREW_NODE_DEP:%=%.cmx)
grew_node.cmi: $(GREW_NODE_CMI) grew_node.mli
$(OCAMLC) -c grew_node.mli
grew_node.cmo: $(GREW_NODE_CMO) grew_node.cmi grew_node.ml
$(OCAMLC) $(BYTE_FLAGS) -c $(DEPENDS_DIR) grew_node.ml
grew_node.cmx: $(GREW_NODE_CMX) grew_node.cmi grew_node.ml
$(OCAMLOPT) $(OPT_FLAGS) -c $(DEPENDS_DIR) grew_node.ml
################################################################################
###### grew_graph.ml ##############################################################
GREW_GRAPH_DEP = grew_base grew_types grew_ast grew_command grew_edge grew_fs grew_node
GREW_GRAPH_CMI = $(GREW_GRAPH_DEP:%=%.cmi)
GREW_GRAPH_CMO = $(GREW_GRAPH_DEP:%=%.cmo)
GREW_GRAPH_CMX = $(GREW_GRAPH_DEP:%=%.cmx)
grew_graph.cmi: $(GREW_GRAPH_CMI) grew_graph.mli
$(OCAMLC) -c $(XML_LIGHT_BYTE) grew_graph.mli
grew_graph.cmo: $(GREW_GRAPH_CMO) grew_graph.cmi grew_graph.ml
$(OCAMLC) $(BYTE_FLAGS) -c $(DEPENDS_DIR) $(XML_LIGHT_BYTE) grew_graph.ml
grew_graph.cmx: $(GREW_GRAPH_CMX) grew_graph.cmi grew_graph.ml
$(OCAMLOPT) $(OPT_FLAGS) -c $(DEPENDS_DIR) $(XML_LIGHT_OPT) grew_graph.ml
################################################################################
###### libgrew_types.ml ##############################################################
LIBGREW_TYPES_DEP = grew_graph
LIBGREW_TYPES_CMI = $(LIBGREW_TYPES_DEP:%=%.cmi)
LIBGREW_TYPES_CMO = $(LIBGREW_TYPES_DEP:%=%.cmo)
LIBGREW_TYPES_CMX = $(LIBGREW_TYPES_DEP:%=%.cmx)
libgrew_types.cmi: $(LIBGREW_TYPES_CMI) libgrew_types.mli
$(OCAMLC) -c libgrew_types.mli
libgrew_types.cmo: $(LIBGREW_TYPES_CMO) libgrew_types.cmi libgrew_types.ml
$(OCAMLC) $(BYTE_FLAGS) -c $(DEPENDS_DIR) libgrew_types.ml
libgrew_types.cmx: $(LIBGREW_TYPES_CMX) libgrew_types.cmi libgrew_types.ml
$(OCAMLOPT) $(OPT_FLAGS) -c $(DEPENDS_DIR) libgrew_types.ml
################################################################################
###### grew_command.ml ##############################################################
GREW_COMMAND_DEP = grew_base grew_types grew_ast grew_edge grew_fs
GREW_COMMAND_CMI = $(GREW_COMMAND_DEP:%=%.cmi)
GREW_COMMAND_CMO = $(GREW_COMMAND_DEP:%=%.cmo)
GREW_COMMAND_CMX = $(GREW_COMMAND_DEP:%=%.cmx)
grew_command.cmi: $(GREW_COMMAND_CMI) grew_command.mli
$(OCAMLC) -c grew_command.mli
grew_command.cmo: $(GREW_COMMAND_CMO) grew_command.cmi grew_command.ml
$(OCAMLC) $(BYTE_FLAGS) -c $(DEPENDS_DIR) grew_command.ml
grew_command.cmx: $(GREW_COMMAND_CMX) grew_command.cmi grew_command.ml
$(OCAMLOPT) $(OPT_FLAGS) -c $(DEPENDS_DIR) grew_command.ml
################################################################################
###### grew_rule.ml ##############################################################
GREW_RULE_DEP = grew_base grew_types grew_ast grew_command grew_edge grew_fs grew_node libgrew_types grew_graph
GREW_RULE_CMI = $(GREW_RULE_DEP:%=%.cmi)
GREW_RULE_CMO = $(GREW_RULE_DEP:%=%.cmo)
GREW_RULE_CMX = $(GREW_RULE_DEP:%=%.cmx)
grew_rule.cmi: $(GREW_RULE_CMI) grew_rule.mli
$(OCAMLC) -c grew_rule.mli
grew_rule.cmo: $(GREW_RULE_CMO) grew_rule.cmi grew_rule.ml
$(OCAMLC) $(PP) $(BYTE_FLAGS) -c $(DEPENDS_DIR) $(DEP2PICT_BYTE) grew_rule.ml
grew_rule.cmx: $(GREW_RULE_CMX) grew_rule.cmi grew_rule.ml
$(OCAMLOPT) $(PP) $(OPT_FLAGS) -c $(DEPENDS_DIR) $(DEP2PICT_OPT) grew_rule.ml
################################################################################
###### grew_grs.ml ##############################################################
GREW_GRS_DEP = grew_base grew_types grew_edge libgrew_types grew_graph grew_rule
GREW_GRS_CMI = $(GREW_GRS_DEP:%=%.cmi)
GREW_GRS_CMO = $(GREW_GRS_DEP:%=%.cmo)
GREW_GRS_CMX = $(GREW_GRS_DEP:%=%.cmx)
grew_grs.cmi: $(GREW_GRS_CMI) grew_grs.mli
$(OCAMLC) -c grew_grs.mli
grew_grs.cmo: parser_byte $(GREW_GRS_CMO) grew_grs.cmi grew_grs.ml
$(OCAMLC) $(BYTE_FLAGS) $(PP) -c $(DEPENDS_DIR) grew_grs.ml
grew_grs.cmx: parser_opt $(GREW_GRS_CMX) grew_grs.cmi grew_grs.ml
$(OCAMLOPT) $(OPT_FLAGS) $(PP) -c $(DEPENDS_DIR) grew_grs.ml
################################################################################
# others
include ../config/Makefile
dep:
rm depend
ocamldep *.ml* > depend
# --------------------------------------------------------------------------
# Specific rules
SPECIFIC = gr_grs_parser.ml gr_grs_parser.mli lexer.ml
gr_grs_parser.ml: gr_grs_parser.mly
$(MENHIR) --infer --ocamlc "$(OCAMLC) -c -I ." gr_grs_parser.mly
@make gr_grs_parser.cmi # force the build NOW
gr_grs_parser.cmo: gr_grs_parser.ml
$(OCAMLC) $(OCAMLFLAGS) -c $<
gr_grs_parser.cmx: gr_grs_parser.ml
$(OCAMLOPT) $(OCAMLOPTFLAGS) -c $<
lexer.ml: lexer.mll
$(OCAMLLEX) lexer.mll
lexer.cmo: lexer.ml
$(OCAMLC) $(OCAMLFLAGS) -c $<
lexer.cmx: lexer.ml
$(OCAMLOPT) $(OCAMLOPTFLAGS) -c $<
# --------------------------------------------------------------------------
# Common rules
.SUFFIXES: .ml .mli .cmo .cmi .cmx
.ml.cmo:
$(OCAMLC) $(PP) $(OCAMLFLAGS) -c $<
.mli.cmi:
$(OCAMLC) $(OCAMLFLAGS) -c $<
.ml.cmx:
$(OCAMLOPT) $(PP) $(OCAMLOPTFLAGS) -c $<
# Clean up
clean:
rm -f $(TARGET) $(TEST) $(SPECIFIC)
rm -f *.cm[iox] *.[ao] *.annot
rm -f .depend
purge:
rm -f Makefile
rm -rf doc
clean:
@make -C parser clean
rm -rf *.cmi *.cmo *.cmxa *.cma *.cmx *.o *.annot
rm -f grew grew.byte
rm -f test test.byte
rm -f *.nf *.png *.html
# Dependencies
depend: .depend
purge_makefile:
@make -C parser purge
@make purge
.depend:
$(OCAMLDEP) $(PP) $(INCLUDES) *.mli *.ml > .depend
doc:
rm libgrew.mli
@make libgrew.mli
mkdir -p ../doc
ocamldoc -html -d ../doc libgrew.mli
-include .depend
......@@ -35,8 +35,6 @@ type loc = Loc.t
let string_of_loc = Loc.to_string
let line_of_loc = Loc.to_line
type instance = Instance.t
exception File_dont_exists of string
exception Parsing_err of string * loc option
......
......@@ -19,10 +19,6 @@ val css_file: string
type loc = Loc.t
type instance = Instance.t
val line_of_loc: loc -> int
val string_of_loc: loc -> string
......
# generated ml files
gr_grs_parser.ml
gr_grs_parser.mli
lexer.ml
all: parser_global.cmx gr_grs_parser.cmx lexer.cmx grew_parser.cmx
byte: parser_global.cmo gr_grs_parser.cmo lexer.cmo grew_parser.cmo
include ../../config/Makefile
parser_global.cmo: parser_global.ml
$(OCAMLC) -c $(BYTE_FLAGS) parser_global.ml
parser_global.cmx: parser_global.ml
$(OCAMLOPT) -c $(OPT_FLAGS) parser_global.ml
gr_grs_parser.ml: gr_grs_parser.mly
menhir --infer --ocamlc "ocamlc -c -I .. grew_base.cmo grew_ast.cmo parser_global.cmo" gr_grs_parser.mly
gr_grs_parser.cmx: gr_grs_parser.ml ../grew_base.cmx ../grew_ast.cmx parser_global.cmo
$(OCAMLOPT) -c $(OPT_FLAGS) -I .. grew_base.cmx grew_ast.cmx gr_grs_parser.mli
$(OCAMLOPT) -c $(OPT_FLAGS) -I .. grew_base.cmx grew_ast.cmx gr_grs_parser.ml
gr_grs_parser.cmo: gr_grs_parser.ml ../grew_base.cmo ../grew_ast.cmx parser_global.cmo
$(OCAMLC) -c $(BYTE_FLAGS) -I .. grew_base.cmo grew_ast.cmo gr_grs_parser.mli
$(OCAMLC) -c $(BYTE_FLAGS) -I .. grew_base.cmo grew_ast.cmo gr_grs_parser.ml
lexer.ml: lexer.mll
ocamllex lexer.mll
lexer.cmx: gr_grs_parser.cmx lexer.ml ../grew_ast.cmx
$(OCAMLOPT) -c $(OPT_FLAGS) -I .. $(LOG_DIR) grew_ast.cmx lexer.ml
lexer.cmo: gr_grs_parser.cmo lexer.ml ../grew_ast.cmo
$(OCAMLC) -c $(BYTE_FLAGS) -I .. $(LOG_DIR) grew_ast.cmo lexer.ml
grew_parser.cmx: gr_grs_parser.cmx lexer.cmx grew_parser.ml ../grew_ast.cmx
$(OCAMLOPT) -c $(OPT_FLAGS) -I .. grew_ast.cmx grew_parser.ml
grew_parser.cmo: gr_grs_parser.cmo lexer.cmo grew_parser.ml ../grew_ast.cmo
$(OCAMLC) -c $(BYTE_FLAGS) -I .. grew_ast.cmo grew_parser.ml
clean:
rm -rf *.cmi *.cmx *.cmo lexer.ml gr_grs_parser.ml *.o *.mli *.annot
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment