Makefile (293B)
1 BIN = iris 2 VER = 0.0 3 SRC = debug.c lexer.c parser.c repl.c sym.c util.c 4 OBJ = ${SRC:.c=.o} 5 6 CC = cc 7 8 CFLAGS = -Wall -Wextra -Wno-switch -g 9 LDFLAGS = 10 11 $(BIN): ${OBJ} 12 ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJ} 13 14 %.o: %.c 15 ${CC} ${CFLAGS} -c -o $@ $< 16 17 clean: 18 rm -rf ${BIN} ${OBJ} *.core 19 20 all: iris