diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a2074a7 --- /dev/null +++ b/Makefile | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | all: | ||
| 2 | @echo "Please choose either macosx, linux, or windows" | ||
| 3 | |||
| 4 | linux: | ||
| 5 | gcc -o libirecovery.o -c src/libirecovery.c -g -I./include -lreadline -fPIC | ||
| 6 | gcc -o libirecovery.so libirecovery.o -g -shared -Wl,-soname,libirecovery.so -lusb-1.0 | ||
| 7 | gcc -o irecovery src/irecovery.c -g -I./include -L. -lirecovery | ||
| 8 | |||
| 9 | macosx: | ||
| 10 | gcc -o libirecovery.dylib -c src/libirecovery.c -dynamiclib | ||
| 11 | gcc -o irecovery irecovery.c -I. -lirecovery | ||
| 12 | |||
| 13 | windows: | ||
| 14 | gcc -o libirecovery.dll -c src/libirecovery.c -I. -lusb-1.0 -lreadline -shared -fPIC | ||
| 15 | gcc -o irecovery irecovery.c -I. -lirecovery | ||
| 16 | |||
| 17 | clean: | ||
| 18 | rm -rf irecovery libirecovery.o libirecovery.so | ||
| 19 | |||
| 20 | |||
| 21 | |||
