diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2011-07-26 14:48:42 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2011-07-26 14:48:42 +0400 |
commit | 7fd4efa1d0dbab63e6d9bddd1d72fa4aafc8ad52 (patch) | |
tree | f784c1f66c09df5e17aeb85cf5862b459d455ebd /PCR-Makefile | |
download | bdwgc-7fd4efa1d0dbab63e6d9bddd1d72fa4aafc8ad52.tar.gz |
gc4.1 tarball importgc4_1
Diffstat (limited to 'PCR-Makefile')
-rw-r--r-- | PCR-Makefile | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/PCR-Makefile b/PCR-Makefile new file mode 100644 index 00000000..637ceb7e --- /dev/null +++ b/PCR-Makefile @@ -0,0 +1,46 @@ +OBJS= alloc.o reclaim.o allchblk.o misc.o mach_dep.o os_dep.o mark_rts.o headers.o mark.o obj_map.o pcr_interface.o blacklst.o finalize.o new_hblk.o real_malloc.o dynamic_load.o dbg_mlc.o malloc.o stubborn.o + +CSRCS= reclaim.c allchblk.c misc.c alloc.c mach_dep.c os_dep.c mark_rts.c headers.c mark.c obj_map.c pcr_interface.c blacklst.c finalize.c new_hblk.c real_malloc.c dynamic_load.c debug_mlc.c malloc.c stubborn.c + +SHELL= /bin/sh + +# Fix to point to local pcr installation directory. +PCRDIR= /project/ppcr/dev +CC= gcc +CFLAGS= -g -DPCR -I$(PCRDIR) -I$(PCRDIR)/ansi -I$(PCRDIR)/posix + +# We assume that mach_dep.o has already been built by top level makefile. It doesn't +# care about pcr vs UNIX, and we don't want to repeat that cruft. + +default: gc.o + +all: gc.o test.o gcpcr + +gcpcr: gc.o test.o $(PCRDIR)/base/pcr.o $(PCRDIR)/base/PCR_BaseMain.o + $(CC) -o gcpcr $(PCRDIR)/base/pcr.o $(PCRDIR)/base/PCR_BaseMain.o gc.o test.o -ldl + +gc.o: $(OBJS) + -ld -r -o gc.o $(OBJS) + +# +# Dependency construction +# +# NOTE: the makefile must include "# DO NOT DELETE THIS LINE" after the +# last target. "make depend" will replace everything following that line +# by a newly-constructed list of dependencies. +# +depend: $(CSRCS) + rm -f makedep eddep ; \ + $(CC) -M $(CFLAGS) $(CSRCS) \ + | sed -e '/:$$/d' > makedep ; \ + echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep ; \ + echo '$$r makedep' >>eddep ; \ + echo 'w' >>eddep ; \ + cp PCR-Makefile PCR-Makefile.bak ; \ + ex - PCR-Makefile < eddep ; \ + rm -f eddep makedep + touch depend + +# DO NOT DELETE THIS LINE + + |