From a57e39d7180ae1c7ce28105fb0c735121dec6f0d Mon Sep 17 00:00:00 2001 From: Joshua Hill Date: Thu, 13 May 2010 05:59:36 -0400 Subject: 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. --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 + + + -- cgit v1.1-32-gdbae