summaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-04-25 15:08:17 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-04-25 15:08:17 +0000
commit2033330a441ab99695c064faf6d55af3d2f7732d (patch)
treeae8483790358b1a7e971b8676191a156fced72b1 /src/Makefile
parent60e159ef702b60aeb4515f36ca23b8a73181d028 (diff)
downloadperl_checker-2033330a441ab99695c064faf6d55af3d2f7732d.tar
perl_checker-2033330a441ab99695c064faf6d55af3d2f7732d.tar.gz
perl_checker-2033330a441ab99695c064faf6d55af3d2f7732d.tar.bz2
perl_checker-2033330a441ab99695c064faf6d55af3d2f7732d.tar.xz
perl_checker-2033330a441ab99695c064faf6d55af3d2f7732d.zip
re-sync after the big svn loss
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..5df6a31
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,34 @@
+# OCAMLC = ocamlcp -p a
+OCAMLBCFLAGS = -w A -w e
+YFLAGS = -v
+TRASH = parser.output perl_checker.html TAGS
+RESULT = perl_checker
+BCSUFFIX = _debug
+SOURCES = types.mli build.ml common.ml flags.ml config_file.ml info.ml parser_helper.ml parser.mly lexer.mll tree.ml global_checks.ml perl_checker.ml
+LIBS = unix
+fake_packages_dir = $(shell dirname `pwd`)/fake_packages
+DEBUG = 1
+
+default: TAGS build_ml build.ml debug-code native-code perl_checker.html
+
+build_ml:
+ rm -f build.ml
+ $(MAKE) build.ml
+
+build.ml:
+ date '+let date = "%s"' > $@
+ echo 'let fake_packages_dir = "'$(fake_packages_dir)'"' >> $@
+ echo 'let debugging = $(DEBUG) > 0' >> $@
+
+%.html: %.html.pl
+ rm -f $@
+ perl $< > $@
+ chmod a-w $@
+
+tags:
+ ocamltags *.ml
+
+TAGS:
+ ocamltags *.ml
+
+-include OCamlMakefile