50 lines
1.5 KiB
Makefile
50 lines
1.5 KiB
Makefile
|
#######################################################################
|
|||
|
# #
|
|||
|
# Camlp4 #
|
|||
|
# #
|
|||
|
# Damien Doligez, projet Para, INRIA Rocquencourt #
|
|||
|
# #
|
|||
|
# Copyright 1999 Institut National de Recherche en Informatique et #
|
|||
|
# en Automatique. Distributed only by permission. #
|
|||
|
# #
|
|||
|
#######################################################################
|
|||
|
|
|||
|
# $Id$
|
|||
|
|
|||
|
INCLUDES = -I "{OTOP}otherlibs:dynlink:"
|
|||
|
OCAMLCFLAGS = {INCLUDES}
|
|||
|
LINKFLAGS = {INCLUDES}
|
|||
|
|
|||
|
OBJS = odyl_config.cmo odyl_main.cmo
|
|||
|
|
|||
|
all <EFBFBD> odyl
|
|||
|
|
|||
|
odyl <EFBFBD> odyl.cma odyl.cmo
|
|||
|
{OCAMLC} odyl.cma odyl.cmo -o odyl
|
|||
|
|
|||
|
odyl.cma <EFBFBD> {OBJS}
|
|||
|
{OCAMLC} {LINKFLAGS} dynlink.cma {OBJS} -a -o odyl.cma
|
|||
|
|
|||
|
odyl_config.cmo <EFBFBD>
|
|||
|
echo 'let standard_library =' > odyl_config.ml
|
|||
|
echo ' try Sys.getenv "CAMLP4LIB" with' >> odyl_config.ml
|
|||
|
echo ' Not_found -> "'{P4LIBDIR}'"' >> odyl_config.ml
|
|||
|
{OCAMLC} {OCAMLCFLAGS} -c odyl_config.ml
|
|||
|
|
|||
|
clean <EFBFBD><EFBFBD>
|
|||
|
delete -i odyl_config.ml odyl
|
|||
|
|
|||
|
{dependrule}
|
|||
|
|
|||
|
promote <EFBFBD> $OutOfDate
|
|||
|
|
|||
|
compare <EFBFBD> $OutOfDate
|
|||
|
|
|||
|
install <EFBFBD>
|
|||
|
(newfolder "{P4LIBDIR}" || set status 0) <20> dev:null
|
|||
|
(newfolder "{BINDIR}" || set status 0) <20> dev:null
|
|||
|
duplicate -y odyl.cmo odyl.cma "{P4LIBDIR}"
|
|||
|
duplicate -y odyl "{BINDIR}"
|
|||
|
|
|||
|
{defrules}
|