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.
|
|
|
|
|
|
|
|
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_CFLAGS=$(cflags_common) $(CFLAGS_COMMON)
|
|
|
|
AM_CXXFLAGS=$(cxxflags_common) $(CFLAGS_COMMON)
|
2021-08-27 04:21:21 +08:00
|
|
|
AM_CXXFLAGS += $(CFLAGS)
|
2020-10-06 23:11:54 +08:00
|
|
|
|
2021-04-29 16:59:29 +08:00
|
|
|
# Note that we call ps cygps here, so as not to collide with the
|
|
|
|
# autogenerated texinfo rule with the name 'ps'...
|
2020-10-06 23:11:54 +08:00
|
|
|
bin_PROGRAMS = \
|
|
|
|
chattr \
|
|
|
|
cygpath \
|
2021-04-29 16:59:29 +08:00
|
|
|
cygps \
|
2020-10-06 23:11:54 +08:00
|
|
|
gencat \
|
|
|
|
getconf \
|
|
|
|
getfacl \
|
2021-07-16 12:49:57 +08:00
|
|
|
gmondump \
|
2020-10-06 23:11:54 +08:00
|
|
|
kill \
|
|
|
|
ldd \
|
|
|
|
locale \
|
|
|
|
lsattr \
|
|
|
|
minidumper \
|
|
|
|
mkgroup \
|
|
|
|
mkpasswd \
|
|
|
|
mount \
|
2023-01-14 03:59:07 +08:00
|
|
|
newgrp \
|
2020-10-06 23:11:54 +08:00
|
|
|
passwd \
|
|
|
|
pldd \
|
2021-07-16 12:49:57 +08:00
|
|
|
profiler \
|
2020-10-06 23:11:54 +08:00
|
|
|
regtool \
|
|
|
|
setfacl \
|
|
|
|
setmetamode \
|
|
|
|
ssp \
|
|
|
|
tzset \
|
|
|
|
umount
|
|
|
|
|
2021-04-29 16:59:29 +08:00
|
|
|
# Rename cygps to ps at install time
|
|
|
|
transform = s/cygps/ps/; $(program_transform_name)
|
|
|
|
|
2020-10-06 23:11:54 +08:00
|
|
|
# dumper is only built if libbfd.a available
|
|
|
|
if BUILD_DUMPER
|
|
|
|
bin_PROGRAMS += dumper
|
|
|
|
endif
|
|
|
|
|
|
|
|
# If prog_SOURCES is not specified, automake defaults to the single file prog.c
|
|
|
|
cygpath_SOURCES = cygpath.cc
|
|
|
|
dumper_SOURCES = dumper.cc module_info.cc
|
|
|
|
kill_SOURCES = kill.cc
|
|
|
|
ldd_SOURCES = ldd.cc
|
|
|
|
locale_SOURCES = locale.cc
|
|
|
|
minidumper_SOURCES = minidumper.cc
|
|
|
|
mount_SOURCES = mount.cc path.cc
|
2021-07-16 12:49:57 +08:00
|
|
|
profiler_SOURCES = profiler.cc path.cc
|
2021-04-29 16:59:29 +08:00
|
|
|
cygps_SOURCES = ps.cc
|
2020-10-06 23:11:54 +08:00
|
|
|
regtool_SOURCES = regtool.cc
|
|
|
|
umount_SOURCES = umount.cc
|
|
|
|
|
|
|
|
# rules to create/update tzmap.h from an online resource
|
|
|
|
.PHONY: tzmap
|
|
|
|
tzmap:
|
|
|
|
$(srcdir)/tzmap-from-unicode.org > $(srcdir)/$@.h
|
|
|
|
|
|
|
|
tzmap.h:
|
|
|
|
$(srcdir)/tzmap-from-unicode.org > $(srcdir)/$@
|
|
|
|
|
|
|
|
BUILT_SOURCES = tzmap.h
|
|
|
|
|
|
|
|
AM_LDFLAGS = -static -Wl,--enable-auto-import
|
|
|
|
LDADD = -lnetapi32
|
|
|
|
|
|
|
|
cygpath_CXXFLAGS = -fno-threadsafe-statics $(AM_CXXFLAGS)
|
|
|
|
cygpath_LDADD = $(LDADD) -luserenv -lntdll
|
|
|
|
dumper_CXXFLAGS = -I$(top_srcdir)/../include $(AM_CXXFLAGS)
|
|
|
|
dumper_LDADD = $(LDADD) -lpsapi -lbfd -lintl -liconv -liberty -lz -lntdll
|
|
|
|
ldd_LDADD = $(LDADD) -lpsapi -lntdll
|
|
|
|
mount_CXXFLAGS = -DFSTAB_ONLY $(AM_CXXFLAGS)
|
|
|
|
minidumper_LDADD = $(LDADD) -ldbghelp
|
|
|
|
pldd_LDADD = $(LDADD) -lpsapi
|
2022-08-04 22:58:50 +08:00
|
|
|
profiler_CXXFLAGS = -I$(srcdir) -idirafter ${top_srcdir}/cygwin/local_includes -idirafter ${top_srcdir}/cygwin/include $(AM_CXXFLAGS)
|
2021-07-16 12:49:57 +08:00
|
|
|
profiler_LDADD = $(LDADD) -lntdll
|
2021-04-29 16:59:29 +08:00
|
|
|
cygps_LDADD = $(LDADD) -lpsapi -lntdll
|
2020-10-06 23:11:54 +08:00
|
|
|
|
|
|
|
if CROSS_BOOTSTRAP
|
|
|
|
SUBDIRS = mingw
|
|
|
|
endif
|