first commit
This commit is contained in:
26
makefile
Normal file
26
makefile
Normal file
@@ -0,0 +1,26 @@
|
||||
NAME=lisp
|
||||
OFILES=\
|
||||
bltin.o\
|
||||
error.o\
|
||||
eval.o\
|
||||
main.o\
|
||||
gc.o\
|
||||
obj.o\
|
||||
str.o\
|
||||
parser.o
|
||||
|
||||
AS=$(CC) -c
|
||||
CFLAGS=-c -g -O2
|
||||
|
||||
all: $(NAME)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) $*.c
|
||||
|
||||
$(NAME): $(OFILES)
|
||||
$(CC) -o $(NAME) $(OFILES)
|
||||
|
||||
$(OFILES): dat.h fn.h
|
||||
|
||||
clean:
|
||||
rm -f $(NAME) $(OFILES)
|
||||
Reference in New Issue
Block a user