2017-10-05 07:57:45 +00:00
|
|
|
libs-y += libfetch.a
|
2017-10-06 10:23:54 +00:00
|
|
|
libfetch.a-objs := common.o fetch.o file.o ftp.o http.o openssl-compat.o
|
2017-10-05 07:57:45 +00:00
|
|
|
generate-y += ftperr.h httperr.h
|
2017-10-05 13:39:47 +00:00
|
|
|
CFLAGS_common.o += -DCA_CERT_FILE=\"$(CONFDIR)/ca.pem\" -DCA_CRL_FILE=\"$(CONFDIR)/crl.pem\"
|
|
|
|
CFLAGS_common.o += -DCLIENT_CERT_FILE=\"$(CONFDIR)/cert.pem\" -DCLIENT_KEY_FILE=\"$(CONFDIR)/cert.key\"
|
2017-10-05 05:57:18 +00:00
|
|
|
|
2021-12-10 18:46:37 +00:00
|
|
|
PKG_CONFIG ?= pkg-config
|
|
|
|
|
|
|
|
OPENSSL_CFLAGS := $(shell $(PKG_CONFIG) --cflags openssl)
|
|
|
|
OPENSSL_LIBS := $(shell $(PKG_CONFIG) --libs openssl)
|
|
|
|
|
|
|
|
CFLAGS_ALL += $(OPENSSL_CFLAGS)
|
|
|
|
|
2017-10-05 07:57:45 +00:00
|
|
|
quiet_cmd_generr = GENERR $@
|
2020-04-24 08:49:14 +00:00
|
|
|
cmd_generr = $(src)/errlist.sh $(basename $(<F))_errlist $(shell echo $(basename $(<F)) | tr a-z A-Z) $< > $@
|
2017-10-05 05:57:18 +00:00
|
|
|
|
2020-04-24 08:49:14 +00:00
|
|
|
$(obj)/%err.h: $(src)/%.errors
|
|
|
|
@$(call echo-cmd,generr) $(cmd_generr)
|