diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9b15acc --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +CC ?= cc +CFLAGS ?= -O2 -g +CFLAGS += -std=c17 -Wall -Wextra -Wpedantic -Werror +BUILD ?= build +# Sibling checkouts: Pure runs the modules, aup builds them. +PURE ?= ../pure/prototypes/connections +AUP ?= ../aup + +PURE_SOURCES = $(PURE)/module.c $(PURE)/module-list.c $(PURE)/module-text.c $(PURE)/store-tree.c +SOURCES = src/screen.c src/draw.c src/width.c src/main.c + +.PHONY: all check +all: $(BUILD)/vega + +$(BUILD): + mkdir -p $@ + +$(BUILD)/vega: $(SOURCES) src/vega.h $(PURE_SOURCES) | $(BUILD) + $(CC) $(CPPFLAGS) $(CFLAGS) -I$(PURE) $(SOURCES) $(PURE_SOURCES) $(LDFLAGS) -lm $(LDLIBS) -o $@ + +check: $(BUILD)/vega + $(MAKE) -C $(AUP) build/aup + python3 tests/check.py --vega $(BUILD)/vega --aup $(AUP)/build/aup |
