X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=c69ad6c0f8464a93d93e47b2d5670434ef335ca5;hb=bf5e376eeb3b8092c7f54d608be81caccb48fdab;hp=55e146c7a0ad7a05d02d727f4d38c917180df3bb;hpb=e8c4b9ece4508acb51bf6184f04e66a6a97324d4;p=vsys.git diff --git a/Makefile b/Makefile index 55e146c..c69ad6c 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -all: vsys +all: vsys factory-exec/* include .dep @@ -30,15 +30,23 @@ docs: *.ml ocaml_inotify-0.4/inotify.cmxa: $(MAKE) -C ocaml_inotify-0.4 && cp -f ocaml_inotify-0.4/inotify_stubs.o ./ +splice_stub.o: splice_stub.c + gcc -c -I /usr/lib/ocaml -I /usr/lib64/ocaml splice_stub.c -o splice_stub.o + vsys: ocaml_inotify-0.4/inotify.cmxa globals.cmx fdwatcher.cmx conffile.cmx splice_stub.o splice.cmx dirwatcher.cmx fifowatcher.cmx frontend.cmx backend.cmx main.cmx docs - ocamlopt -I ocaml_inotify-0.4 str.cmxa unix.cmxa inotify.cmxa globals.cmx fdwatcher.cmx dirwatcher.cmx splice.cmx splice_stub.o fifowatcher.cmx frontend.cmx backend.cmx str.cmxa conffile.cmx main.cmx -o vsys + ocamlopt -I ocaml_inotify-0.4 str.cmxa unix.cmxa inotify.cmxa globals.cmx fdwatcher.cmx dirwatcher.cmx splice.cmx splice_stub.o directfifowatcher.cmx frontend.cmx backend.cmx str.cmxa conffile.cmx main.cmx -o vsys + +vsys.b: ocaml_inotify-0.4/inotify.cma inotify.cmi globals.ml fdwatcher.ml dirwatcher.ml directfifowatcher.ml frontend.ml backend.ml main.ml + ocamlc -g str.cma unix.cma ocaml_inotify-0.4/inotify.cma globals.cmo fdwatcher.cmo dirwatcher.cmo directfifowatcher.cmo frontend.cmo backend.cmo str.cma conffile.cmo main.cmo -o vsys.b -vsys.b: ocaml_inotify-0.4/inotify.cma inotify.cmi globals.ml fdwatcher.ml dirwatcher.ml fifowatcher.ml frontend.ml backend.ml main.ml - ocamlc -g str.cma unix.cma ocaml_inotify-0.4/inotify.cma globals.cmo fdwatcher.cmo dirwatcher.cmo fifowatcher.cmo frontend.cmo backend.cmo str.cma conffile.cmo main.cmo -o vsys.b +factory-exec/%: factory/% + make -C factory/ + cp -fR factory/ factory-exec -install: vsys +install: vsys factory cp vsys $(INSTALL_DIR)/usr/bin cp vsys-initscript $(INSTALL_DIR)/etc/init.d/vsys + cp -fR factory/ factory-exec/ dep: ocamldep *.ml > .dep