hostap/tests/fuzzing/dpp-uri/Makefile
Johannes Berg 87098d3324 build: Put archive files into build/ folder too
This is something I hadn't previously done, but there are
cases where it's needed, e.g., building 'wlantest' and then
one of the tests/fuzzing/*/ projects, they use a different
configuration (fuzzing vs. not fuzzing).

Perhaps more importantly, this gets rid of the last thing
that was dumped into the source directories, apart from
the binaries themselves.

Note that due to the use of thin archives, this required
building with absolute paths.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2020-10-11 11:16:00 +03:00

43 lines
1,000 B
Makefile

all: dpp-uri
include ../rules.include
CFLAGS += -DCONFIG_DPP
CFLAGS += -DCONFIG_DPP2
CFLAGS += -DCONFIG_SHA256
CFLAGS += -DCONFIG_SHA384
CFLAGS += -DCONFIG_SHA512
CFLAGS += -DCONFIG_ECC
CFLAGS += -DCONFIG_OPENSSL_CMAC
LIBS += $(SRC)/common/libcommon.a
LIBS += $(SRC)/utils/libutils.a
OBJS += $(SRC)/crypto/crypto_openssl.o
OBJS += $(SRC)/crypto/aes-ctr.o
OBJS += $(SRC)/crypto/aes-siv.o
OBJS += $(SRC)/crypto/sha256-kdf.o
OBJS += $(SRC)/crypto/sha384-kdf.o
OBJS += $(SRC)/crypto/sha512-kdf.o
OBJS += $(SRC)/tls/asn1.o
OBJS += $(SRC)/common/dpp.o
OBJS += $(SRC)/common/dpp_auth.o
OBJS += $(SRC)/common/dpp_backup.o
OBJS += $(SRC)/common/dpp_crypto.o
OBJS += $(SRC)/common/dpp_pkex.o
OBJS += $(SRC)/common/dpp_reconfig.o
OBJS += $(SRC)/common/dpp_tcp.o
OBJS += dpp-uri.o
_OBJS_VAR := OBJS
include ../../../src/objs.mk
_OBJS_VAR := LIBS
include ../../../src/objs.mk
dpp-uri: $(OBJS) $(LIBS)
$(LDO) $(LDFLAGS) -o $@ $^ -lcrypto
clean: common-clean
rm -f dpp-uri *~ *.o *.d ../*~ ../*.o ../*.d