blob: a75fab595467c5f5d096ecec0b58852b17594efb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
CC ?= cc
CFLAGS ?= -O2 -g
CFLAGS += -std=c17 -Wall -Wextra -Wpedantic -Werror
BUILD ?= build
# The Pure checkout that owns the module format; tests load every module with it.
PURE ?= ../pure
.PHONY: all check
all: $(BUILD)/aup
$(BUILD):
mkdir -p $@
# One part, the compiler (compiler/); tests/check.py checks it end to end on Pure.
$(BUILD)/aup: compiler/main.c compiler/compile.c compiler/aup.h | $(BUILD)
$(CC) $(CPPFLAGS) $(CFLAGS) compiler/main.c compiler/compile.c $(LDFLAGS) $(LDLIBS) -o $@
check: $(BUILD)/aup
$(MAKE) -C $(PURE) build/pure-run build/pure-edit-module build/pure-serve
$(MAKE) -C $(PURE)/prototypes/connections BUILD=build/tree STORE=store-tree.c build/tree/pure-edit
python3 tests/check.py --aup $(BUILD)/aup --pure-run $(PURE)/build/pure-run --pure $(PURE)
|