aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-03-29 23:25:17 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-03-29 23:25:17 -0400
commitb8e878fa6ca53f214a2336fb7b5cc68e8b801845 (patch)
treee54a3e4ed407418e03734da0ceaf2a950ff6d732 /Makefile
parentf60b2add323ddb21675383b5461aa03e95755d2b (diff)
named binary properly in make
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 32e5f37..ed22e54 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,10 @@
.POSIX:
.PHONY: all clean
-OBJS = badroff.o sb.o
+OBJS = badroff.o sb.o buf.o
badroff: $(OBJS)
- $(CC) $(OBJS)
+ $(CC) $(OBJS) -o $@
badroff.o: badroff.c sb.h
sb.o: sb.c sb.h
+buf.o: buf.c buf.h
clean:
rm -f badroff $(OBJS)