aboutsummaryrefslogtreecommitdiff
path: root/interpreter/Makefile
blob: 246dd037b57579e4ca4d3d53edeb545fcf418bc1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CFLAGS=-Wall -Werror -g

DEPS=lex.h syntax.h print.h parse.h log.h eval.h mem.h code.h
OBJ=fuspel.o lex.o syntax.o print.o parse.o log.o eval.o mem.o code.o
EXE=fuspel

.PHONY: all clean

all: $(EXE)

$(EXE): $(OBJ)
	$(CC) -o $@ $^ $(CFLAGS)

%.o: %.c $(DEPS)
	$(CC) -c -o $@ $< $(CFLAGS)

clean:
	$(RM) $(OBJ) $(EXE)