aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.extr
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2015-01-20 18:13:58 +0100
committerBernhard Schommer <bernhardschommer@gmail.com>2015-01-20 18:13:58 +0100
commit12803784f2753863985d1030999469c18e01e0f1 (patch)
tree8d57c675f5d9ac36539ece743710e82b6b06fa9c /Makefile.extr
parent07e482340977d1ee469eed81d0dae25d49e5abe8 (diff)
parentfe7da33a1992c3023a2e7e3f36c532ad10e3f236 (diff)
downloadcompcert-12803784f2753863985d1030999469c18e01e0f1.tar.gz
compcert-12803784f2753863985d1030999469c18e01e0f1.zip
Merge branch 'master' into dwarf
Diffstat (limited to 'Makefile.extr')
-rw-r--r--Makefile.extr8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.extr b/Makefile.extr
index 266be7c3..f5f7e7b4 100644
--- a/Makefile.extr
+++ b/Makefile.extr
@@ -90,11 +90,11 @@ CCOMP_OBJS:=$(shell $(MODORDER) driver/Driver.cmx)
ccomp: $(CCOMP_OBJS)
@echo "Linking $@"
- @$(OCAMLOPT) -o $@ $(LIBS) $+
+ @$(OCAMLOPT) -o $@ $(LIBS) $+ $(LINKERSPEC)
ccomp.byte: $(CCOMP_OBJS:.cmx=.cmo)
@echo "Linking $@"
- @$(OCAMLC) -o $@ $(LIBS:.cmxa=.cma) $+
+ @$(OCAMLC) -o $@ $(LIBS:.cmxa=.cma) $+ $(LINKERSPEC)
ifeq ($(CCHECKLINK),true)
@@ -156,6 +156,10 @@ clean:
rm -f $(GENERATED)
for d in $(ALLDIRS); do rm -f $$d/*.cm[iox] $$d/*.o; done
+cleansource:
+ rm -f $(EXECUTABLES)
+ for d in $(ALLDIRS); do rm -f $$d/*.cm[iox] $$d/*.o; done
+
# Generation of .depend.extr
depend: $(GENERATED)