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@
28 CXX_FOR_TARGET:=$(CXX)
31 CFLAGS:=@CFLAGS@ -I$(cygwin_source)
32 CXXFLAGS:=@CXXFLAGS@ -I$(cygwin_source)
33 override CXXFLAGS+=-fno-exceptions -fno-rtti -DHAVE_DECL_GETOPT=0 -D__OUTSIDE_CYGWIN__
35 include $(srcdir)/../Makefile.common
37 OBJS:= cygserver.o client.o process.o msg.o sem.o shm.o threaded_queue.o \
38 transport.o transport_pipes.o transport_sockets.o
39 LIBOBJS:=${patsubst %.o,lib%.o,$(OBJS)}
41 CYGWIN_OBJS:=$(cygwin_build)/smallprint.o $(cygwin_build)/version.o \
42 $(cygwin_build)/wincap.o
51 cygserver.exe: $(OBJS) $(CYGWIN_OBJS)
54 $(cygwin_build)/%.o: $(cygwin_source)/%.cc
55 @$(MAKE) -C $(@D) $(@F)
57 $(cygwin_build)/%.o: $(cygwin_source)/%.c
58 @$(MAKE) -C $(@D) $(@F)
60 Makefile: Makefile.in configure
63 ${filter-out -D__OUTSIDE_CYGWIN__, $(COMPILE_CXX)} -I$(updir)/cygwin -o $(@D)/${basename $(@F)}$o $<
65 libcygserver.a: $(LIBOBJS)