SOURCE=openssl-0.9.8g
TARGET=arm-linux
#TARGET=mipsel-linux-uclibc

.PHONY: all clean openSource install
all: openSource
clean:
	make -C $(SOURCE) clean


openSource: $(SOURCE)/.configured
	touch $(SOURCE)/Makefile
	make CC=$(TARGET)-gcc -C $(SOURCE)

$(SOURCE)/.configured:
	touch $(SOURCE)/.configured
	touch $(SOURCE)/Makefile

install: $(SOURCE)/.configured
	make -C $(SOURCE) -s install
