use wildcard to enumerate all c files under src dir

This commit is contained in:
Yuichi Nishiwaki 2013-10-20 20:57:33 +09:00
parent bb3c8ebf0d
commit d5bb5fb68b
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
CC=gcc
SRCS = $(wildcard src/*.c)
all: build run
@ -11,7 +12,7 @@ build-lib:
cd src; \
yacc -d parse.y; \
lex scan.l
$(CC) -Wall -shared -o lib/libpicrin.so -I./include -lreadline src/state.c src/gc.c src/pair.c src/port.c src/symbol.c src/value.c src/y.tab.c src/lex.yy.c src/bool.c src/vm.c src/init.c src/number.c src/time.c src/codegen.c src/error.c
$(CC) -Wall -shared -o lib/libpicrin.so -I./include -lreadline $(SRCS)
clean:
rm -f src/y.tab.c src/y.tab.h src/lex.yy.c