diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..4b4578781 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ + + +win32: win32_crypto win32_iguana + +win64: win64_crypto win64_iguana + +#build for win32 environment +win32_crypto: + cd crypto777; make -f make_win32; cd .. + +win32_iguana: + cd iguana; make -f make_win32; cd .. + +#build for win64 environment +win64_crypto: + cd crypto777; make -f make_win64; cd .. + +win64_iguana: + cd iguana; make -f make_win64; cd .. + + 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..d9e99b05a --- /dev/null +++ b/crypto777/make_win32 @@ -0,0 +1,19 @@ +include crypto777.sources +include ../mingw.path + +all: clean build + +build : + mkdir -p ../agents/win32 || true + @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; ) + @echo "\Build Successful......" + + +clean : + @echo "\nCleaning files....." + rm -rf ../agents/win32/* || true + rm -f *.o || true + @echo "\nCleaned all files......" diff --git a/crypto777/make_win64 b/crypto777/make_win64 new file mode 100644 index 000000000..e9d12a629 --- /dev/null +++ b/crypto777/make_win64 @@ -0,0 +1,17 @@ +include crypto777.sources +include ../mingw.path64 + +all: clean build + +build: + mkdir -p ../agents/win64 || true + @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 diff --git a/iguana/make_win32 b/iguana/make_win32 new file mode 100644 index 000000000..e2209cb0e --- /dev/null +++ b/iguana/make_win32 @@ -0,0 +1,22 @@ +include iguana.sources +include mingw32 +include ../mingw.path + +all: clean check build + +build: + @echo "\nBuilding iguana......" + $(TOOL_DIR)/$(MINGW)-gcc -w -o ../agents/win32/iguana.exe -D __MINGW -D __CURL_CURLBUILD_H -D __CURL_CURL_H -D __CURL_EASY_H $(SOURCES) $(LIBS) || (echo -e "\033[4mERROR: Failed to build iguana\033[0m"; exit 1; ) + + + $(TOOL_DIR)/$(MINGW)-strip --strip-all ../agents/win32/iguana.exe + @echo "\nBuild successfully......" + +check: + @echo "\nChecking if libcrypto.a exists......" + test -s ../agents/win32/libcrypto777.a || (echo -e "\033[4mERROR: libcrypto777.a does not exists\033[0m"; exit 1; ) + +clean: + @echo "\nCleaning iguana......" + rm -rf ../agents/win32/iguana.* || true + @echo "\n Iguana Cleaned......" diff --git a/iguana/make_win64 b/iguana/make_win64 new file mode 100644 index 000000000..cd8d3f1fe --- /dev/null +++ b/iguana/make_win64 @@ -0,0 +1,18 @@ +include iguana.sources +include ../mingw.path64 + +LIBS := ../win/libsecp256k1.a ../win/libcrypto.a ../win/libssl.a ../win/libpthreadGC2_64.a ../agents/win64/libcrypto777.a ../win/libcurldll.a /usr/share/mingw-w64/lib/libws2_32.a /usr/share/mingw-w64/lib/libgdi32.a -I/usr/share/mingw-w64/include -I/usr/i386/include -I/usr/i386/include/curl -I/home/user/SuperNET/iguana -I/home/user/SuperNET/includes -I/home/user/SuperNET/crypto777 +include mingw64_inc + + +all: check build + +build: + $(TOOL_DIR)/$(MINGW)-gcc -w -o ../agents/win64/iguana.exe -D __MINGW -D __CURL_CURLBUILD_H -D __CURL_CURL_H -D __CURL_EASY_H $(SOURCES) $(LIBS) || (echo -e "\033[4mERROR: Failed to build iguana\033[0m"; exit 1; ) + + $(TOOL_DIR)/$(MINGW)-strip --strip-all ../agents/win64/iguana.exe || (echo -e "\033[4mERROR: Failed to strip iguana\033[0m"; exit 1; ) + + +check: + test -s ../agents/win64/libcrypto777.a || (echo -e "\033[4mERROR: libcrypto777.a does not exists\033[0m"; exit 1; ) + diff --git a/iguana/mingw32 b/iguana/mingw32 index 13d54571b..44431b990 100755 --- a/iguana/mingw32 +++ b/iguana/mingw32 @@ -1,4 +1,4 @@ include ../mingw.path -LIBS := ../win/libsecp256k1.a ../win/libcrypto.a ../win/libssl.a /usr/share/mingw-w64/lib/libpthread.a ../agents/win32/libcrypto777.a ../win/libcurldll.a /usr/i586-mingw32msvc/lib/libws2_32.a /usr/i586-mingw32msvc/lib/libgdi32.a -I/usr/mingw32/include -I/usr/i386/include/curl -I/home/user/SuperNET/iguana -I/home/user/SuperNET/includes -I/home/user/SuperNET/crypto777 +LIBS := ../win/libsecp256k1.a ../win/libcrypto.a ../win/libssl.a /usr/share/mingw-w64/lib/libpthread.a ../agents/win32/libcrypto777.a ../win/libcurldll.a /usr/i586-mingw32msvc/lib/libws2_32.a /usr/i586-mingw32msvc/lib/libgdi32.a -I/usr/mingw32/include -I/usr/i386/include -I/usr/i386/include/curl -I/home/user/SuperNET/iguana -I/home/user/SuperNET/includes -I/home/user/SuperNET/crypto777 include mingw