X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=APIs%2FMakefile.am;h=1025d62af9bb97a597255ae914b83db716824451;hb=b6192827520ee582359e769ac8af5e83335965a7;hp=b3869417bf760abc48e13a7e12fd6cf1d389249f;hpb=bb1329db94910f6739c839bee52177f1b3c4e695;p=wrappi.git diff --git a/APIs/Makefile.am b/APIs/Makefile.am index b386941..1025d62 100644 --- a/APIs/Makefile.am +++ b/APIs/Makefile.am @@ -15,25 +15,23 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -OCAMLCFLAGS = -g -warn-error CDEFLMPSUVYZX -I ../generator-lib +OCAMLCFLAGS = -g -warn-error CDEFLMPSUVYZX -I +camlp4 -I ../generator OCAMLOPTFLAGS = $(OCAMLCFLAGS) -PP = -pp '$(CAMLP4O) ../generator-macros/pa_wrap.cmo -impl' +PP = -pp '$(CAMLP4O) ../generator/pa_wrap.cmo -impl' -#API_FILES = $(wildcard *.api) -API_FILES = mkdir.api mknod.api +API_FILES = $(wildcard *.api) OBJECTS = $(patsubst %.api,%.cmo,$(API_FILES)) -noinst_SCRIPTS = apis.cma - -apis.cma: $(OBJECTS) ../generator-lib/generator_lib.cma +# Note this target is built by a recursive call from generator/Makefile.am. +apis.cma: $(OBJECTS) ../generator/generator_lib.cma $(OCAMLFIND) ocamlc -linkall -a $(OBJECTS) -o apis.cma -%.cmo: %.api ../generator-lib/generator_lib.cma +%.cmo: %.api ../generator/generator_lib.cma ../generator/pa_wrap.cmo $(OCAMLFIND) ocamlc $(OCAMLOPTFLAGS) $(PP) -impl $< -c -o $@ -CLEANFILES = *.cmi *.cmo *.cmx *~ +CLEANFILES = *.cmi *.cmo *.cmx *.cma *.cmxa *~ depend: .depend