1*f0865ec9SKyle EvansROOT_DIR=../.. 2*f0865ec9SKyle EvansBUILD_DIR=$(ROOT_DIR)/build 3*f0865ec9SKyle Evansinclude $(ROOT_DIR)/common.mk 4*f0865ec9SKyle Evans 5*f0865ec9SKyle Evans# Basic examples directory 6*f0865ec9SKyle EvansBASIC_DIR=basic/ 7*f0865ec9SKyle Evans# Hash functions directory 8*f0865ec9SKyle EvansHASH_DIR=hash/ 9*f0865ec9SKyle Evans# Signature functions directory 10*f0865ec9SKyle EvansSIG_DIR=sig/ 11*f0865ec9SKyle Evans# Shamir Secret Sharing directory 12*f0865ec9SKyle EvansSSS_DIR=sss/ 13*f0865ec9SKyle Evans 14*f0865ec9SKyle EvansCFLAGS += -I$(ROOT_DIR)/include/ 15*f0865ec9SKyle Evans 16*f0865ec9SKyle Evansall: _basic _hash _sig _sss 17*f0865ec9SKyle Evansifeq ($(WITH_DYNAMIC_LIBS),1) 18*f0865ec9SKyle Evans# If the user asked for dynamic libraries, compile versions of our binaries against them 19*f0865ec9SKyle Evansall: _basic_dync _hash_dyn _sig_dyn _sss_dyn 20*f0865ec9SKyle Evansendif 21*f0865ec9SKyle Evans 22*f0865ec9SKyle Evans_basic: 23*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(BASIC_DIR) && EXTRA_CFLAGS="$(CFLAGS)" make 24*f0865ec9SKyle Evans_hash: 25*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(HASH_DIR) && EXTRA_CFLAGS="$(CFLAGS)" make 26*f0865ec9SKyle Evans_sig: 27*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(SIG_DIR) && EXTRA_CFLAGS="$(CFLAGS)" make 28*f0865ec9SKyle Evans_sss: 29*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(SSS_DIR) && EXTRA_CFLAGS="$(CFLAGS)" make 30*f0865ec9SKyle Evans 31*f0865ec9SKyle Evans# If the user asked for dynamic libraries, compile versions of our binaries against them 32*f0865ec9SKyle Evansifeq ($(WITH_DYNAMIC_LIBS),1) 33*f0865ec9SKyle Evans_basic_dync: 34*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(BASIC_DIR) && EXTRA_CFLAGS="$(CFLAGS)" make 35*f0865ec9SKyle Evans_hash_dyn: 36*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(HASH_DIR) && EXTRA_CFLAGS="$(CFLAGS)" make 37*f0865ec9SKyle Evans_sig_dyn: 38*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(SIG_DIR) && EXTRA_CFLAGS="$(CFLAGS)" make 39*f0865ec9SKyle Evans_sss_dyn: 40*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(SSS_DIR) && EXTRA_CFLAGS="$(CFLAGS)" make 41*f0865ec9SKyle Evansendif 42*f0865ec9SKyle Evans 43*f0865ec9SKyle Evans 44*f0865ec9SKyle Evansclean: 45*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(BASIC_DIR) && make clean 46*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(HASH_DIR) && make clean 47*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(SIG_DIR) && make clean 48*f0865ec9SKyle Evans $(VERBOSE_MAKE)cd $(SSS_DIR) && make clean 49*f0865ec9SKyle Evans 50*f0865ec9SKyle Evans.PHONY: all clean 16 32 64 debug debug16 debug32 debug64 force_arch32 force_arch64 51