From bf5ef3fd64367247d4973fe8f6da2563da946c65 Mon Sep 17 00:00:00 2001 From: Mikael Pettersson Date: Sat, 27 Jul 2013 10:09:59 +0000 Subject: [PATCH] lib: add Makefile --- lib/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lib/Makefile diff --git a/lib/Makefile b/lib/Makefile new file mode 100644 index 0000000..1842cf2 --- /dev/null +++ b/lib/Makefile @@ -0,0 +1,15 @@ +CC=gcc +CFLAGS=-O2 -g -Wall +CPPFLAGS=-I../include + +LIBOBJS=pdp10-elf36.o pdp10-extint.o pdp10-opcodes.o pdp10-stdio.o + +all: $(LIBOBJS) + +pdp10-elf36.o: pdp10-elf36.c ../include/pdp10-elf36.h ../include/pdp10-extint.h ../include/pdp10-stdint.h ../include/pdp10-stdio.h +pdp10-extint.o: pdp10-extint.c ../include/pdp10-extint.h ../include/pdp10-stdint.h +pdp10-opcode.o: pdp10-opcode.c ../include/pdp10-opcodes.h +pdp10-stdio.o: pdp10-stdio.c ../include/pdp10-stdio.h + +clean: + rm -f $(LIBOBJS) a.out core.*