PR#4243: make .c.p.o rule thread-safe

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10921 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Damien Doligez 2011-01-06 14:23:20 +00:00
parent f7a5e69ad5
commit fa73e25120
4 changed files with 14 additions and 16 deletions

View File

@ -1,3 +1,6 @@
// svn propset -F .cvsignore svn:ignore .
*.p.c
*.d.c
libasmrun.a
libasmrunp.a
main.c

View File

@ -164,16 +164,12 @@ clean::
$(ASPP) -DSYS_$(SYSTEM) $(ASPPPROFFLAGS) -o $*.p.o $*.S
.c.d.o:
@ if test -f $*.o; then mv $*.o $*.f.o; else :; fi
$(CC) -c $(DFLAGS) $<
mv $*.o $*.d.o
@ if test -f $*.f.o; then mv $*.f.o $*.o; else :; fi
ln -s -f $*.c $*.d.c
$(CC) -c $(DFLAGS) $*.d.c
.c.p.o:
@ if test -f $*.o; then mv $*.o $*.f.o; else :; fi
$(CC) -c $(PFLAGS) $<
mv $*.o $*.p.o
@ if test -f $*.f.o; then mv $*.f.o $*.o; else :; fi
ln -s -f $*.c $*.p.c
$(CC) -c $(PFLAGS) $*.p.c
.s.o:
$(ASPP) -DSYS_$(SYSTEM) -o $*.o $*.s

View File

@ -1,3 +1,4 @@
// svn propset -F .cvsignore svn:ignore .
jumptbl.h
primitives
prims.c
@ -18,3 +19,5 @@ interp.a.lst
*.so
*.a
.depend.nt
*.d.c
*.pic.c

View File

@ -57,16 +57,12 @@ clean::
.SUFFIXES: .d.o .pic.o
.c.d.o:
@ if test -f $*.o; then mv $*.o $*.f.o; else :; fi
$(CC) -c $(DFLAGS) $<
mv $*.o $*.d.o
@ if test -f $*.f.o; then mv $*.f.o $*.o; else :; fi
ln -s -f $*.c $*.d.c
$(CC) -c $(DFLAGS) $*.d.c
.c.pic.o:
@ if test -f $*.o; then mv $*.o $*.f.o; else :; fi
$(CC) -c $(CFLAGS) $(SHAREDCCCOMPOPTS) $<
mv $*.o $*.pic.o
@ if test -f $*.f.o; then mv $*.f.o $*.o; else :; fi
ln -s -f $*.c $*.pic.c
$(CC) -c $(CFLAGS) $(SHAREDCCCOMPOPTS) $*.pic.c
depend : prims.c opnames.h jumptbl.h version.h
-gcc -MM $(BYTECCCOMPOPTS) *.c > .depend