diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2020-10-06 18:11:54 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2021-04-27 18:49:56 +0300 |
commit | 247ce0ca3aaed06703783d586b6eaed1f8379582 (patch) | |
tree | dedbe1b44987b9b5fc7115ade0757eb5dbaa4086 /winsup/testsuite/Makefile.am | |
parent | 3b0ba6535218631b1ab467cd29d36b1eae4a0af6 (diff) |
Cygwin: Use automake (v5)
v2:
* Include tzmap.h in BUILT_SOURCES
* Make per-file flags appear after user-supplied CXXFLAGS, so they can
override optimization level.
* Correct .o files used to define symbols exported by libm.a
* Drop gcrt0.o mistakenly included in libgmon.a
* Add missing line continuations in GMON_FILES value
v3:
* use per-file flags for .c compilation
* override C{XX,}FLAGS, as they are set on the command line by top-level make
v4:
* Drop -Wno-error=write-strings from path_testsuite CXXFLAGS
v5:
* Update for changes in master
- Add -fno-threadsafe-statics to CXX flags
- Add hypotl.cc
- Remove fenv.cc (in favour of newlib), add fenv.c stub
- Add proc.5 manpage rules
Diffstat (limited to 'winsup/testsuite/Makefile.am')
-rw-r--r-- | winsup/testsuite/Makefile.am | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/winsup/testsuite/Makefile.am b/winsup/testsuite/Makefile.am new file mode 100644 index 000000000..4b8c7dbb7 --- /dev/null +++ b/winsup/testsuite/Makefile.am @@ -0,0 +1,64 @@ +# Makefile.am for Cygwin's testsuite. +# +# This file is part of Cygwin. +# +# This software is a copyrighted work licensed under the terms of the +# Cygwin license. Please consult the file "CYGWIN_LICENSE" for +# details. + +# This makefile requires GNU make. + +noinst_LIBRARIES = libltp.a + +libltp_a_CPPFLAGS=-I$(srcdir)/libltp/include + +libltp_a_SOURCES = \ + libltp/lib/dataascii.c \ + libltp/lib/databin.c \ + libltp/lib/datapid.c \ + libltp/lib/forker.c \ + libltp/lib/get_high_address.c \ + libltp/lib/libtestsuite.c \ + libltp/lib/open_flags.c \ + libltp/lib/parse_opts.c \ + libltp/lib/pattern.c \ + libltp/lib/rmobj.c \ + libltp/lib/search_path.c \ + libltp/lib/str_to_bytes.c \ + libltp/lib/string_to_tokens.c \ + libltp/lib/tst_res.c \ + libltp/lib/tst_sig.c \ + libltp/lib/tst_tmpdir.c \ + libltp/lib/write_log.c + +DEJATOOL = winsup + +# Add '-v' to RUNTESTFLAGS if V=1 +RUNTESTFLAGS_1 = -v +RUNTESTFLAGS = $(RUNTESTFLAGS_$(V)) + +# a temporary directory, to be used for files created by tests +tmpdir = $(abspath $(objdir)/testsuite/tmp/) +# the same temporary directory, as an absolute, /cygdrive path (so it can be +# understood by the test DLL, which will have a different mount table) +testdll_tmpdir = $(shell cygpath -ma $(tmpdir) | sed -e 's#^\([A-Z]\):#/cygdrive/\L\1#') + +site-extra.exp: ../config.status Makefile + @rm -f ./tmp0 + @echo "set runtime_root \"`pwd`/../cygwin\"" >> ./tmp0 + @echo "set CC \"$(CC)\"" >> ./tmp0 + @echo "set CFLAGS \"\"" >> ./tmp0 + @echo "set MINGW_CXX \"$(MINGW_CXX)\"" >> ./tmp0 + @echo "set tmpdir $(tmpdir)" >> ./tmp0 + @echo "set testdll_tmpdir $(testdll_tmpdir)" >> ./tmp0 + @echo "set ltp_includes \"$(srcdir)/libltp/include\"" >> ./tmp0 + @echo "set ltp_libs \"`pwd`/libltp.a\"" >> ./tmp0 + @echo "set cygrun \"`pwd`/cygrun/cygrun\"" >> ./tmp0 + @mv ./tmp0 site-extra.exp + +EXTRA_DEJAGNU_SITE_CONFIG = site-extra.exp + +clean-local: + rm -f *.log *.exe *.exp *.bak *.stackdump winsup.sum + +SUBDIRS = cygrun |