From 4c312678ffceeb0196f6f65ac5e7f819e056bcd8 Mon Sep 17 00:00:00 2001 From: Mikael Pettersson Date: Sat, 27 Jul 2013 10:23:40 +0000 Subject: [PATCH] readelf: add Makefile --- readelf/Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 readelf/Makefile diff --git a/readelf/Makefile b/readelf/Makefile new file mode 100644 index 0000000..6baa1c2 --- /dev/null +++ b/readelf/Makefile @@ -0,0 +1,14 @@ +CC=gcc +CFLAGS=-O2 -g -Wall +CPPFLAGS=-I../include + +READELFOBJS= readelf.o +LIBOBJS= ../lib/pdp10-elf36.o ../lib/pdp10-extint.o ../lib/pdp10-opcodes.o ../lib/pdp10-stdio.o + +readelf: $(READELFOBJS) $(LIBOBJS) + $(LINK.c) -o $@ $^ + +readelf.o: readelf.c ../include/pdp10-elf36.h ../include/pdp10-inttypes.h ../include/pdp10-opcodes.h ../include/pdp10-stdint.h ../include/pdp10-stdio.h + +clean: + rm -f $(READELFOBJS) readelf a.out core.*