123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #!/usr/bin/perl
- print<<HEADER;
- ##################################################################
- #
- # uEcho for C
- #
- # Copyright (C) Satoshi Konno 2015
- #
- # This is licensed under BSD-style license, see file COPYING.
- #
- ##################################################################
- TESTS = uechotest
- check_PROGRAMS = uechotest
- AM_CPPFLAGS = -I\$(top_srcdir)/include -I\$(top_srcdir)/src -I../
- HEADER
- my @find_files = `find ../ -name *.h`;
- my @include_files;
- foreach $file (@find_files) {
- $file =~ s/\n//;
- $file = "\t" . $file;
- push @include_files, $file;
- }
- print join(" \\\n", @include_files) . "\n";
- print<<SOURCES;
- uechotest_SOURCES = \\
- SOURCES
- my @find_files = `find ../ -name *.cpp -or -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;
- #if HAVE_LIBTOOL
- #uechotest_LDADD = ../../lib/unix/libuecho.la
- #else
- uechotest_LDADD = ../../lib/unix/libuecho.a
- #endif
- FOTTER
|