123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- GNUCC = gcc -O
- CFLAGS = -g
- PROGS = gprof ld size nm strip ar ranlib
- all: $(PROGS)
- ld: ld.o
- $(CC) -o ld ld.o $(LIBS)
- size: size.o
- $(CC) -o size size.o
- nm: nm.o
- $(CC) -o nm nm.o
- strip: strip.o
- $(CC) -o strip strip.o
- ar: ar.o
- $(CC) -o ar ar.o
- gprof: gprof.o
- $(GNUCC) -o gprof gprof.o
- gprof.o: gprof.c gmon.h
- $(GNUCC) -c $(CFLAGS) gprof.c
- ranlib: ranlib.o
- $(CC) -o ranlib ranlib.o
- ranlib.o: ranlib.c
- $(CC) -c -g -DAR_PROG=\"`pwd`/ar\" ranlib.c
- # Robotussin is NOT part of `all'.
- robotussin: robotussin.o
- $(CC) -o robotussin robotussin.o
- libc.a: robotussin libconvert
- libconvert
- rm -rf tmp
- clean:
- -rm -f *.o core
- -rm -f gprof ar nm size strip ld robotussin objdump ranlib
- dist:
- -rm -rf binutils
- mkdir binutils
- -ln * binutils
- (cd binutils; rm -f GNUmakefile *~ "#*" log* binutils.tar*; make clean)
- tar cof binutils.tar binutils
- compress < binutils.tar > binutils.tar.Z
- rm -rf binutils
|