From 7c64c335919b377f45b2c4dbbb2735433c3f11f0 Mon Sep 17 00:00:00 2001 From: Mayur Nagekar Date: Sat, 26 Mar 2016 13:26:42 +0000 Subject: [PATCH] Fixed win32 make file along with m_unix --- crypto777/m_unix | 2 +- crypto777/make_android | 2 ++ crypto777/make_ios | 17 +++++++++++++++++ crypto777/make_unix | 18 ++++++++++++++++++ crypto777/make_win32 | 17 +++++++++++++++++ crypto777/make_win64 | 16 ++++++++++++++++ 6 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 crypto777/make_android create mode 100644 crypto777/make_ios create mode 100644 crypto777/make_unix create mode 100644 crypto777/make_win32 create mode 100644 crypto777/make_win64 diff --git a/crypto777/m_unix b/crypto777/m_unix index 26cb97edd..81891ae19 100755 --- a/crypto777/m_unix +++ b/crypto777/m_unix @@ -4,5 +4,5 @@ #include crypto777.sources #gcc -c -O2 $(CRYPTO777_SRCS) -gcc -c -O2 *.c jpeg/*.c jpeg/unix/*.c +gcc -c -O2 *.c jpeg/*.c jpeg/unix/*.c -I/usr/lib/x86_64-linux-gnu/curl rm -f ../agents/libcrypto777.a; ar rcu ../agents/libcrypto777.a *.o diff --git a/crypto777/make_android b/crypto777/make_android new file mode 100644 index 000000000..159c9fc6c --- /dev/null +++ b/crypto777/make_android @@ -0,0 +1,2 @@ +$CC -c -O2 *.c jpeg/*.c jpeg/unix/*.c +rm -f ../agents/libcrypto777.a; $AR rcu ../agents/libcrypto777.a *.o diff --git a/crypto777/make_ios b/crypto777/make_ios new file mode 100644 index 000000000..6db15ab35 --- /dev/null +++ b/crypto777/make_ios @@ -0,0 +1,17 @@ + +CC="$(xcrun --sdk iphoneos --find clang) -isysroot $(xcrun --sdk iphoneos --show-sdk-path) -arch armv7 -arch arm64 -arch armv7s -ONLY_ACTIVE_ARCH=YES" +AR="$(xcrun --sdk iphoneos --find ar)" + + +all: clean build + +build: + $CC -I /usr/local/opt/curl/include/ -c -O2 *.c jpeg/*.c jpeg/unix/*.c -I/usr/local/opt/ || (echo "\033[4m ERROR: Failed to compile ios \033[0m"; exit 1; ) + + rm -f ../agents/libcrypto777.a || true + $AR -rcs ../agents/libcrypto777.a *.o || (echo "\033[4m ERROR: Failed to create libcrypto777.a \033[0m"; exit 1; ) + + +clean: + rm -f ../agents/libcrypto777.a || true + diff --git a/crypto777/make_unix b/crypto777/make_unix new file mode 100644 index 000000000..fbc2b02be --- /dev/null +++ b/crypto777/make_unix @@ -0,0 +1,18 @@ + + + + + + +all: clean build + +build: + gcc -c -I/usr/include/curl -O2 *.c jpeg/*.c jpeg/unix/*.c || (echo -e "\033[4mERROR: Compilation failed for unix \033[0m"; exit 1; ) + rm -f ../agents/libcrypto777.a || true + ar rcu ../agents/libcrypto777.a *.o || (echo -e "\033[4mERROR: Failed creating libcrypto777.a for unix \033[0m"; exit 1; ) + +clean: + rm -f ../agents/libcrypto777.a || true + + + diff --git a/crypto777/make_win32 b/crypto777/make_win32 new file mode 100644 index 000000000..3413fbfe9 --- /dev/null +++ b/crypto777/make_win32 @@ -0,0 +1,17 @@ +include crypto777.sources +include ../mingw.path + +all: clean build + +build : + @echo "\nBuilding crypto777....." + $(TOOL_DIR)/$(MINGW)-gcc -w -D __MINGW -c $(CRYPTO777_SRCS) -I/usr/mingw32/include -I/usr/mingw32/include/sys -I/home/user/SuperNET/includes/openssl -I/home/user/SuperNET/crypto777 || (echo -e "\033[4mERROR: Compilation failed for win32 \033[0m"; exit 1; ) + + $(TOOL_DIR)/$(MINGW)-ar rcu ../agents/win32/libcrypto777.a *.o || (echo -e "\033[4mERROR: Failed to create libcrypto777.a\033[0m"; exit 1; ) + + + +clean : + @echo "\nCleaning files....." + rm -rf ../agents/win32/* || true + rm -f *.o || true diff --git a/crypto777/make_win64 b/crypto777/make_win64 new file mode 100644 index 000000000..34ac248fa --- /dev/null +++ b/crypto777/make_win64 @@ -0,0 +1,16 @@ +include crypto777.sources +include ../mingw.path64 + +all: clean build + +build: + @echo "\nBuilding crypto......" + $(TOOL_DIR)/$(MINGW)-gcc -w -D __MINGW -c $(CRYPTO777_SRCS) -I/usr/share/mingw-w64/include -I /usr/share/mingw-w64/include/sys -I/home/user/SuperNET/includes/openssl || (echo "\033[4m ERROR: Compilation failed for win64\033[0m"; exit 1; ) + + $(TOOL_DIR)/$(MINGW)-ar rcu ../agents/win64/libcrypto777.a *.o || (echo "\033[4mERROR: Failed to create libcrypto777.a\033[0m"; exit 1; ) + + +clean: + @echo "\nCleaning files......" + rm -f ../agents/win64/* || true + rm -f *.o || true