# 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
+OCAMLPACKAGES = -package unix,camlp4.lib
+
+OCAMLCFLAGS = \
+ -g -warn-error CDEFLMPSUVYZX \
+ -I ../generator-lib $(OCAMLPACKAGES)
OCAMLOPTFLAGS = $(OCAMLCFLAGS)
noinst_SCRIPTS = pa_wrap.cmo
pa_wrap.cmo: pa_wrap.ml ../generator-lib/generator_lib.cma
- $(OCAMLFIND) ocamlc -I +camlp4 -I ../generator-lib \
- dynlink.cma camlp4lib.cma generator_lib.cma \
+ $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) \
+ -linkpkg generator_lib.cma \
-pp $(CAMLP4OF) \
-c $< -o $@