aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile8
-rw-r--r--test/test.c (renamed from src/test.c)2
-rw-r--r--test/twbctf.c (renamed from src/twbctf.c)0
-rw-r--r--test/twbctf.h (renamed from src/twbctf.h)0
4 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index b1ff027..ee5600e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,16 @@
CFLAGS += -Weverything -O2 -std=c99 -ggdb
CC = clang
-SOURCES = src/twbctf.c src/sds.c
-HEADERS = src/twbctf.h src/sds.h
+SOURCES = test/twbctf.c src/sds.c
+HEADERS = test/twbctf.h src/sds.h
MANPAGES = docs/sds.3 docs/sdsnew.3 docs/sdsfree.3
all: sds-test $(MANPAGES)
-sds-test: $(SOURCES) $(HEADERS) src/test.c
+sds-test: $(SOURCES) $(HEADERS) test/test.c
@echo "==> Building sds-test"
- $(CC) $(CFLAGS) -o $@ $(SOURCES)
+ $(CC) $(CFLAGS) -Isrc -o $@ $(SOURCES)
docs/%.3: docs/%.rst
@echo "==> Building manpages"
diff --git a/src/test.c b/test/test.c
index 68839ad..bb3f64f 100644
--- a/src/test.c
+++ b/test/test.c
@@ -1,7 +1,7 @@
#include <stdbool.h>
#include <string.h>
+#include <sds.h>
-#include "sds.h"
#include "twbctf.h"
bool check_string_length (void);
diff --git a/src/twbctf.c b/test/twbctf.c
index af95c10..af95c10 100644
--- a/src/twbctf.c
+++ b/test/twbctf.c
diff --git a/src/twbctf.h b/test/twbctf.h
index c0789cc..c0789cc 100644
--- a/src/twbctf.h
+++ b/test/twbctf.h