]>
Commit | Line | Data |
---|---|---|
247ce0ca JT |
1 | # Makefile for Cygwin utilities |
2 | ||
3 | # This file is part of Cygwin. | |
4 | ||
5 | # This software is a copyrighted work licensed under the terms of the | |
6 | # Cygwin license. Please consult the file "CYGWIN_LICENSE" for | |
7 | # details. | |
8 | ||
9 | # We put utilities built with a MinGW compiler in a separate Makefile here | |
10 | # because it's tricky with Automake to use different compilers for the same | |
11 | # language in the same Makefile. | |
12 | ||
13 | override CXX = @MINGW_CXX@ | |
cf25b559 | 14 | AM_CPPFLAGS = |
247ce0ca JT |
15 | |
16 | include $(top_srcdir)/Makefile.am.common | |
17 | ||
48a76190 | 18 | CFLAGS_COMMON=-Wimplicit-fallthrough=4 -Werror -D_WIN32_WINNT=0x0a00 -DNTDDI_VERSION=WDK_NTDDI_VERSION |
247ce0ca JT |
19 | AM_CXXFLAGS=-fno-exceptions -fno-rtti -fno-use-cxa-atexit $(flags_common) $(CFLAGS_COMMON) |
20 | ||
21 | bin_PROGRAMS = \ | |
22 | cygcheck \ | |
23 | cygwin-console-helper \ | |
24 | ldh \ | |
25 | strace | |
26 | ||
27 | cygcheck_SOURCES = \ | |
b8bd9d1b JT |
28 | bloda.cc \ |
29 | cygcheck.cc \ | |
30 | dump_setup.cc \ | |
31 | path.cc | |
fd84f6cf | 32 | cygcheck_CPPFLAGS=-I$(srcdir)/.. -idirafter ${top_srcdir}/cygwin/include |
247ce0ca JT |
33 | cygcheck_LDADD = -lz -lwininet -lpsapi -lntdll |
34 | ||
b8bd9d1b | 35 | cygwin_console_helper_SOURCES = cygwin-console-helper.cc |
247ce0ca | 36 | |
b8bd9d1b | 37 | ldh_SOURCES = ldh.cc |
247ce0ca JT |
38 | |
39 | strace_SOURCES = \ | |
b8bd9d1b JT |
40 | path.cc \ |
41 | strace.cc | |
71e8b450 | 42 | strace_CPPFLAGS=-I$(srcdir)/.. -idirafter ${top_srcdir}/cygwin -idirafter ${top_srcdir}/cygwin/include |
247ce0ca JT |
43 | strace_LDADD = -lntdll |
44 | ||
45 | noinst_PROGRAMS = path-testsuite | |
46 | ||
47 | path_testsuite_SOURCES = \ | |
b8bd9d1b JT |
48 | path.cc \ |
49 | testsuite.cc | |
fd84f6cf | 50 | path_testsuite_CPPFLAGS=-I$(srcdir)/.. -idirafter ${top_srcdir}/cygwin/include |
247ce0ca JT |
51 | path_testsuite_CXXFLAGS = -DTESTSUITE |
52 | ||
53 | TESTS = path-testsuite |