# rpmdepsize Makefile.am # (C) Copyright 2009 Red Hat Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # Written by Richard W.M. Jones ACLOCAL_AMFLAGS = -I m4 MLFILES = rpmdepsize_about.ml rpmdepsize_errors.ml rpmdepsize.ml EXTRA_DIST = \ $(MLFILES) rpmdepsize_about.ml.in \ rpmdepsize.spec rpmdepsize.spec.in CLEANFILES = rpmdepsize *.annot *.cmi *.cmo *.cmx *.o *~ bin_SCRIPTS = rpmdepsize OCAMLFLAGS = \ -dtypes \ -package lablgtk2,sexplib,unix,extlib,sexplib.syntax \ -syntax camlp4o OCAMLCLIBS = -linkpkg gtkInit.cmo OCAMLOPTLIBS = -linkpkg gtkInit.cmx if OCAML_BYTE_COMPILER rpmdepsize: $(MLFILES:.ml=.cmo) $(OCAMLFIND) ocamlc $(OCAMLFLAGS) $(OCAMLCLIBS) $^ -o $@ else rpmdepsize: $(MLFILES:.ml=.cmx) $(OCAMLFIND) ocamlopt $(OCAMLFLAGS) $(OCAMLOPTLIBS) $^ -o $@ endif .mli.cmi: $(OCAMLFIND) ocamlc $(OCAMLFLAGS) -c $< .ml.cmo: $(OCAMLFIND) ocamlc $(OCAMLFLAGS) -c $< .ml.cmx: $(OCAMLFIND) ocamlopt $(OCAMLFLAGS) -c $<