Hi, here is a quick improvement of the ocamlbuild target in the Makefile. It does three things: - define a separate variable for the ignored directories (very useful for people with their own branch, wishing to ignore more dirs), - reuse the compile and link flags declared in ocamlutil/Makefile.ocaml, - do not produce symlinks in the root directory.
Moreover, I think you could (and should) delete the _build directory from the svn, since it's basically useless and ocamlbuild will create it anyway. Of course, it's up to you. Regards, -- Gabriel Kerneis
diff -rN -u old-cil-patched/Makefile.in new-cil-patched/Makefile.in --- old-cil-patched/Makefile.in 2009-05-29 13:11:15.000000000 +0200 +++ new-cil-patched/Makefile.in 2009-05-29 13:11:15.000000000 +0200 @@ -108,8 +108,10 @@ include ocamlutil/Makefile.ocaml OBEXEEXT = $(EXEEXT:asm=native) +IGNOREDIRS = obj,doc,test ocamlbuild: - ocamlbuild -cflags -g -X obj -X doc -X test src/main$(OBEXEEXT) src/cil.$(CMXA) + ocamlbuild -cflags "$(COMPILE_FLAGS)" -lflags "$(LINK_FLAGS)" \ + -Xs $(IGNOREDIRS) -no-links src/main$(OBEXEEXT) src/cil.$(CMXA) cp _build/src/main$(OBEXEEXT) $(OBJDIR)/cilly$(EXE) cp _build/src/cil.$(CMXA) $(OBJDIR)/
------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________ CIL-users mailing list CIL-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cil-users