12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #!/usr/bin/perl
- print<<HEADER;
- ##################################################################
- #
- # uEcho for C
- #
- # Copyright (C) Satoshi Konno 2015
- #
- # This is licensed under BSD-style license, see file COPYING.
- #
- ##################################################################
- #if HAVE_LIBTOOL
- #lib_LTLIBRARIES = libuecho.la
- #else
- lib_LIBRARIES = libuecho.a
- #endif
- AM_CFLAGS = -I\$(top_builddir)/include -I\$(top_builddir)/src
- uecho_sources = \\
- HEADER
- my @find_files = `find ../../src/uecho -name *.c`;
- my @source_files;
- foreach $file (@find_files) {
- $file =~ s/\n//;
- $file = "\t" . $file;
- push @source_files, $file;
- }
- print join(" \\\n", @source_files) . "\n";
- print<<FOTTER;
- libuechoincludedir = \$(includedir)/uecho
- nobase_libuechoinclude_HEADERS = \\
- \$(uecho_headers)
- #if HAVE_LIBTOOL
- #libuecho_la_SOURCES = \\
- # \$(uecho_source)
- #libuecho_la_CFLAGS = \$(AM_CFLAGS)
- #else
- libuecho_a_SOURCES = \\
- \$(uecho_sources)
- libuecho_a_CFLAGS = \$(AM_CFLAGS)
- #endif
- FOTTER
|