2001-12-13 05:59:27 -08:00
|
|
|
# $Id$
|
2001-09-07 00:19:20 -07:00
|
|
|
|
|
|
|
include ../../config/Makefile
|
|
|
|
|
|
|
|
SHELL=/bin/sh
|
|
|
|
|
|
|
|
INCLUDES=-I $(OTOP)/otherlibs/dynlink
|
|
|
|
OCAMLCFLAGS=$(INCLUDES)
|
|
|
|
LINKFLAGS=$(INCLUDES)
|
|
|
|
|
|
|
|
OBJS=odyl_config.cmo odyl_main.cmo
|
|
|
|
|
|
|
|
all: odyl$(EXE)
|
|
|
|
|
|
|
|
opt: odyl.cmxa odyl.cmx
|
|
|
|
|
|
|
|
odyl$(EXE): odyl.cma odyl.cmo
|
|
|
|
$(OCAMLC) odyl.cma odyl.cmo -o odyl$(EXE)
|
|
|
|
|
|
|
|
odyl.cma: $(OBJS)
|
|
|
|
$(OCAMLC) $(LINKFLAGS) dynlink.cma $(OBJS) -a -o odyl.cma
|
|
|
|
|
|
|
|
odyl.cmxa: $(OBJS:.cmo=.cmx)
|
|
|
|
$(OCAMLOPT) $(LINKFLAGS) $(OBJS:.cmo=.cmx) -a -o odyl.cmxa
|
|
|
|
|
2001-09-10 04:03:15 -07:00
|
|
|
odyl_main.cmx: odyl_main.ml
|
|
|
|
$(CAMLP4_COMM) -nolib -DOPT -o odyl_main.ppo odyl_main.ml
|
|
|
|
$(OCAMLOPT) -c -impl odyl_main.ppo
|
|
|
|
rm -f odyl_main.ppo
|
2001-09-07 00:19:20 -07:00
|
|
|
|
2001-10-03 05:06:23 -07:00
|
|
|
odyl_config.ml:
|
2001-09-07 00:19:20 -07:00
|
|
|
echo "let standard_library =" > odyl_config.ml
|
|
|
|
echo " try Sys.getenv \"CAMLP4LIB\" with" >> odyl_config.ml
|
|
|
|
echo " Not_found -> \"$(LIBDIR)\"" >> odyl_config.ml
|
|
|
|
|
|
|
|
clean::
|
2001-10-03 05:06:23 -07:00
|
|
|
rm -f *.cm* *.pp[io] *.o *.bak .*.bak *.out *.opt *.a
|
2001-09-07 00:19:20 -07:00
|
|
|
rm -f odyl_config.ml odyl$(EXE)
|
|
|
|
|
|
|
|
depend:
|
|
|
|
cp .depend .depend.bak
|
|
|
|
> .depend
|
|
|
|
@for i in *.mli *.ml; do \
|
2001-09-08 01:50:35 -07:00
|
|
|
../tools/apply.sh pr_depend.cmo -- $$i >> .depend; \
|
2001-09-07 00:19:20 -07:00
|
|
|
done
|
|
|
|
|
|
|
|
promote:
|
|
|
|
|
|
|
|
compare:
|
|
|
|
|
|
|
|
install:
|
|
|
|
-$(MKDIR) $(LIBDIR) $(BINDIR)
|
|
|
|
cp odyl.cmo odyl.cma $(LIBDIR)
|
|
|
|
cp odyl$(EXE) $(BINDIR)/.
|
|
|
|
|
|
|
|
include .depend
|