2008-10-12 20:53:28 -04:00
|
|
|
CC=gcc
|
|
|
|
CFLAGS=-Wall -g
|
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
|
|
|
|
(cd test; make test)
|
|
|
|
|
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
|