commit 67262266aef2263500deb53b5acc8e4be28905f2 parent f550f2120dcd50b49b12cbe5d36c3577beafc768 Author: William Casarin <jb55@jb55.com> Date: Fri, 30 Oct 2020 15:28:25 -0700 make: clean build output Signed-off-by: William Casarin <jb55@jb55.com> Diffstat:
M | Makefile | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile @@ -5,8 +5,13 @@ OBJS = io.o parse.o cursor.o describe.o serve.o client.o net.o varint.o util.o all: protoverse libprotoverse.a +%.o: %.c %.h + @echo "cc $<" + @$(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $< + protoverse: protoverse.c $(OBJS) - $(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@ + @echo "ld $@" + @$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@ libprotoverse.a: $(OBJS) ar rcs $@ $^