use wildcard to enumerate all c files under src dir
This commit is contained in:
parent
bb3c8ebf0d
commit
d5bb5fb68b
3
Makefile
3
Makefile
|
@ -1,4 +1,5 @@
|
||||||
CC=gcc
|
CC=gcc
|
||||||
|
SRCS = $(wildcard src/*.c)
|
||||||
|
|
||||||
all: build run
|
all: build run
|
||||||
|
|
||||||
|
@ -11,7 +12,7 @@ build-lib:
|
||||||
cd src; \
|
cd src; \
|
||||||
yacc -d parse.y; \
|
yacc -d parse.y; \
|
||||||
lex scan.l
|
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:
|
clean:
|
||||||
rm -f src/y.tab.c src/y.tab.h src/lex.yy.c
|
rm -f src/y.tab.c src/y.tab.h src/lex.yy.c
|
||||||
|
|
Loading…
Reference in New Issue