summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Joshua Hill2010-05-13 05:59:36 -0400
committerGravatar Joshua Hill2010-05-13 05:59:36 -0400
commita57e39d7180ae1c7ce28105fb0c735121dec6f0d (patch)
treef435bddb3658cb310cb9f5e57b20775f32ec26c7 /Makefile
parent2e8feabfe1ec82e75434663d5e3128e1769f34c5 (diff)
downloadlibirecovery-a57e39d7180ae1c7ce28105fb0c735121dec6f0d.tar.gz
libirecovery-a57e39d7180ae1c7ce28105fb0c735121dec6f0d.tar.bz2
Began work. Added basic Makefile and implemented irecv_init(), irecv_open(), irecv_close(), and irecv_exit()
Needs to be tested on MacOSX and Windows, and Makefile needs to be updated for these platforms.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
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 @@
+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
+
+
+