4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-25 00:27:19 +08:00
Jon Turney 247ce0ca3a
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
2021-04-27 16:49:56 +01:00

59 lines
1.4 KiB
Makefile

# Makefile for Cygwin server
# 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
cygserver_flags=$(cxxflags_common) -Wimplicit-fallthrough=5 -Werror -DSYSCONFDIR="\"$(sysconfdir)\""
noinst_LIBRARIES = libcygserver.a
sbin_PROGRAMS = cygserver
bin_SCRIPTS = cygserver-config
cygserver_SOURCES = \
bsd_helper.cc \
bsd_log.cc \
bsd_mutex.cc \
client.cc \
cygserver.cc \
msg.cc \
process.cc \
pwdgrp.cc \
sem.cc \
setpwd.cc \
shm.cc \
sysv_msg.cc \
sysv_sem.cc \
sysv_shm.cc \
threaded_queue.cc \
transport.cc \
transport_pipes.cc
cygserver_CXXFLAGS = $(cygserver_flags) -D__OUTSIDE_CYGWIN__
cygserver_LDADD = -lntdll
cygserver_LDFLAGS = -static -static-libgcc
# Note: the objects in libcygserver are built without -D__OUTSIDE_CYGWIN__,
# unlike cygserver.exe
libcygserver_a_SOURCES = \
$(cygserver_SOURCES)
libcygserver_a_CXXFLAGS = $(cygserver_flags)
cygdocdir = $(datarootdir)/doc/Cygwin
install-data-local:
@$(MKDIR_P) $(DESTDIR)$(cygdocdir)
$(INSTALL_DATA) $(srcdir)/README $(DESTDIR)$(cygdocdir)/cygserver.README
@$(MKDIR_P) $(DESTDIR)$(sysconfdir)/defaults/etc
$(INSTALL_DATA) $(srcdir)/cygserver.conf $(DESTDIR)$(sysconfdir)/defaults/etc/cygserver.conf
uninstall-local:
rm -f $(DESTDIR)$(cygdocdir)/cygserver.README
rm -f $(DESTDIR)$(sysconfdir)/defaults/etc/cygserver.conf