1 # Makefile for Cygwin server
2 # Copyright 2003 Red Hat, Inc.
4 # This file is part of Cygwin.
6 # This software is a copyrighted work licensed under the terms of the
7 # Cygwin license. Please consult the file "CYGWIN_LICENSE" for
15 exec_prefix:=@exec_prefix@
18 etcdir:=$(exec_prefix)/etc
19 program_transform_name:=@program_transform_name@
22 INSTALL_PROGRAM:=@INSTALL_PROGRAM@
23 INSTALL_DATA:=@INSTALL_DATA@
26 EXEEXT_FOR_BUILD:=@EXEEXT_FOR_BUILD@
31 CXX_FOR_TARGET:=$(CXX)
33 CFLAGS:=@CFLAGS@ -I$(cygwin_source)
34 CXXFLAGS:=@CXXFLAGS@ -I$(cygwin_source)
35 override CXXFLAGS+=-fno-exceptions -fno-rtti -DHAVE_DECL_GETOPT=0
37 include $(srcdir)/../Makefile.common
39 OBJS:= cygserver.o client.o process.o shm.o transport.o transport_pipes.o \
42 CYGWIN_OBJS:=$(cygwin_build)/smallprint.o $(cygwin_build)/version.o \
43 $(cygwin_build)/wincap.o
49 cygserver.exe: $(OBJS) $(CYGWIN_OBJS)
50 $(CXX) -o $@ $^ -lstdc++