use simpler way

This commit is contained in:
Yuichi Nishiwaki 2013-10-20 21:06:53 +09:00
parent d5bb5fb68b
commit ce6233b8f7
1 changed files with 1 additions and 2 deletions

View File

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