]> sourceware.org Git - newlib-cygwin.git/blame - winsup/utils/mingw/Makefile.am
Cygwin: utils: enable -idirafter to fetch Cygwin headers from mingw sources
[newlib-cygwin.git] / winsup / utils / mingw / Makefile.am
CommitLineData
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
13override CXX = @MINGW_CXX@
cf25b559 14AM_CPPFLAGS =
247ce0ca
JT
15
16include $(top_srcdir)/Makefile.am.common
17
48a76190 18CFLAGS_COMMON=-Wimplicit-fallthrough=4 -Werror -D_WIN32_WINNT=0x0a00 -DNTDDI_VERSION=WDK_NTDDI_VERSION
247ce0ca
JT
19AM_CXXFLAGS=-fno-exceptions -fno-rtti -fno-use-cxa-atexit $(flags_common) $(CFLAGS_COMMON)
20
21bin_PROGRAMS = \
22 cygcheck \
23 cygwin-console-helper \
24 ldh \
25 strace
26
27cygcheck_SOURCES = \
b8bd9d1b
JT
28 bloda.cc \
29 cygcheck.cc \
30 dump_setup.cc \
31 path.cc
fd84f6cf 32cygcheck_CPPFLAGS=-I$(srcdir)/.. -idirafter ${top_srcdir}/cygwin/include
247ce0ca
JT
33cygcheck_LDADD = -lz -lwininet -lpsapi -lntdll
34
b8bd9d1b 35cygwin_console_helper_SOURCES = cygwin-console-helper.cc
247ce0ca 36
b8bd9d1b 37ldh_SOURCES = ldh.cc
247ce0ca
JT
38
39strace_SOURCES = \
b8bd9d1b
JT
40 path.cc \
41 strace.cc
71e8b450 42strace_CPPFLAGS=-I$(srcdir)/.. -idirafter ${top_srcdir}/cygwin -idirafter ${top_srcdir}/cygwin/include
247ce0ca
JT
43strace_LDADD = -lntdll
44
45noinst_PROGRAMS = path-testsuite
46
47path_testsuite_SOURCES = \
b8bd9d1b
JT
48 path.cc \
49 testsuite.cc
fd84f6cf 50path_testsuite_CPPFLAGS=-I$(srcdir)/.. -idirafter ${top_srcdir}/cygwin/include
247ce0ca
JT
51path_testsuite_CXXFLAGS = -DTESTSUITE
52
53TESTS = path-testsuite
This page took 0.029863 seconds and 5 git commands to generate.