aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
-rw-r--r--common/util.c (renamed from seitan-cooker/util.c)0
-rw-r--r--common/util.h (renamed from seitan-cooker/util.h)0
-rw-r--r--seitan-cooker/Makefile7
3 files changed, 4 insertions, 3 deletions
diff --git a/seitan-cooker/util.c b/common/util.c
index a2ecce0..a2ecce0 100644
--- a/seitan-cooker/util.c
+++ b/common/util.c
diff --git a/seitan-cooker/util.h b/common/util.h
index 84dc3db..84dc3db 100644
--- a/seitan-cooker/util.h
+++ b/common/util.h
diff --git a/seitan-cooker/Makefile b/seitan-cooker/Makefile
index 8741879..241ad4b 100644
--- a/seitan-cooker/Makefile
+++ b/seitan-cooker/Makefile
@@ -7,12 +7,13 @@
# Copyright 2023 Red Hat GmbH
# Author: Stefano Brivio <sbrivio@redhat.com>
-SRCS := calls.c emit.c gluten.c main.c parse.c parson.c util.c calls/net.c
-HEADERS := calls.h cooker.h emit.h gluten.h parse.h parson.h util.h calls/net.h
+COMMON_DIR := ../common
+SRCS := calls.c emit.c gluten.c main.c parse.c parson.c $(COMMON_DIR)/util.c calls/net.c
+HEADERS := calls.h cooker.h emit.h gluten.h parse.h parson.h calls/net.h $(COMMON_DIR)/util.h
BIN := $(OUTDIR)cooker
cooker: $(SRCS) $(HEADERS)
- $(CC) -O0 -g -Wall -Wextra -pedantic -std=c99 -o $(BIN) $(SRCS)
+ $(CC) -O0 -g -Wall -Wextra -pedantic -std=c99 -I$(COMMON_DIR) -o $(BIN) $(SRCS)
all: cooker