aboutgitcodelistschat:MatrixIRC
path: root/Makefile
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-03-24 16:08:46 +0100
committerAlice Frosi <afrosi@redhat.com>2023-03-24 16:08:46 +0100
commite6562db0423e6019154baf05beb02ff3da02f3bb (patch)
tree07c17ea7d3c193c7cdf6b591422a1e6b7ba22a99 /Makefile
parent2e4cab1ff7c9d8db278427d9dca6ccb62619ca18 (diff)
downloadseitan-e6562db0423e6019154baf05beb02ff3da02f3bb.tar
seitan-e6562db0423e6019154baf05beb02ff3da02f3bb.tar.gz
seitan-e6562db0423e6019154baf05beb02ff3da02f3bb.tar.bz2
seitan-e6562db0423e6019154baf05beb02ff3da02f3bb.tar.lz
seitan-e6562db0423e6019154baf05beb02ff3da02f3bb.tar.xz
seitan-e6562db0423e6019154baf05beb02ff3da02f3bb.tar.zst
seitan-e6562db0423e6019154baf05beb02ff3da02f3bb.zip
Re-arrange repository structure
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 16 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 10d1606..ad72102 100644
--- a/Makefile
+++ b/Makefile
@@ -7,28 +7,35 @@
DIR := $(shell pwd)
OUTDIR ?= $(DIR)/
-
export OUTDIR
+COMMON_DIR := $(DIR)/common
+BIN := $(OUTDIR)seitan
+SRCS := seitan.c $(COMMON_DIR)/common.c operations.c
+HEADERS := $(COMMON_DIR)/common.h $(COMMON_DIR)/gluten.h operations.h
+
+CFLAGS += -DTMP_DATA_SIZE=1000
+CFLAGS += -Wall -Wextra -pedantic -I$(COMMON_DIR)
+
all: cooker eater seitan
cooker:
- $(MAKE) -C src/cooker
+ $(MAKE) -C seitan-cooker
eater:
- $(MAKE) -C src/eater
+ $(MAKE) -C seitan-eater
seitan:
- $(MAKE) -C src/seitan
+ $(CC) $(CFLAGS) -o $(BIN) $(SRCS)
debug:
- $(MAKE) -C src/debug
+ $(MAKE) -C debug
clean:
- $(MAKE) -C src/cooker clean
- $(MAKE) -C src/seitan clean
- $(MAKE) -C src/eater clean
- $(MAKE) -C src/debug clean
+ rm -f $(BIN)
+ $(MAKE) -C cooker clean
+ $(MAKE) -C eater clean
+ $(MAKE) -C debug clean
numbers.h:
./scripts/nr_syscalls.sh