X-Git-Url: https://www.kengrimes.com/gitweb/?p=henge%2Fwebcc.git;a=blobdiff_plain;f=src%2F.make%2Flibwolfssl.mk;h=d9b77e4fc3938550ff5ce2ac0fca5e95b3a68a5e;hp=ae1bcf2a26f09387b34efbbbaf4e139a829b5286;hb=745c7147f006a757c4f4387604c6525ef3768abc;hpb=fb95ec1cd9d2d15a5580f2e96f0a3c129f9292bb diff --git a/src/.make/libwolfssl.mk b/src/.make/libwolfssl.mk index ae1bcf2..d9b77e4 100644 --- a/src/.make/libwolfssl.mk +++ b/src/.make/libwolfssl.mk @@ -4,8 +4,8 @@ #Date: 2016 ################################################## #Included from Makefile -#Defines rules for automatically making and -#linking the external wolfssl library +#Defines rules for automatically downloading, +#compiling, and linking the wolfssl library ################################################## #wolfssl module compilation rules @@ -19,8 +19,17 @@ CONFCL += --enable-cryptonly=yes CONFCL += CFLAGS=-w GITADDR := git@github.com:wolfSSL/wolfssl.git +#Remove the WOLFSO after compile since it is +#compiler-dependent, and we copy it to WOLFTARG +#which is a compiler-dependent location .INTERMEDIATE: $(WOLFSO) + +#WOLFTARG is the target file to generate for the +#missing library. It depends on WOLFSO, an +#intermediate file generated only when we need +#to copy it to WOLFTARG $(WOLFTARG): $(WOLFSO) + @mkdir -p $(dir $(WOLFTARG)) @cp -H $(WOLFSO) $(WOLFTARG) @echo "WolfSSL library created" @@ -33,8 +42,6 @@ $(WOLFSO): $(WOLFDIR) $(WOLFDIR): @mkdir -p $(WOLFDIR) @git clone $(GITADDR) $(WOLFDIR) - @mkdir -p $(dir $(WOLFTARG)) - -scrub: +clean_wolfssl: cd $(WOLFDIR) && make clean