aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar Tim Segers <tsegers@pm.me>2023-01-01 15:24:29 +0100
committerGravatar Tim Segers <tsegers@pm.me>2023-01-02 16:01:28 +0100
commitf4dbdb211c7e4c366c6ef268ba56eea4b06825c6 (patch)
tree32af2680a15a0335e5775edf716dd3956d607b2d
parenta427ec3ca15c6eb61a405020dc45aac32bc45ce8 (diff)
downloadopendeco-f4dbdb211c7e4c366c6ef268ba56eea4b06825c6.tar.gz
Change includes to be relative to top-level directory
-rw-r--r--Makefile2
-rw-r--r--src/opendeco-conf.c2
-rw-r--r--test/deco_test.c4
-rw-r--r--test/opendeco_test.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 6cfb8e6..4a815b0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
PREFIX = /usr/local
VERSION = \"$(shell git describe --tags --dirty)\"
-CFLAGS = --std=c99 -pedantic -Wall -Werror -Os -D_DEFAULT_SOURCE -DVERSION=${VERSION}
+CFLAGS = --std=c99 -pedantic -Wall -Werror -Os -I. -D_DEFAULT_SOURCE -DVERSION=${VERSION}
all: opendeco opendeco_test libopendeco.a
diff --git a/src/opendeco-conf.c b/src/opendeco-conf.c
index e6b957f..41922df 100644
--- a/src/opendeco-conf.c
+++ b/src/opendeco-conf.c
@@ -3,7 +3,7 @@
#include <wchar.h>
#include "opendeco-conf.h"
-#include "../toml/toml.h"
+#include "toml/toml.h"
int opendeco_conf_parse(const char *confpath, struct arguments *arguments)
{
diff --git a/test/deco_test.c b/test/deco_test.c
index ec48789..1f9ba9f 100644
--- a/test/deco_test.c
+++ b/test/deco_test.c
@@ -1,6 +1,6 @@
-#include "../minunit/minunit.h"
+#include "minunit/minunit.h"
-#include "../src/deco.h"
+#include "src/deco.h"
MU_TEST(test_bar_to_msw)
{
diff --git a/test/opendeco_test.c b/test/opendeco_test.c
index 70f3c67..3e4a980 100644
--- a/test/opendeco_test.c
+++ b/test/opendeco_test.c
@@ -1,4 +1,4 @@
-#include "../minunit/minunit.h"
+#include "minunit/minunit.h"
MU_TEST_SUITE(testsuite_deco);