1*f0865ec9SKyle EvansROOT_DIR=../../../ 2*f0865ec9SKyle EvansBUILD_DIR=$(ROOT_DIR)/build 3*f0865ec9SKyle Evansinclude $(ROOT_DIR)/common.mk 4*f0865ec9SKyle Evans 5*f0865ec9SKyle EvansRSA_DIR=rsa/ 6*f0865ec9SKyle EvansDSA_DIR=dsa/ 7*f0865ec9SKyle EvansSDSA_DIR=sdsa/ 8*f0865ec9SKyle EvansKCDSA_DIR=kcdsa/ 9*f0865ec9SKyle EvansGOST_DIR=gostr34_10_94/ 10*f0865ec9SKyle Evans 11*f0865ec9SKyle EvansCFLAGS += -I$(ROOT_DIR)/include/ 12*f0865ec9SKyle Evans 13*f0865ec9SKyle Evansall: _rsa _dsa _sdsa _kcdsa _gost 14*f0865ec9SKyle Evansifeq ($(WITH_DYNAMIC_LIBS),1) 15*f0865ec9SKyle Evans# If the user asked for dynamic libraries, compile versions of our binaries against them 16*f0865ec9SKyle Evansall: _rsa_dyn _dsa_dyn _sdsa_dyn _kcdsa_dyn _gost_dyn 17*f0865ec9SKyle Evansendif 18*f0865ec9SKyle Evans 19*f0865ec9SKyle Evans_rsa: 20*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(RSA_DIR) && EXTRA_CFLAGS="$(CFLAGS)" make 21*f0865ec9SKyle Evans_dsa: 22*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(DSA_DIR) && EXTRA_CFLAGS="$(CFLAGS)" make 23*f0865ec9SKyle Evans_sdsa: 24*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(SDSA_DIR) && EXTRA_CFLAGS="$(CFLAGS)" make 25*f0865ec9SKyle Evans_kcdsa: 26*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(KCDSA_DIR) && EXTRA_CFLAGS="$(CFLAGS)" make 27*f0865ec9SKyle Evans_gost: 28*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(GOST_DIR) && EXTRA_CFLAGS="$(CFLAGS)" make 29*f0865ec9SKyle Evans 30*f0865ec9SKyle Evans# If the user asked for dynamic libraries, compile versions of our binaries against them 31*f0865ec9SKyle Evansifeq ($(WITH_DYNAMIC_LIBS),1) 32*f0865ec9SKyle Evans_rsa_dyn: 33*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(RSA_DIR) && EXTRA_CFLAGS="$(CFLAGS)" make 34*f0865ec9SKyle Evans_dsa_dyn: 35*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(DSA_DIR) && EXTRA_CFLAGS="$(CFLAGS)" make 36*f0865ec9SKyle Evans_sdsa_dyn: 37*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(SDSA_DIR) && EXTRA_CFLAGS="$(CFLAGS)" make 38*f0865ec9SKyle Evans_kcdsa_dyn: 39*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(KCDSA_DIR) && EXTRA_CFLAGS="$(CFLAGS)" make 40*f0865ec9SKyle Evans_gost_dyn: 41*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(GOST_DIR) && EXTRA_CFLAGS="$(CFLAGS)" make 42*f0865ec9SKyle Evansendif 43*f0865ec9SKyle Evans 44*f0865ec9SKyle Evans 45*f0865ec9SKyle Evansclean: 46*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(RSA_DIR) && make clean 47*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(DSA_DIR) && make clean 48*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(SDSA_DIR) && make clean 49*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(KCDSA_DIR) && make clean 50*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(GOST_DIR) && make clean 51*f0865ec9SKyle Evans 52*f0865ec9SKyle Evans.PHONY: all clean 16 32 64 debug debug16 debug32 debug64 force_arch32 force_arch64 53