summaryrefslogtreecommitdiffstats
path: root/byterun
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez-inria.fr>2012-01-06 13:42:46 +0000
committerDamien Doligez <damien.doligez-inria.fr>2012-01-06 13:42:46 +0000
commitb932aaa4e6688e9bd266db987fbedfacba75c6ba (patch)
tree002b86935fb76e4081636b4ec5b71e3777b54f94 /byterun
parent1a4f7bd6ab6ce3df6996077fe8b0089c06461160 (diff)
robustify the production of debug and PIC object files
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11996 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun')
-rw-r--r--byterun/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/byterun/Makefile b/byterun/Makefile
index c8669710d..1c07a3095 100644
--- a/byterun/Makefile
+++ b/byterun/Makefile
@@ -53,17 +53,22 @@ install::
clean::
rm -f libcamlrun_shared.so
-.SUFFIXES: .d.o .pic.o
+.SUFFIXES: .d.c .d.o .pic.c .pic.o
-.c.d.o:
+.c.d.c:
ln -s -f $*.c $*.d.c
+
+.d.c.d.o:
$(CC) -c $(DFLAGS) $*.d.c
- rm $*.d.c
-.c.pic.o:
+.c.pic.c:
ln -s -f $*.c $*.pic.c
+
+.pic.c.pic.o:
$(CC) -c $(CFLAGS) $(SHAREDCCCOMPOPTS) $*.pic.c
- rm $*.pic.c
+
+clean::
+ rm -f *.pic.c *.d.c
depend : prims.c opnames.h jumptbl.h version.h
-gcc -MM $(BYTECCCOMPOPTS) *.c > .depend