Attention une mise à jour du serveur va être effectuée le vendredi 16 avril entre 12h et 12h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit 5da85398 authored by POGODALLA Sylvain's avatar POGODALLA Sylvain

Put executables at the top directory. Can compile native code binaries

parent 691e3e77
PHONY: config test
test:
$(MAKE) -C src $@
BINARIES=acgc acgc.opt acg acg.opt
test opt:
$(MAKE) -C src $@
for file in $(BINARIES); do find . -name "$$file" -exec cp {} . \; ; done
superclean clean:
......@@ -10,6 +12,7 @@ superclean clean:
$(MAKE) -C src $@
rm -rf *.log *~ autom4te.cache
find data/. -name "*~" -exec rm -f {} \;
-for file in $(BINARIES); do rm $$file ; done
......
PHONY: config test
test:
$(MAKE) -C src $@
BINARIES=acgc acgc.opt acg acg.opt
test opt:
$(MAKE) -C src $@
for file in $(BINARIES); do find . -name "$$file" -exec cp {} . \; ; done
superclean clean:
......@@ -10,6 +12,7 @@ superclean clean:
$(MAKE) -C src $@
rm -rf *.log *~ autom4te.cache
find data/. -name "*~" -exec rm -f {} \;
-for file in $(BINARIES); do rm $$file ; done
......
......@@ -5,9 +5,12 @@ SUBDIRS= utils logic grammars acg-data scripting lambda
test:
$(foreach dir,$(SUBDIRS),$(MAKE) -r -S -C $(dir) byte;)
opt:
$(foreach dir,$(SUBDIRS),$(MAKE) -r -S -C $(dir) opt;)
superclean clean:
rm -rf *~
rm -rf *~ *.log
$(foreach dir,$(SUBDIRS),$(MAKE) -r -S -C $(dir) $@;)
......@@ -21,6 +21,8 @@ CMX = $(ML:.ml=.cmx)
.PHONY : all byte opt clean $(PRELIMINARY) superclean
.PRECIOUS : $(DYP:%.dyp=%.ml %.mli) $(CAMLLEX:%.mll=%.ml)
PP = $(OCAMLPP)
EXE = $(EXE_SOURCES:%.ml=%)
......@@ -35,6 +37,7 @@ DYP_MLI=$(DYP:%.dyp=%.mli)
# Makes byte the default goal
byte : $(PRELIMINARY) $(LOCAL_CMO) $(EXE)
byte_mli : $(PRELIMINARY) $(LOCAL_MLI:%.mli=%.cmi)
opt : $(PRELIMINARY) $(LOCAL_CMX) $(EXEOPT)
ifdef EXE_SOURCES
......@@ -49,7 +52,7 @@ endif
../%.cmi : ../%.mli
$(foreach dir,$(PREVIOUS_DIRS),$(MAKE) -r -S -C $(dir) byte;)
$(foreach dir,$(PREVIOUS_DIRS),$(MAKE) -r -S -C $(dir) byte_mli;)
%.cmi : %.mli
ocamlc.opt $(PP) -c $(LIBDIR) $(LIBS) $(BYTEFLAGS) $<
......
......@@ -21,6 +21,8 @@ CMX = $(ML:.ml=.cmx)
.PHONY : all byte opt clean $(PRELIMINARY) superclean
.PRECIOUS : $(DYP:%.dyp=%.ml %.mli) $(CAMLLEX:%.mll=%.ml)
PP = $(OCAMLPP)
EXE = $(EXE_SOURCES:%.ml=%)
......@@ -35,6 +37,7 @@ DYP_MLI=$(DYP:%.dyp=%.mli)
# Makes byte the default goal
byte : $(PRELIMINARY) $(LOCAL_CMO) $(EXE)
byte_mli : $(PRELIMINARY) $(LOCAL_MLI:%.mli=%.cmi)
opt : $(PRELIMINARY) $(LOCAL_CMX) $(EXEOPT)
ifdef EXE_SOURCES
......@@ -49,7 +52,7 @@ endif
../%.cmi : ../%.mli
$(foreach dir,$(PREVIOUS_DIRS),$(MAKE) -r -S -C $(dir) byte;)
$(foreach dir,$(PREVIOUS_DIRS),$(MAKE) -r -S -C $(dir) byte_mli;)
%.cmi : %.mli
@OCAMLC@ $(PP) -c $(LIBDIR) $(LIBS) $(BYTEFLAGS) $<
......
......@@ -5,9 +5,12 @@ SUBDIRS= utils logic grammars acg-data scripting lambda
test:
$(foreach dir,$(SUBDIRS),$(MAKE) -r -S -C $(dir) byte;)
opt:
$(foreach dir,$(SUBDIRS),$(MAKE) -r -S -C $(dir) opt;)
superclean clean:
rm -rf *~
rm -rf *~ *.log
$(foreach dir,$(SUBDIRS),$(MAKE) -r -S -C $(dir) $@;)
......@@ -58,7 +58,7 @@ include ../Makefile.common
# ocamllex.opt $<
parser.ml: ../utils/utils.cmi acg_token.cmi syntactic_data_structures.cmi \
lexer.cmo error.cmi environment.cmi entry.cmi \
lexer.cmi error.cmi environment.cmi entry.cmi \
../logic/abstract_syntax.cmi
parser.cmo: ../utils/utils.cmi acg_token.cmi syntactic_data_structures.cmi \
......
......@@ -58,7 +58,7 @@ include ../Makefile.common
# @OCAMLLEX@ $<
parser.ml: ../utils/utils.cmi acg_token.cmi syntactic_data_structures.cmi \
lexer.cmo error.cmi environment.cmi entry.cmi \
lexer.cmi error.cmi environment.cmi entry.cmi \
../logic/abstract_syntax.cmi
parser.cmo: ../utils/utils.cmi acg_token.cmi syntactic_data_structures.cmi \
......
......@@ -40,7 +40,7 @@ EXE_SOURCES = acg.ml
include ../Makefile.common
script_parser.ml: scripting_errors.cmi script_lexer.cmo functions.cmi \
script_parser.ml: scripting_errors.cmi script_lexer.cmi functions.cmi \
../grammars/error.cmi ../grammars/environment.cmi \
../logic/abstract_syntax.cmi
......
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