From d5bb5fb68bb6ff4a86e6365e7201d0e43d116259 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Sun, 20 Oct 2013 20:57:33 +0900 Subject: [PATCH] use wildcard to enumerate all c files under src dir --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 64d12399..21dc042f 100644 --- a/Makefile +++ b/Makefile @@ -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