summaryrefslogtreecommitdiff
path: root/libfetch/Makefile
blob: c4b56f5b4d3e01be724b962537d063de8ecc1f40 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
libs-y			+= libfetch.a
libfetch.a-objs		:= common.o fetch.o file.o ftp.o http.o openssl-compat.o
generate-y		+= ftperr.h httperr.h
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\"

quiet_cmd_generr = GENERR  $@
      cmd_generr = $(src)/errlist.sh $(basename $(<F))_errlist $(shell echo $(basename $(<F)) | tr a-z A-Z) $< > $@

$(obj)/%err.h: $(src)/%.errors
	@$(call echo-cmd,generr) $(cmd_generr)