You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
box-o-sand/lcthw/Makefile

25 lines
434 B

6 months ago
CFLAGS ?= -Wall -g
GDBRUN = gdb --batch --ex run --ex bt --ex q --args
BUILD_TARGETS = ex1 ex3 ex7 ex8 ex9 ex10
TEST_TARGETS = ex1 ex3 ex7 ex8 ex9
6 months ago
.PHONY: all
all: build test
6 months ago
.PHONY: clean
6 months ago
clean:
rm -f $(BUILD_TARGETS)
6 months ago
.PHONY: build
build: $(BUILD_TARGETS)
.PHONY: gtest
gtest:
@$(foreach bt,$(TEST_TARGETS),$(GDBRUN) ./$(bt) &&) \
6 months ago
echo ' gYAY'
.PHONY: test
6 months ago
test:
@$(foreach bt,$(TEST_TARGETS),./$(bt) &&) \
6 months ago
echo ' YAY'