blob: a2074a7200fd064f18ed174406aa41a6a844425c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
all:
@echo "Please choose either macosx, linux, or windows"
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
gcc -o irecovery src/irecovery.c -g -I./include -L. -lirecovery
macosx:
gcc -o libirecovery.dylib -c src/libirecovery.c -dynamiclib
gcc -o irecovery irecovery.c -I. -lirecovery
windows:
gcc -o libirecovery.dll -c src/libirecovery.c -I. -lusb-1.0 -lreadline -shared -fPIC
gcc -o irecovery irecovery.c -I. -lirecovery
clean:
rm -rf irecovery libirecovery.o libirecovery.so
|