add -g option to the build command line

This commit is contained in:
Yuichi Nishiwaki 2013-10-23 15:46:57 +09:00
parent 43e1d5b3df
commit 406775e8dc
1 changed files with 2 additions and 2 deletions

View File

@ -5,13 +5,13 @@ all: build run
build: build-lib build-main build: build-lib build-main
build-main: build-main:
$(CC) -Wall -o bin/picrin -I./include -L./lib -lpicrin -lreadline tools/main.c $(CC) -Wall -g -o bin/picrin -I./include -L./lib -lpicrin -lreadline tools/main.c
build-lib: 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 -I./extlib src/*.c $(CC) -Wall -g -shared -o lib/libpicrin.so -I./include -I./extlib src/*.c
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