]> sourceware.org Git - newlib-cygwin.git/commitdiff
* Makefile.in (OBJS): Move some more files from cygwin directory.
authorChristopher Faylor <me@cgf.cx>
Wed, 2 Jul 2003 02:31:32 +0000 (02:31 +0000)
committerChristopher Faylor <me@cgf.cx>
Wed, 2 Jul 2003 02:31:32 +0000 (02:31 +0000)
* woutsup.h: Define _MT_SAFE.

winsup/cygserver/ChangeLog
winsup/cygserver/Makefile.in
winsup/cygserver/woutsup.h

index 36cf6630576d47d572eb35f8ec28818b105b000c..b682f5d020558f6ab58addcb86ac0dc32cf49b01 100644 (file)
@@ -1,3 +1,8 @@
+2003-07-01  Christopher Faylor  <cgf@redhat.com>
+
+       * Makefile.in (OBJS): Move some more files from cygwin directory.
+       * woutsup.h: Define _MT_SAFE.
+
 2003-07-01  Christopher Faylor  <cgf@redhat.com>
 
        * configure.in: First pass.
index beda6279f1a26bd706cf121347c0351857c11475..eb326aaed777a18b490e38e2f76206d91c5bbbb3 100644 (file)
@@ -32,12 +32,12 @@ CXX_FOR_TARGET:=$(CXX)
 
 CFLAGS:=@CFLAGS@ -I$(cygwin_source)
 CXXFLAGS:=@CXXFLAGS@ -I$(cygwin_source)
-override CXXFLAGS+=-fno-exceptions -fno-rtti -DHAVE_DECL_GETOPT=0
+override CXXFLAGS+=-fno-exceptions -fno-rtti -DHAVE_DECL_GETOPT=0 -D__OUTSIDE_CYGWIN__
 
 include $(srcdir)/../Makefile.common
 
-OBJS:= cygserver.o client.o process.o shm.o transport.o transport_pipes.o \
-       transport_sockets.o
+OBJS:= cygserver.o client.o process.o shm.o threaded_queue.o transport.o \
+       transport_pipes.o transport_sockets.o
 
 CYGWIN_OBJS:=$(cygwin_build)/smallprint.o $(cygwin_build)/version.o \
        $(cygwin_build)/wincap.o
@@ -46,5 +46,16 @@ all: cygserver.exe
 
 install: all
 
+clean:
+       rm -f $(OBJS)
+
 cygserver.exe: $(OBJS) $(CYGWIN_OBJS)
-       $(CXX) -o $@ $^ -lstdc++
+       $(CXX) -o $@ $^
+
+$(cygwin_build)/%.o: $(cygwin_source)/%.cc
+       @$(MAKE) -C $(@D) $(@F)
+
+$(cygwin_build)/%.o: $(cygwin_source)/%.c
+       @$(MAKE) -C $(@D) $(@F)
+
+Makefile: Makefile.in configure
index c048f1c19c2f6e7a2e66cd57ea25be8ab589ff9d..cb67c78d4b901982265213e2f5cec4ab806137e3 100644 (file)
@@ -8,9 +8,7 @@ This software is a copyrighted work licensed under the terms of the
 Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
 details. */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
+#define _MT_SAFE 1
 
 #ifdef __INSIDE_CYGWIN__
 #error "woutsup.h is not for code being compiled inside the dll"
This page took 0.033902 seconds and 5 git commands to generate.