summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <vinschen@redhat.com>2006-07-14 12:56:10 +0000
committerCorinna Vinschen <vinschen@redhat.com>2006-07-14 12:56:10 +0000
commit3d55ed4a6d71c7d3c8454e5059e9295cc000b17a (patch)
tree722e8c4c48c7543d1e2c089d43d773abbfb94327
parent5a6ceabd90e87f167d6bad2030bb46b1561aa100 (diff)
downloadgdb-3d55ed4a6d71c7d3c8454e5059e9295cc000b17a.tar.gz
* Makefile.in (LIBS): Link against msvcrt.dll, too.
-rw-r--r--winsup/subauth/ChangeLog32
-rw-r--r--winsup/subauth/Makefile.in89
2 files changed, 121 insertions, 0 deletions
diff --git a/winsup/subauth/ChangeLog b/winsup/subauth/ChangeLog
new file mode 100644
index 00000000000..899a3b458d6
--- /dev/null
+++ b/winsup/subauth/ChangeLog
@@ -0,0 +1,32 @@
+2006-07-14 Corinna Vinschen <corinna@vinschen.de>
+
+ * Makefile.in (LIBS): Link against msvcrt.dll, too.
+
+2006-05-24 Christopher Faylor <cgf@timesys.com>
+
+ * configure.in: Update to newer autoconf.
+ (thanks to Steve Ellcey)
+ * configure: Regenerate.
+ * aclocal.m4: New file.
+
+2001-10-12 Christopher Faylor <cgf@redhat.com>
+
+ * Makefile.in: Comment out install for now.
+
+2001-10-12 Christopher Faylor <cgf@redhat.com>
+
+ * Makefile.in: Accomodate changes to w32api_include macro.
+
+Sun May 20 00:24:36 2001 Christopher Faylor <cgf@cygnus.com>
+
+ * Makefile.in: Use 'rm -f' when cleaning.
+
+Fri May 4 15:06:00 Corinna Vinschen <corinna@vinschen.de>
+
+ Initial release of the Cygwin subauthentication DLL.
+ * ChangeLog: New file.
+ * Makefile.in: Ditto.
+ * configure: Ditto. Generated from configure.in.
+ * configure.in: Ditto.
+ * cygsuba.c: Ditto.
+ * cygsuba.din: Ditto.
diff --git a/winsup/subauth/Makefile.in b/winsup/subauth/Makefile.in
new file mode 100644
index 00000000000..15a8eb93b75
--- /dev/null
+++ b/winsup/subauth/Makefile.in
@@ -0,0 +1,89 @@
+# Copyright (c) 2001, Red Hat, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# A copy of the GNU General Public License can be found at
+# http://www.gnu.org/
+#
+# Written by Corinna Vinschen <vinschen@redhat.de>
+#
+# Makefile for Cygwin subauthentication DLL.
+
+SHELL := @SHELL@
+
+srcdir := @srcdir@
+VPATH := @srcdir@
+prefix := @prefix@
+exec_prefix := @exec_prefix@
+
+bindir := @bindir@
+etcdir := $(exec_prefix)/etc
+
+program_transform_name := @program_transform_name@
+
+INSTALL := @INSTALL@
+INSTALL_PROGRAM := @INSTALL_PROGRAM@
+INSTALL_DATA := @INSTALL_DATA@
+
+CC := @CC@
+CC_FOR_TARGET := $(CC)
+
+CFLAGS := @CFLAGS@ -nostdinc
+
+include $(srcdir)/../Makefile.common
+
+WIN32_COMMON := -mno-cygwin
+WIN32_INCLUDES := -I. -I$(srcdir) $(w32api_include)
+WIN32_CFLAGS := $(CFLAGS) $(WIN32_COMMON) $(WIN32_INCLUDES)
+WIN32_LDFLAGS := $(CFLAGS) $(WIN32_COMMON) -L$(mingw_build) -nostdlib -Wl,-shared
+
+STARTFILE := $(mingw_build)/dllcrt2.o
+LIBS := -lmingw32 -lmsvcrt -lkernel32
+
+DLL := cygsuba.dll
+DEF_FILE:= cygsuba.def
+
+OBJ = cygsuba.o
+
+.SUFFIXES:
+.NOEXPORT:
+
+all: Makefile $(DLL)
+
+$(DEF_FILE): cygsuba.din config.status
+ $(SHELL) config.status
+
+$(DLL): $(OBJ) $(DEF_FILE)
+ifdef VERBOSE
+ $(CC) -s $(WIN32_LDFLAGS) -o $@ $(DEF_FILE) $(STARTFILE) $(OBJ) $(LIBS)
+else
+ @echo $(CC) .. -o $@ $(OBJ)
+ @$(CC) -s $(WIN32_LDFLAGS) -o $@ $(DEF_FILE) $(STARTFILE) $(OBJ) $(LIBS)
+endif
+
+.PHONY: all install clean realclean
+
+realclean: clean
+ rm -f Makefile config.cache
+
+clean:
+ rm -f *.o *.dll
+
+install: all
+ # $(SHELL) $(updir1)/mkinstalldirs $(bindir)
+ # for i in $(PROGS) ; do \
+ # n=`echo $$i | sed '$(program_transform_name)'`; \
+ # $(INSTALL_PROGRAM) $$i $(bindir)/$$n; \
+ # done || exit 0
+
+%.o: %.c
+ifdef VERBOSE
+ $(CC) $(WIN32_CFLAGS) -c -o $@ $<
+else
+ @echo $(CC) -c $(CFLAGS) ... $(<F)
+ @$(CC) $(WIN32_CFLAGS) -c -o $@ $<
+endif
+