iris

small scheme interpreter
git clone git://git.2f30.org/iris.git
Log | Files | Refs | LICENSE

commit bec7e660f89cc3fe86466e3f1fdb2da516cfbf34
parent 4b6f5b43e5e70b0128e966790b142ab38b8cf4af
Author: sin <sin@2f30.org>
Date:   Fri May  9 14:26:00 +0100

Add Makefile

Diffstat:
Makefile | 23+++++++++++++++++++++++
1 file changed, 23 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile @@ -0,0 +1,23 @@ +BIN = iris +VER = 0.0 +SRC = lexer.c repl.c +OBJ = ${SRC:.c=.o} + +CC = gcc + +INCS = -I/usr/include +LIBS = -L/usr/lib + +CFLAGS += -Wall -Wextra -g ${INCS} +LDFLAGS += ${LIBS} + +$(BIN): ${OBJ} + ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJ} + +%.o: %.c + ${CC} ${CFLAGS} -c -o $@ $< + +clean: + rm -rf ${BIN} ${OBJ} *.core + +all: iris