X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=APIs%2FMakefile.am;h=ce6d4b305fc2a04b89c0d3728f2ebff971cfd9f1;hb=a3d742e544ffaff9fc0425cf727060be0d3a2631;hp=e7e9497e45a55e258fb3014ebfbc9f35626949bf;hpb=61548ff92ed4aa8c0451afc6c5c3c073abb777c3;p=wrappi.git diff --git a/APIs/Makefile.am b/APIs/Makefile.am index e7e9497..ce6d4b3 100644 --- a/APIs/Makefile.am +++ b/APIs/Makefile.am @@ -15,13 +15,12 @@ # 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-lib OCAMLOPTFLAGS = $(OCAMLCFLAGS) PP = -pp '$(CAMLP4O) ../generator-macros/pa_wrap.cmo -impl' -#API_FILES = $(wildcard *.api) -API_FILES = mkdir.api mknod.api +API_FILES = $(wildcard *.api) OBJECTS = $(patsubst %.api,%.cmo,$(API_FILES)) @@ -30,7 +29,7 @@ noinst_SCRIPTS = apis.cma apis.cma: $(OBJECTS) ../generator-lib/generator_lib.cma $(OCAMLFIND) ocamlc -linkall -a $(OBJECTS) -o apis.cma -%.cmo: %.api ../generator-lib/generator_lib.cma +%.cmo: %.api ../generator-lib/generator_lib.cma ../generator-macros/pa_wrap.cmo $(OCAMLFIND) ocamlc $(OCAMLOPTFLAGS) $(PP) -impl $< -c -o $@ CLEANFILES = *.cmi *.cmo *.cmx *.cma *.cmxa *~