Makefile
上传用户:nthfjj
上传日期:2007-01-07
资源大小:37k
文件大小:1k
- OBJS= reclaim.o allochblk.o misc.o alloc.o mach_dep.o
- # add rt_allocobj.o for RT version
- SRCS= reclaim.c allochblk.c misc.c alloc.c mach_dep.c rt_allocobj.s mips_mach_dep.s
- CFLAGS= -O
- # Set SPECIALFLAGS to -q nodirect_code on Encore.
- SPECIALCFLAGS =
- all: gc.o test
- $(OBJS): runtime.h
- gc.a: $(OBJS)
- ar ru gc.a $(OBJS)
- ranlib gc.a
- gc.o: $(OBJS)
- -ld -r -o gc.o $(OBJS)
- # mach_dep.c doesn't like optimization
- # On a MIPS machine, move mips_mach_dep.s to mach_dep.s and remove
- # the following two lines from this Makefile
- # On an RT, it is a good idea to force mach_dep.c to be compiled with pcc.
- mach_dep.o: mach_dep.c
- cc -c ${SPECIALCFLAGS} mach_dep.c
- clean:
- rm -f test gc.o gc.a test.o cons.o $(OBJS)
- test.o: cons.h test.c
- cons.o: cons.h cons.c
- test: test.o cons.o gc.o
- cc -o test test.o cons.o gc.o
- # Some version of the RT ld command require that gc.o on the preceding lines
- # be changed to gc.a
- shar:
- makescript -o gc.shar README Makefile runtime.h ${SRCS} test.c cons.c cons.h