mirror of
https://github.com/samsonjs/lake.git
synced 2026-03-25 08:55:49 +00:00
organize project a little
This commit is contained in:
parent
45dcfe04a3
commit
65015374fa
31 changed files with 18 additions and 16 deletions
18
Makefile
18
Makefile
|
|
@ -1,15 +1,3 @@
|
|||
CC = gcc
|
||||
CFLAGS := -Wall -g $(shell pkg-config --cflags glib-2.0)
|
||||
LFLAGS := $(shell pkg-config --libs glib-2.0)
|
||||
OBJS = lake.o env.o int.o string.o sym.o parse.o bool.o list.o eval.o \
|
||||
symtable.o fn.o dlist.o primitive.o comment.o
|
||||
|
||||
all: lake
|
||||
|
||||
lake: $(OBJS)
|
||||
$(CC) $(CFLAGS) $(LFLAGS) $^ -o $@
|
||||
|
||||
# use touch to prevent errors in case files do not exist
|
||||
clean:
|
||||
@touch dummy.o lake
|
||||
rm -f *.o lake
|
||||
all:
|
||||
cd src && make clean && make
|
||||
mv src/lake ./lake
|
||||
|
|
|
|||
15
src/Makefile
Normal file
15
src/Makefile
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
CC = gcc
|
||||
CFLAGS := -Wall -g $(shell pkg-config --cflags glib-2.0)
|
||||
LFLAGS := $(shell pkg-config --libs glib-2.0)
|
||||
OBJS = lake.o env.o int.o string.o sym.o parse.o bool.o list.o eval.o \
|
||||
symtable.o fn.o dlist.o primitive.o comment.o
|
||||
|
||||
all: lake
|
||||
|
||||
lake: $(OBJS)
|
||||
$(CC) $(CFLAGS) $(LFLAGS) $^ -o $@
|
||||
|
||||
# use touch to prevent errors in case files do not exist
|
||||
clean:
|
||||
@touch dummy.o lake
|
||||
rm -f *.o lake
|
||||
|
|
@ -63,7 +63,6 @@ static LakeVal *prim_not(LakeList *args)
|
|||
} \
|
||||
} while (0)
|
||||
|
||||
|
||||
static LakeVal *prim_add(LakeList *args)
|
||||
{
|
||||
int result = 0;
|
||||
Loading…
Reference in a new issue