Release coccinelle-0.1.2
[bpt/coccinelle.git] / parsing_c / Makefile
index c0d1df0..ea1b150 100644 (file)
@@ -3,28 +3,37 @@
 ##############################################################################
 TARGET=parsing_c
 
-SRC= \
- flag_parsing_c.ml ast_c.ml control_flow_c.ml semantic_c.ml \
+
+# - type_cocci.ml ast_cocci.ml  # + unparse_hrule 
+SRC= flag_parsing_c.ml parsing_stat.ml \
+ ast_c.ml control_flow_c.ml \
  visitor_c.ml lib_parsing_c.ml \
  ast_to_flow.ml \
- lexer_parser.ml parser_c.ml lexer_c.ml \
- token_helpers.ml parsing_hacks.ml parse_c.ml \
- compare_c.ml type_annoter_c.ml  pretty_print_c.ml \
- unparse_cocci2.ml unparse_c2.ml unparse_hrule.ml \
+ pretty_print_c.ml \
+ semantic_c.ml lexer_parser.ml parser_c.ml lexer_c.ml \
+ token_helpers.ml parsing_hacks.ml \
+ unparse_cocci.ml unparse_c.ml unparse_hrule.ml  \
+ parse_c.ml \
+ cpp_ast_c.ml \
+ compare_c.ml type_annoter_c.ml \
  test_parsing_c.ml
 
 
-SYSLIBS= str.cma unix.cma 
 
-# parsing_c now depends on cocci_parser because in addition to decorate the
-# token in Ast_c with some parse info, we now also make some place to
+# ast_cocci.ml and unparse_cocci.ml should be deleted in the futur
+# to make parsing_c really independent of coccinelle. 
+# control_flow_c have also coccinelle dependencies.
+# old: parsing_c now depends on cocci_parser because in addition to decorate 
+# the token in Ast_c with some parse info, we now also make some place to
 # welcome some mcodekind of Ast_cocci.
 LIBS=../commons/commons.cma ../globals/globals.cma \
      ../parsing_cocci/cocci_parser.cma
 
-INCLUDES= -I ../commons -I ../commons/ocamlextra \
-       -I ../globals -I  ../parsing_cocci 
+INCLUDES= -I ../commons -I ../globals -I  ../parsing_cocci 
 
+#LIBS=../commons/commons.cma
+#INCLUDES= -I ../commons
+SYSLIBS= str.cma unix.cma 
 
 ##############################################################################
 # Generic variables
@@ -80,6 +89,33 @@ clean::
 beforedepend:: parser_c.ml parser_c.mli
 
 
+##############################################################################
+# Pad's rules
+##############################################################################
+# visitor_c.ml lib_parsing_c.ml \
+# type_annoter_c.ml  \
+# statistics_c.ml  \
+# pretty_print_c.ml unparse_c.ml \
+# test_parsing_c.ml
+#toreput: compare_c.ml ast_to_flow.ml
+
+COREPARSING= flag_parsing_c.ml parsing_stat.ml \
+ ast_cocci.ml \
+ ast_c.ml control_flow_c.ml \
+ semantic_c.ml lexer_parser.ml parser_c.mly lexer_c.mll \
+ token_helpers.ml parsing_hacks.ml parse_c.ml \
+
+locparsing:
+       wc -l $(COREPARSING)
+
+locindiv:
+       wc -l lexer_c.mll
+       wc -l parser_c.mly
+       wc -l parsing_hacks.ml
+       wc -l ast_c.ml
+       wc -l parse_c.ml
+
+
 ##############################################################################
 # Generic rules
 ##############################################################################