|
|
1.1.1.2 ! root 1: # Makefile for GNU binary-file utilities ! 2: # select a set of CFLAGS and PROGS, below, depending on the system type ! 3: 1.1 root 4: GNUCC = gcc -O 1.1.1.2 ! root 5: ! 6: # for BSD systems 1.1 root 7: CFLAGS = -g 1.1.1.2 ! root 8: # Don't add robotussin; it won't compile on BSD or GNU systems. ! 9: # objdump also won't compile on most systems (trouble with N_DATADDR). ! 10: PROGS = gprof ld size nm strip ar ranlib ! 11: ! 12: # for USG systems using COFF_ENCAPSULATE ! 13: # also, you will want to make the target libc.a (but it takes a long time) ! 14: # Note that you should leave a copy of `ar' in this directory ! 15: # after you install it, since `ranlib' will try to run it from here. ! 16: #CFLAGS = -g -DUSG -DCOFF_ENCAPSULATE -DPORTAR -DNON_NATIVE -Dnounderscore ! 17: #PROGS = ld size nm strip ar robotussin objdump ranlib ! 18: #LIBS = -lPW 1.1 root 19: 1.1.1.2 ! root 20: all: $(PROGS) 1.1 root 21: 22: ld: ld.o 1.1.1.2 ! root 23: # LIBS is used here since ld needs to use alloca. ! 24: # Alternatively, compile it with GNU C--then the compiler handles alloca. ! 25: $(CC) -o ld ld.o $(LIBS) 1.1 root 26: 27: size: size.o 28: $(CC) -o size size.o 29: 30: nm: nm.o 31: $(CC) -o nm nm.o 32: 33: strip: strip.o 34: $(CC) -o strip strip.o 35: 36: ar: ar.o 37: $(CC) -o ar ar.o 38: 39: gprof: gprof.o 1.1.1.2 ! root 40: $(GNUCC) -o gprof gprof.o 1.1 root 41: gprof.o: gprof.c gmon.h 42: $(GNUCC) -c $(CFLAGS) gprof.c 1.1.1.2 ! root 43: ! 44: ranlib: ranlib.o ! 45: $(CC) -o ranlib ranlib.o ! 46: ranlib.o: ranlib.c ! 47: $(CC) -c -g -DAR_PROG=\"`pwd`/ar\" ranlib.c ! 48: ! 49: # Robotussin is NOT part of `all'. ! 50: robotussin: robotussin.o ! 51: $(CC) -o robotussin robotussin.o ! 52: ! 53: libc.a: robotussin libconvert ! 54: libconvert ! 55: rm -rf tmp ! 56: ! 57: clean: ! 58: -rm -f *.o core ! 59: -rm -f gprof ar nm size strip ld robotussin objdump ranlib ! 60: ! 61: dist: ! 62: -rm -rf binutils ! 63: mkdir binutils ! 64: -ln * binutils ! 65: (cd binutils; rm -f GNUmakefile *~ "#*" log* binutils.tar*; make clean) ! 66: tar cof binutils.tar binutils ! 67: compress < binutils.tar > binutils.tar.Z ! 68: rm -rf binutils
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.