Makefile.am.build 1007 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/usr/bin/perl
  2. print<<HEADER;
  3. ##################################################################
  4. #
  5. # uEcho for C
  6. #
  7. # Copyright (C) Satoshi Konno 2015
  8. #
  9. # This is licensed under BSD-style license, see file COPYING.
  10. #
  11. ##################################################################
  12. #if HAVE_LIBTOOL
  13. #lib_LTLIBRARIES = libuecho.la
  14. #else
  15. lib_LIBRARIES = libuecho.a
  16. #endif
  17. AM_CFLAGS = -I\$(top_builddir)/include -I\$(top_builddir)/src
  18. uecho_sources = \\
  19. HEADER
  20. my @find_files = `find ../../src/uecho -name *.c`;
  21. my @source_files;
  22. foreach $file (@find_files) {
  23. $file =~ s/\n//;
  24. $file = "\t" . $file;
  25. push @source_files, $file;
  26. }
  27. print join(" \\\n", @source_files) . "\n";
  28. print<<FOTTER;
  29. libuechoincludedir = \$(includedir)/uecho
  30. nobase_libuechoinclude_HEADERS = \\
  31. \$(uecho_headers)
  32. #if HAVE_LIBTOOL
  33. #libuecho_la_SOURCES = \\
  34. # \$(uecho_source)
  35. #libuecho_la_CFLAGS = \$(AM_CFLAGS)
  36. #else
  37. libuecho_a_SOURCES = \\
  38. \$(uecho_sources)
  39. libuecho_a_CFLAGS = \$(AM_CFLAGS)
  40. #endif
  41. FOTTER