Commit d53f8eb6 authored by Niels Möller's avatar Niels Möller
Browse files

* Makefile.am (libspki_a_SOURCES): Added names.c.

Removed $(srcdir) prefix from targets.

Rev: src/spki/Makefile.am:1.13
parent 44b54958
......@@ -6,29 +6,39 @@ AM_CPPFLAGS = -I$(srcdir)/..
noinst_LIBRARIES = libspki.a
# libspkiincludedir = $(includedir)/nettle
libspki_a_SOURCES = certificate.c parse.c tag.c reduce.c \
libspki_a_SOURCES = certificate.c parse.c parse-transport.c names.c \
tag.c reduce.c \
verify.c \
certificate.h parse.h tag.h
# Does this get $(srcdir) right?
$(srcdir)/spki-types.h: spki-types.in process-types
$(srcdir)/process-types header < $< > $@T
test -s $@T && mv -f $@T $@
spki-types.h: spki-types.in process-types
$(srcdir)/process-types header < $< > $(srcdir)/spki-types.hT
test -s $(srcdir)/spki-types.hT \
&& mv -f $(srcdir)/spki-types.hT $(srcdir)/spki-types.h
$(srcdir)/spki-type-names.h: spki-types.in process-types
$(srcdir)/process-types names < $< > $@T
test -s $@T && mv -f $@T $@
spki-type-names.h: spki-types.in process-types
$(srcdir)/process-types names < $< > $(srcdir)/spki-type-names.hT
test -s $(srcdir)/spki-type-names.hT \
&& mv -f $(srcdir)/spki-type-names.hT $(srcdir)/spki-type-names.h
GPERF_FLAGS = -LANSI-C -t -c -C -l -E -o -k1,$$ -N spki_gperf
$(srcdir)/spki-gperf.h: spki-types.in process-types
spki-gperf.h: spki-types.in process-types
$(srcdir)/process-types gperf < $< | tee spki-gperf.in \
| gperf $(GPERF_FLAGS) | sed 's/{""}/{"", 0}/g' \
> $@T
test -s $@T && mv -f $@T $@
> $(srcdir)/spki-gperf.hT
test -s $(srcdir)/spki-gperf.hT \
&& mv -f $(srcdir)/spki-gperf.hT $(srcdir)/spki-gperf.h
EXTRA_DIST = process-types \
spki-types.in spki-types.h spki-gperf.h spki-type-names.h
.PHONY: bootstrap
bootstrap: spki-types.h spki-gperf.h spki-type-names.h
# Is this right?
# .PHONY: $(srcdir)/spki-types.h
# .PHONY: $(srcdir)/spki-gperf.h
# .PHONY: $(srcdir)/spki-type-names.h
# $(srcdir)/% : %
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment