organize project a little

This commit is contained in:
Sami Samhuri 2011-04-20 20:42:58 -07:00
parent 45dcfe04a3
commit 65015374fa
31 changed files with 18 additions and 16 deletions

View file

@ -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
View 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

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

@ -63,7 +63,6 @@ static LakeVal *prim_not(LakeList *args)
} \
} while (0)
static LakeVal *prim_add(LakeList *args)
{
int result = 0;

View file

View file