2020-10-06 23:11:54 +08:00
|
|
|
# Makefile for Cygwin utilities
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
# We put utilities built with a MinGW compiler in a separate Makefile here
|
|
|
|
# because it's tricky with Automake to use different compilers for the same
|
|
|
|
# language in the same Makefile.
|
|
|
|
|
|
|
|
override CXX = @MINGW_CXX@
|
2021-04-29 17:23:11 +08:00
|
|
|
AM_CPPFLAGS =
|
2020-10-06 23:11:54 +08:00
|
|
|
|
|
|
|
include $(top_srcdir)/Makefile.am.common
|
|
|
|
|
2021-05-26 16:57:47 +08:00
|
|
|
CFLAGS_COMMON=-Wimplicit-fallthrough=4 -Werror -D_WIN32_WINNT=0x0a00 -DNTDDI_VERSION=WDK_NTDDI_VERSION
|
2020-10-06 23:11:54 +08:00
|
|
|
AM_CXXFLAGS=-fno-exceptions -fno-rtti -fno-use-cxa-atexit $(flags_common) $(CFLAGS_COMMON)
|
|
|
|
|
2021-09-18 09:38:07 +08:00
|
|
|
AM_LDFLAGS = -static
|
|
|
|
|
2020-10-06 23:11:54 +08:00
|
|
|
bin_PROGRAMS = \
|
|
|
|
cygcheck \
|
|
|
|
cygwin-console-helper \
|
|
|
|
ldh \
|
|
|
|
strace
|
|
|
|
|
|
|
|
cygcheck_SOURCES = \
|
2021-04-28 06:41:07 +08:00
|
|
|
bloda.cc \
|
|
|
|
cygcheck.cc \
|
|
|
|
dump_setup.cc \
|
|
|
|
path.cc
|
2021-05-26 16:59:03 +08:00
|
|
|
cygcheck_CPPFLAGS=-I$(srcdir)/.. -idirafter ${top_srcdir}/cygwin/include
|
2023-01-20 01:24:15 +08:00
|
|
|
cygcheck_LDFLAGS = ${AM_LDFLAGS} -Wl,--disable-high-entropy-va
|
2023-01-28 21:59:39 +08:00
|
|
|
cygcheck_LDADD = -lz -lwininet -lshlwapi -lpsapi -lntdll
|
2020-10-06 23:11:54 +08:00
|
|
|
|
2021-04-28 06:41:07 +08:00
|
|
|
cygwin_console_helper_SOURCES = cygwin-console-helper.cc
|
2020-10-06 23:11:54 +08:00
|
|
|
|
2021-04-28 06:41:07 +08:00
|
|
|
ldh_SOURCES = ldh.cc
|
2020-10-06 23:11:54 +08:00
|
|
|
|
|
|
|
strace_SOURCES = \
|
2021-04-28 06:41:07 +08:00
|
|
|
path.cc \
|
|
|
|
strace.cc
|
2022-08-04 22:58:50 +08:00
|
|
|
strace_CPPFLAGS=-I$(srcdir)/.. -idirafter ${top_srcdir}/cygwin/local_includes -idirafter ${top_srcdir}/cygwin/include
|
2023-01-20 01:24:15 +08:00
|
|
|
strace_LDFLAGS = ${AM_LDFLAGS} -Wl,--disable-high-entropy-va
|
2020-10-06 23:11:54 +08:00
|
|
|
strace_LDADD = -lntdll
|
|
|
|
|
|
|
|
noinst_PROGRAMS = path-testsuite
|
|
|
|
|
|
|
|
path_testsuite_SOURCES = \
|
2021-04-28 06:41:07 +08:00
|
|
|
path.cc \
|
|
|
|
testsuite.cc
|
2021-05-26 16:59:03 +08:00
|
|
|
path_testsuite_CPPFLAGS=-I$(srcdir)/.. -idirafter ${top_srcdir}/cygwin/include
|
2020-10-06 23:11:54 +08:00
|
|
|
path_testsuite_CXXFLAGS = -DTESTSUITE
|
|
|
|
|
|
|
|
TESTS = path-testsuite
|