diff options
Diffstat (limited to 'p11-kit/Makefile.am')
-rw-r--r-- | p11-kit/Makefile.am | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/p11-kit/Makefile.am b/p11-kit/Makefile.am index 303fe06..243ee54 100644 --- a/p11-kit/Makefile.am +++ b/p11-kit/Makefile.am @@ -28,6 +28,40 @@ COMMON_SRCS = \ p11-kit/virtual-fixed.h \ $(inc_HEADERS) +BUILT_SOURCES += \ + p11-kit/virtual-fixed.c \ + $(NULL) + +CLEANFILES += \ + p11-kit/virtual-fixed.c \ + $(NULL) + +p11-kit/virtual-fixed.c: Makefile + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + echo; \ + counter=0; \ + while test $$counter -lt $(closures); do \ + echo "P11_VIRTUAL_FIXED_FUNCTIONS($$counter)"; \ + counter=`expr $$counter + 1`; \ + done; \ + echo; \ + echo "CK_FUNCTION_LIST p11_virtual_fixed[P11_VIRTUAL_MAX_FIXED] = {"; \ + counter=0; \ + while test $$counter -lt $(closures); do \ + echo " P11_VIRTUAL_FIXED_INITIALIZER($$counter),"; \ + counter=`expr $$counter + 1`; \ + done; \ + echo '};'; \ + echo; \ + counter=0; \ + while test $$counter -lt $(closures); do \ + echo "P11_VIRTUAL_FIXED_GET_FUNCTION_LIST($$counter)"; \ + counter=`expr $$counter + 1`; \ + done; \ + } > $@-t && \ + mv -f $@-t $@ + lib_LTLIBRARIES += \ libp11-kit.la |