makefile updates
[apps/madmutt.git] / tools / Makefile
diff --git a/tools/Makefile b/tools/Makefile
new file mode 100644 (file)
index 0000000..4164759
--- /dev/null
@@ -0,0 +1,5 @@
+cpkg2c: cpkg2c.mll
+       ocamllex $<
+       $(if $(shell which ocamlopt),ocamlopt -o $@ str.cmxa,ocamlc -o $@ str.cma) $@.ml
+       @$(RM) cpkg2c.ml cpkg2c.c* cpkg2c.o
+