aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-03-24 17:05:07 +0100
committerAlice Frosi <afrosi@redhat.com>2023-03-24 17:05:07 +0100
commit8e3df79803e42e12148bfc6d5df675859ba3e122 (patch)
treef19a6adc202c3214193e96d8236ab8997dc2679b
parent5d136eeda392f99b2224cd8cf9273bd8ae8debe1 (diff)
downloadseitan-8e3df79803e42e12148bfc6d5df675859ba3e122.tar
seitan-8e3df79803e42e12148bfc6d5df675859ba3e122.tar.gz
seitan-8e3df79803e42e12148bfc6d5df675859ba3e122.tar.bz2
seitan-8e3df79803e42e12148bfc6d5df675859ba3e122.tar.lz
seitan-8e3df79803e42e12148bfc6d5df675859ba3e122.tar.xz
seitan-8e3df79803e42e12148bfc6d5df675859ba3e122.tar.zst
seitan-8e3df79803e42e12148bfc6d5df675859ba3e122.zip
Move util.h and util.c in common
-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