2008-10-12 20:53:28 -04:00
|
|
|
CC=gcc
|
2009-02-20 04:04:45 -05:00
|
|
|
CFLAGS=-Wall -g #-DDEBUG_LEXER #-DDEBUG_HEAP -DDEBUG_LEXER
|
2008-12-26 21:25:49 -05:00
|
|
|
LIBS=-lm
|
2008-10-12 20:53:28 -04:00
|
|
|
|
|
|
|
TARGET = picoc
|
2009-02-01 06:31:18 -05:00
|
|
|
SRCS = picoc.c table.c lex.c parse.c intrinsic.c heap.c type.c variable.c str.c
|
2008-10-12 20:53:28 -04:00
|
|
|
OBJS := $(SRCS:%.c=%.o)
|
|
|
|
|
|
|
|
all: $(TARGET)
|
|
|
|
|
|
|
|
$(TARGET): $(OBJS)
|
2008-12-26 21:25:49 -05:00
|
|
|
$(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
|
2008-10-12 20:53:28 -04:00
|
|
|
|
2009-01-03 23:08:49 -05:00
|
|
|
test: picoc
|
2009-02-15 01:16:54 -05:00
|
|
|
(cd tests; make test)
|
2009-01-03 23:08:49 -05:00
|
|
|
|
2008-10-12 20:53:28 -04:00
|
|
|
clean:
|
|
|
|
rm -f $(TARGET) $(OBJS) *~
|
|
|
|
|
|
|
|
count:
|
|
|
|
wc $(SRCS) picoc.h
|
|
|
|
|
|
|
|
depend:
|
|
|
|
$(CC) -MM $(SRCS) >.depend
|
|
|
|
|
|
|
|
-include .depend
|