![zik.saleeba](/assets/img/avatar_default.png)
Made C library able to access new math library. UNIX compile defaults to using new math library. Changed name of new math library to math.library.c Added defines for new math library. Renamed new soft floating point library to softfloat_library.c git-svn-id: http://picoc.googlecode.com/svn/trunk@304 21eae674-98b7-11dd-bd71-f92a316d2d60
27 lines
615 B
Makefile
27 lines
615 B
Makefile
CC=gcc
|
|
CFLAGS=-Wall -g -DUNIX_HOST #-DDEBUG_EXPRESSIONS #-DDEBUG_LEXER
|
|
LIBS=#-lm
|
|
|
|
TARGET = picoc
|
|
SRCS = picoc.c table.c lex.c parse.c expression.c heap.c type.c variable.c clibrary.c library_unix.c platform.c platform_unix.c math_library.c
|
|
OBJS := $(SRCS:%.c=%.o)
|
|
|
|
all: depend $(TARGET)
|
|
|
|
$(TARGET): $(OBJS)
|
|
$(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
|
|
|
|
test: all
|
|
(cd tests; make test)
|
|
|
|
clean:
|
|
rm -f $(TARGET) $(OBJS) *~
|
|
|
|
count:
|
|
cat picoc.h picoc.c table.c lex.c parse.c expression.c heap.c type.c variable.c | grep -v '^[ ]*/\*' | grep -v '^[ ]*$$' | wc
|
|
|
|
depend:
|
|
$(CC) -MM $(SRCS) >.depend
|
|
|
|
-include .depend
|