aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-07-04 12:38:15 +0200
committerAlice Frosi <afrosi@redhat.com>2023-07-04 12:38:15 +0200
commitaf46eee875d6a9cd4dc1b4de1329d9c181d6c67c (patch)
tree1fd58ed3c6212f2c841b0c333bcdcd989fb5c322
parent876a52e95a9d24a4b9fa37325d83bcb7d3c7b160 (diff)
downloadseitan-af46eee875d6a9cd4dc1b4de1329d9c181d6c67c.tar
seitan-af46eee875d6a9cd4dc1b4de1329d9c181d6c67c.tar.gz
seitan-af46eee875d6a9cd4dc1b4de1329d9c181d6c67c.tar.bz2
seitan-af46eee875d6a9cd4dc1b4de1329d9c181d6c67c.tar.lz
seitan-af46eee875d6a9cd4dc1b4de1329d9c181d6c67c.tar.xz
seitan-af46eee875d6a9cd4dc1b4de1329d9c181d6c67c.tar.zst
seitan-af46eee875d6a9cd4dc1b4de1329d9c181d6c67c.zip
Fix makefile for debug target
-rw-r--r--Makefile3
-rw-r--r--debug/Makefile7
2 files changed, 4 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index a2f146c..00406bc 100644
--- a/Makefile
+++ b/Makefile
@@ -29,12 +29,15 @@ cooker:
eater:
$(MAKE) -C eater
+.PHONY: seitan
seitan: $(SRCS) $(HEADERS)
$(CC) $(CFLAGS) -o $(BIN) $(SRCS)
+.PHONY: debug
debug:
$(MAKE) -C debug
+.PHONY: clean
clean:
rm -f $(BIN)
$(MAKE) -C cooker clean
diff --git a/debug/Makefile b/debug/Makefile
index b05fa92..340da62 100644
--- a/debug/Makefile
+++ b/debug/Makefile
@@ -9,7 +9,7 @@
SRCS := bpf_dbg.c disasm.c
HEADERS := disasm.h
-BIN := $(OUTDIR)bpf_dbg
+BIN := $(OUTDIR)/bpf_dbg
CFLAGS += -Wall -Wextra -pedantic
# TODO: remove this part together with the build binary
@@ -26,11 +26,6 @@ AUDIT_ARCH := $(shell echo $(AUDIT_ARCH) | sed 's/PPCLE/PPC64LE/')
bpf_dbg: $(SRCS) $(HEADERS)
$(CC) $(CFLAGS) -o $(BIN) $(SRCS)
-# TODO: remove when cooker is ready
-build: build.c ../cooker/filter.c ../cooker/filter.h ../common/numbers.h
- $(CC) $(CFLAGS) -I../common -I../cooker -DSEITAN_AUDIT_ARCH=AUDIT_ARCH_$(AUDIT_ARCH)\
- -o $(OUTDIR)build ../cooker/filter.c build.c
-
all: $(BIN)
clean: