|
|
1.1 ! root 1: # ! 2: # Copyright (c) 1980 Regents of the University of California. ! 3: # All rights reserved. The Berkeley software License Agreement ! 4: # specifies the terms and conditions for redistribution. ! 5: # ! 6: # @(#)Makefile 5.4 (Berkeley) 9/5/85 ! 7: # ! 8: # crt0 Normal C run time startoff ! 9: # mcrt0 C run time start off for profiling, ``prof'' conventions ! 10: # gcrt0 C run time start off for profiling, ``gprof'' conventions ! 11: # ! 12: DESTDIR= ! 13: SRCS= crt0.c mon.c gmon.c ! 14: OBJS= crt0.o mcrt0.o gcrt0.o mon.o gmon.o ! 15: TAGSFILE=tags ! 16: ! 17: all: ${OBJS} ! 18: ! 19: install: ${OBJS} ! 20: mv crt0.o ${DESTDIR}/lib/crt0.o ! 21: mv mcrt0.o ${DESTDIR}/lib/mcrt0.o ! 22: mv gcrt0.o ${DESTDIR}/usr/lib/gcrt0.o ! 23: ! 24: crt0.o: crt0.c ! 25: cc -S ${DFLAGS} -DCRT0 crt0.c ! 26: /lib/cpp crt0.s > x.s ! 27: as -o x.o x.s ! 28: ld -x -r -o crt0.o x.o ! 29: rm -f x.s x.o crt0.s ! 30: ! 31: moncrt0.o: crt0.c ! 32: cc -S ${DFLAGS} -DMCRT0 crt0.c ! 33: /lib/cpp crt0.s > x.s ! 34: as -o x.o x.s ! 35: ld -x -r -o moncrt0.o x.o ! 36: rm -f x.s x.o crt0.s ! 37: ! 38: gcrt0.o: moncrt0.o gmon.o ! 39: ld -x -r -o gcrt0.o moncrt0.o gmon.o ! 40: ! 41: mcrt0.o: moncrt0.o mon.o ! 42: ld -x -r -o mcrt0.o moncrt0.o mon.o ! 43: ! 44: mon.o: mon.c mon.ex ! 45: cc -S ${DEFS} ${DFLAGS} mon.c ! 46: ex - mon.s < mon.ex ! 47: as -o x.o mon.s ! 48: ld -x -r -o mon.o x.o ! 49: rm -f x.o mon.s ! 50: ! 51: gmon.o: gmon.c gmon.h gmon.ex ! 52: cc -S ${DEFS} ${DFLAGS} gmon.c ! 53: ex - gmon.s < gmon.ex ! 54: as -o x.o gmon.s ! 55: ld -x -r -o gmon.o x.o ! 56: rm -f x.o gmon.s ! 57: ! 58: tags: ! 59: cwd=`pwd`; \ ! 60: for i in ${SRCS}; do \ ! 61: ctags -a -f ${TAGSFILE} $$cwd/$$i; \ ! 62: done ! 63: ! 64: clean: ! 65: rm -f ${OBJS} *.o *.s core errs tags Makefile.bak ! 66: ! 67: lint: crt0.c ! 68: lint crt0.c -DMCRT0 ! 69: lint crt0.c -DGCRT0 ! 70: lint crt0.c -DCRT0 ! 71: ! 72: depend: ! 73: for i in ${SRCS}; do \ ! 74: cc -M ${DEFS} ${DFLAGS} $$i | awk ' { if ($$1 != prev) \ ! 75: { if (rec != "") print rec; rec = $$0; prev = $$1; } \ ! 76: else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ ! 77: else rec = rec " " $$2 } } \ ! 78: END { print rec } ' >> makedep; done ! 79: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep ! 80: echo '$$r makedep' >>eddep ! 81: echo 'w' >>eddep ! 82: cp Makefile Makefile.bak ! 83: ed - Makefile < eddep ! 84: rm eddep makedep ! 85: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile ! 86: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile ! 87: echo '# see make depend above' >> Makefile ! 88: ! 89: # DO NOT DELETE THIS LINE -- make depend uses it ! 90: ! 91: crt0.o: crt0.c ! 92: mon.o: mon.c ! 93: gmon.o: gmon.c ./gmon.h ! 94: # DEPENDENCIES MUST END AT END OF FILE ! 95: # IF YOU PUT STUFF HERE IT WILL GO AWAY ! 96: # see make depend above
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.