Up through lcthw ex7

This commit is contained in:
2024-04-16 08:03:12 -04:00
parent 88133117ab
commit 7da7228911
4 changed files with 56 additions and 4 deletions

View File

@@ -1,16 +1,23 @@
CFLAGS ?= -Wall -g
GDBRUN = gdb --batch --ex run --ex bt --ex q --args
BUILD_TARGETS = ex1 ex3 ex7
.PHONY: all
all: build test
.PHONY: clean
clean:
rm -f ex1 ex3
rm -f $(BUILD_TARGETS)
.PHONY: build
build: ex1 ex3
build: $(BUILD_TARGETS)
.PHONY: gtest
gtest:
$(foreach bt,$(BUILD_TARGETS),$(GDBRUN) ./$(bt) &&) \
echo gyay
.PHONY: test
test:
./ex1
./ex3
$(foreach bt,$(BUILD_TARGETS),./$(bt) &&) \
echo yay