1
0
Fork 0
lesson-lisp/Makefile

27 lines
306 B
Makefile
Raw Normal View History

2023-05-03 14:42:26 -04:00
all: lisp
CC = gcc
CFLAGS = -Wall -Wextra
2023-05-04 07:18:16 -04:00
OBJS = \
builtins.c.o \
ctype.c.o \
enums.c.o \
lexer.c.o \
main.c.o \
object.c.o \
parser.c.o \
tokens.c.o
2023-05-03 18:05:11 -04:00
run: lisp
./lisp
clean:
rm -f lisp $(OBJS)
2023-05-03 14:42:26 -04:00
lisp: $(OBJS)
$(CC) -o $@ $^ $(CFLAGS)
%.c.o: %.c
$(CC) -c $< -o $@ $(CFLAGS)