box-o-sand/lcthw/Makefile
2024-04-16 08:03:12 -04:00

24 lines
378 B
Makefile

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 $(BUILD_TARGETS)
.PHONY: build
build: $(BUILD_TARGETS)
.PHONY: gtest
gtest:
$(foreach bt,$(BUILD_TARGETS),$(GDBRUN) ./$(bt) &&) \
echo gyay
.PHONY: test
test:
$(foreach bt,$(BUILD_TARGETS),./$(bt) &&) \
echo yay