diff --git a/Makefile b/Makefile index 45845cf4..36ec57c0 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,8 @@ CC=gcc -all: build-lib build-main run +all: build run + +build: build-lib build-main build-main: $(CC) -Wall -o bin/picrin -I./include -L./lib -lpicrin -lreadline etc/main.c diff --git a/README.md b/README.md index b8bab694..022b178a 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ https://github.com/wasabiz/picrin $ make build - built executable binary will be under bin/ directory. + built executable binary will be under bin/ directory and shared library `libpicrin.so` under lib/. - run