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