diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,6 +1,11 @@ -all: +all: static @echo "Please choose either macosx, linux, or windows" +static: + gcc -o libirecovery.o -c src/libirecovery.c -g -I./include + ar rs libirecovery.a libirecovery.o + gcc -o irecovery src/irecovery.c -g -I./include -L. -lirecovery -lreadline -lusb-1.0 + linux: gcc -o libirecovery.o -c src/libirecovery.c -g -I./include -lreadline -fPIC gcc -o libirecovery.so libirecovery.o -g -shared -Wl,-soname,libirecovery.so -lusb-1.0 |