Files
looper/makefile

34 lines
590 B
Makefile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Top-level Makefile delegates build/clean/test to subdirectories
SUBDIRS = engine client
.PHONY: all build clean test check format orchestrator $(SUBDIRS)
all: build orchestrator
build: $(SUBDIRS)
@echo "Build complete."
orchestrator: orchestrator.c
$(CC) -Wall -Wextra -std=c11 -o looper orchestrator.c
$(SUBDIRS):
$(MAKE) -C $@
test:
# $(MAKE) -C engine test
$(MAKE) -C client test
clean:
rm -f looper
@for dir in $(SUBDIRS); do \
echo "Cleaning $$dir..."; \
$(MAKE) -C $$dir clean; \
done
check:
$(MAKE) -C engine check
format:
$(MAKE) -C engine format