Commit b8f6ba19 authored by Pietro Abate's avatar Pietro Abate

[r2005-03-24 16:12:55 by afrisch] Empty log message

Original author: afrisch
Date: 2005-03-24 16:12:55+00:00
parent 1a615135
DIRS= misc types compile runtime
DIRS= cduce/misc cduce/types cduce/compile cduce/runtime
SRC= \
misc/serialize.mli \
misc/serialize.ml \
misc/custom.ml \
misc/custom.ml \
misc/encodings.mli \
misc/encodings.ml \
misc/imap.mli \
misc/imap.ml \
misc/state.mli \
misc/state.ml \
misc/pool.mli \
misc/pool.ml \
misc/ns.mli \
misc/ns.ml \
types/sortedList.mli \
types/sortedList.ml \
types/atoms.mli \
types/atoms.ml \
misc/bool.mli \
misc/bool.ml \
types/chars.mli \
types/chars.ml \
types/ident.ml \
types/intervals.mli \
types/intervals.ml \
misc/inttbl.mli \
misc/inttbl.ml \
types/normal.mli \
types/normal.ml \
misc/pretty.mli \
misc/pretty.ml \
misc/stats.mli \
misc/stats.ml \
types/ident.ml \
types/types.mli \
types/types.ml \
types/sequence.mli \
types/sequence.ml \
types/sample.mli \
types/sample.ml \
types/patterns.mli \
types/patterns.ml \
compile/lambda.mli \
compile/lambda.ml \
runtime/value.mli \
runtime/value.ml \
runtime/run_dispatch.mli \
runtime/run_dispatch.ml \
runtime/serial.mli \
runtime/serial.ml
cduce/misc/serialize.mli \
cduce/misc/serialize.ml \
cduce/misc/custom.ml \
cduce/misc/custom.ml \
cduce/misc/encodings.mli \
cduce/misc/encodings.ml \
cduce/misc/imap.mli \
cduce/misc/imap.ml \
cduce/misc/state.mli \
cduce/misc/state.ml \
cduce/misc/pool.mli \
cduce/misc/pool.ml \
cduce/misc/ns.mli \
cduce/misc/ns.ml \
cduce/types/sortedList.mli \
cduce/types/sortedList.ml \
cduce/types/atoms.mli \
cduce/types/atoms.ml \
cduce/misc/bool.mli \
cduce/misc/bool.ml \
cduce/types/chars.mli \
cduce/types/chars.ml \
cduce/types/ident.ml \
cduce/types/intervals.mli \
cduce/types/intervals.ml \
cduce/misc/inttbl.mli \
cduce/misc/inttbl.ml \
cduce/types/normal.mli \
cduce/types/normal.ml \
cduce/misc/pretty.mli \
cduce/misc/pretty.ml \
cduce/misc/stats.mli \
cduce/misc/stats.ml \
cduce/types/ident.ml \
cduce/types/types.mli \
cduce/types/types.ml \
cduce/types/sequence.mli \
cduce/types/sequence.ml \
cduce/types/sample.mli \
cduce/types/sample.ml \
cduce/types/patterns.mli \
cduce/types/patterns.ml \
cduce/compile/lambda.mli \
cduce/compile/lambda.ml \
cduce/runtime/value.mli \
cduce/runtime/value.ml \
cduce/runtime/run_dispatch.mli \
cduce/runtime/run_dispatch.ml \
cduce/runtime/serial.mli \
cduce/runtime/serial.ml
ML_SRC=$(filter %.ml,$(SRC))
OBJECTS=$(ML_SRC:.ml=.$(EXT))
CDUCE_OBJECTS=$(ML_SRC:.ml=.cmo)
$(CDUCE_OBJECTS) $(CDUCE_OBJECTS:.cmo=.cmi): $(COMPILER)
CAMLC=ocamlc
CAMLOPT=ocamlopt
ifeq ($(NATIVE),true)
EXT=cmx
EXTA=cmxa
CAML=$(CAMLOPT)
else
EXT=cmo
EXTA=cma
CAML=$(CAMLC)
endif
cduce_types.cmo: $(OBJECTS)
$(CAML) -pack -o cduce_types.$(EXT) $(INCLUDES) $^
$(CAML) -a -o cduce_types.$(EXTA) $(INCLUDES) cduce_types.$(EXT)
cduce_types.cmo: $(CDUCE_OBJECTS)
$(CAMLC) $(COMPFLAGS) -pack -o cduce_types.cmo $(CDUCE_INCLUDES) $^
HIDE=@
INCLUDES = $(DIRS:%=-I %)
CDUCE_INCLUDES = $(DIRS:%=-I %)
types/intervals.$(EXT): types/intervals.ml cat1 types/intervals_int.ml
$(CAML) -c $(INCLUDES) -pp './cat1 types/intervals_int.ml' $<
cduce/types/intervals.cmo: cduce/types/intervals.ml cduce/cat1 cduce/types/intervals_int.ml
$(CAMLC) $(COMPFLAGS) -c $(CDUCE_INCLUDES) -pp 'cduce/cat1 cduce/types/intervals_int.ml' $<
types/intervals.cmi: types/intervals.mli cat1 types/intervals_int.mli
$(CAML) -c $(INCLUDES) -pp './cat1 types/intervals_int.mli' $<
cduce/types/intervals.cmi: cduce/types/intervals.mli cduce/cat1 cduce/types/intervals_int.mli
$(CAMLC) $(COMPFLAGS) -c $(CDUCE_INCLUDES) -pp 'cduce/cat1 cduce/types/intervals_int.mli' $<
misc/stats.$(EXT): misc/stats.ml
$(CAML) -c $(INCLUDES) -pp 'sed s/Unix\\.gettimeofday\(\)/0./' $<
cduce/misc/stats.cmo: cduce/misc/stats.ml
$(CAMLC) $(COMPFLAGS) -c $(CDUCE_INCLUDES) -pp 'sed s/Unix\\.gettimeofday\(\)/0./' $<
cat1:
echo "cat \$$1" > cat1
cduce/cat1:
echo "cat \$$1" > cduce/cat1
chmod +x cat1
.SUFFIXES: .ml .mli .cmo .cmi .cmx
.ml.cmo:
@echo "Build $@"
$(HIDE)$(CAMLC) -c $(INCLUDES) $<
$(CAMLC) $(COMPFLAGS) -c $(CDUCE_INCLUDES) $<
.ml.cmx:
@echo "Build $@"
$(HIDE)$(CAMLOPT) -c $(INCLUDES) $<
$(CAMLOPT) -c $(CDUCE_INCLUDES) $<
.mli.cmi:
@echo "Build $@"
$(HIDE)$(CAMLC) -c $(INCLUDES) $<
$(CAMLC) $(COMPFLAGS) -c $(CDUCE_INCLUDES) $<
.PHONY: compute_depend
compute_depend:
ocamldep $(INCLUDES) $(SRC) > types_depend
cduce/compute_depend:
ocamldep $(INCLUDES) $(SRC) > cduce/types_depend
include cduce/types_depend
include types_depend
clean:
for i in $(DIRS); do \
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment