updating build for new repository structure
This commit is contained in:
parent
0c9010a117
commit
135492d18c
|
@ -5,9 +5,10 @@ SRCS = $(NAME).c builtins.c equal.c
|
||||||
OBJS = $(SRCS:%.c=%.o)
|
OBJS = $(SRCS:%.c=%.o)
|
||||||
DOBJS = $(SRCS:%.c=%.do)
|
DOBJS = $(SRCS:%.c=%.do)
|
||||||
EXENAME = $(NAME)
|
EXENAME = $(NAME)
|
||||||
LLT = llt/libllt.a
|
LLTDIR = ../llt
|
||||||
|
LLT = $(LLTDIR)/libllt.a
|
||||||
|
|
||||||
FLAGS = -Wall -Wextra -Wno-strict-aliasing -I./llt $(CFLAGS)
|
FLAGS = -Wall -Wextra -Wno-strict-aliasing -I$(LLTDIR) $(CFLAGS)
|
||||||
LIBS = $(LLT) -lm
|
LIBS = $(LLT) -lm
|
||||||
|
|
||||||
DEBUGFLAGS = -g -DDEBUG $(FLAGS)
|
DEBUGFLAGS = -g -DDEBUG $(FLAGS)
|
||||||
|
@ -27,7 +28,7 @@ flisp.o: flisp.c cvalues.c flisp.h print.c read.c
|
||||||
flisp.do: flisp.c cvalues.c flisp.h print.c read.c
|
flisp.do: flisp.c cvalues.c flisp.h print.c read.c
|
||||||
|
|
||||||
$(LLT):
|
$(LLT):
|
||||||
cd llt && make
|
cd $(LLTDIR) && make
|
||||||
|
|
||||||
debug: $(DOBJS) $(LIBS)
|
debug: $(DOBJS) $(LIBS)
|
||||||
$(CC) $(DEBUGFLAGS) $(DOBJS) -o $(EXENAME) $(LIBS)
|
$(CC) $(DEBUGFLAGS) $(DOBJS) -o $(EXENAME) $(LIBS)
|
||||||
|
|
Loading…
Reference in New Issue