#############################################################
# 
# A part of Regexp/OCaml module.
# 
# (c) 2002-2003 Yutaka Oiwa. All Rights Reserved.
# 
# This file is distributed under the terms of the Q Public
# License version 1.0.
# 
#############################################################

# $Id: Makefile,v 1.6 2003/03/19 18:03:50 oiwa Exp $

OCAMLMAKEFILE = ../OCamlMakefile

SOURCES   = once_construct.ml
RESULT    = pa_once
USE_CAMLP4 = 1

LIBINSTALL_FILES := ../common/declare_once.cmi ../common/declare_once.cmo \
		$(RESULT).cma $(RESULT).cmo $(RESULT).cmi

all: byte-code-library pack-byte-code

install:	libinstall
uninstall:	libuninstall

test: once_test.ppo once_test2.ppo

%.ppo: %.ml pa_once.cma
	$(CAMLP4) pa_o.cmo pr_o.cmo -I . $*.ml > $*.ppo

-include ../common/Makefile.common
-include $(OCAMLMAKEFILE)
