summary refs log tree commit diff
path: root/src/Makefile
blob: b9c87df979c20f0f405ad64209f39dd3932588ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
BIN = qbe
OBJ = main.o util.o parse.o mem.o ssa.o copy.o live.o isel.o spill.o rega.o emit.o

CFLAGS = -Wall -Wextra -std=c99 -g -pedantic

$(BIN): $(OBJ)
	$(CC) $(LDFLAGS) $(OBJ) -o $@

$(OBJ): all.h

.PHONY: clean check syndoc
clean:
	rm -f $(BIN) $(OBJ)
check: $(BIN)
	test/go.sh all
syndoc:
	unison -auto doc ssh://qcar@h/data/d/ssa-doc