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