commit d5670018f0e0321470994479616d25ecdd95e50a parent 69e0edd8305d4b58d660af691d8dfff5ae856cf3 Author: William Casarin <jb55@jb55.com> Date: Sat, 7 Nov 2020 10:27:11 -0800 move source to src subdir Diffstat:
M | Makefile | | | 8 | ++++---- |
R | client.c -> src/client.c | | | 0 | |
R | client.h -> src/client.h | | | 0 | |
R | cursor.c -> src/cursor.c | | | 0 | |
R | cursor.h -> src/cursor.h | | | 0 | |
R | describe.c -> src/describe.c | | | 0 | |
R | describe.h -> src/describe.h | | | 0 | |
R | io.c -> src/io.c | | | 0 | |
R | io.h -> src/io.h | | | 0 | |
R | net.c -> src/net.c | | | 0 | |
R | net.h -> src/net.h | | | 0 | |
R | parse.c -> src/parse.c | | | 0 | |
R | parse.h -> src/parse.h | | | 0 | |
R | protocol.h -> src/protocol.h | | | 0 | |
R | protoverse.c -> src/protoverse.c | | | 0 | |
R | serve.c -> src/serve.c | | | 0 | |
R | serve.h -> src/serve.h | | | 0 | |
R | test.c -> src/test.c | | | 0 | |
R | typedefs.h -> src/typedefs.h | | | 0 | |
R | util.c -> src/util.c | | | 0 | |
R | util.h -> src/util.h | | | 0 | |
R | varint.c -> src/varint.c | | | 0 | |
R | varint.h -> src/varint.h | | | 0 |
23 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,7 +1,7 @@ CFLAGS = -Wno-error=unused-function -O1 -g -std=c89 -Wall -Wextra -Werror -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -OBJS = io.o parse.o cursor.o describe.o serve.o client.o net.o varint.o util.o +OBJS = src/io.o src/parse.o src/cursor.o src/describe.o src/serve.o src/client.o src/net.o src/varint.o src/util.o all: protoverse libprotoverse.a @@ -9,7 +9,7 @@ all: protoverse libprotoverse.a @echo "cc $<" @$(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $< -protoverse: protoverse.c $(OBJS) +protoverse: src/protoverse.c $(OBJS) @echo "ld $@" @$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@ @@ -17,9 +17,9 @@ libprotoverse.a: $(OBJS) ar rcs $@ $^ clean: - rm -f protoverse *.o + rm -f protoverse test $(OBJS) -test: test.c $(OBJS) +test: src/test.c $(OBJS) $(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@ check: test diff --git a/client.c b/src/client.c diff --git a/client.h b/src/client.h diff --git a/cursor.c b/src/cursor.c diff --git a/cursor.h b/src/cursor.h diff --git a/describe.c b/src/describe.c diff --git a/describe.h b/src/describe.h diff --git a/io.c b/src/io.c diff --git a/io.h b/src/io.h diff --git a/net.c b/src/net.c diff --git a/net.h b/src/net.h diff --git a/parse.c b/src/parse.c diff --git a/parse.h b/src/parse.h diff --git a/protocol.h b/src/protocol.h diff --git a/protoverse.c b/src/protoverse.c diff --git a/serve.c b/src/serve.c diff --git a/serve.h b/src/serve.h diff --git a/test.c b/src/test.c diff --git a/typedefs.h b/src/typedefs.h diff --git a/util.c b/src/util.c diff --git a/util.h b/src/util.h diff --git a/varint.c b/src/varint.c diff --git a/varint.h b/src/varint.h