Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2012-10-24 13:35:38 +0400
committerYaakov Selkowitz <yselkowi@redhat.com>2012-10-24 13:35:38 +0400
commitefa82614a73875eaed014d5f4db6cc1a1aa9db81 (patch)
treeb8b4a247984f52e67655601cdf8b9307c24a36e0 /winsup/lsaauth/Makefile.in
parentd25fac71144904255ef38a506a259a5de2b4c2ad (diff)
2012-10-24 Kai Tietz <ktietz70@googlemail.com>
Yaakov Selkowitz <yselkowitz@users.sourceforge.net> * configure.in: Check for MINGW32_CC and MINGW64_CC. * configure: Regenerate. * Makefile.in: Use MINGW32_CC and MINGW64_CC to build 32-bit and 64-bit DLLs. Remove references to mingw and w32api directories. * cyglsa64.dll: Remove from version control. * make-64bit-version-with-mingw-w64.sh: Remove.
Diffstat (limited to 'winsup/lsaauth/Makefile.in')
-rw-r--r--winsup/lsaauth/Makefile.in46
1 files changed, 27 insertions, 19 deletions
diff --git a/winsup/lsaauth/Makefile.in b/winsup/lsaauth/Makefile.in
index bb585dfda..2bb08fbec 100644
--- a/winsup/lsaauth/Makefile.in
+++ b/winsup/lsaauth/Makefile.in
@@ -29,17 +29,16 @@ INSTALL_DATA := @INSTALL_DATA@
CC := @CC@
CC_FOR_TARGET := $(CC)
+MINGW32_CC := @MINGW32_CC@
+MINGW64_CC := @MINGW64_CC@
+
CFLAGS := @CFLAGS@
include $(srcdir)/../Makefile.common
-WIN32_INCLUDES := -I. -I$(srcdir) $(w32api_include) $(w32api_include)/ddk
-WIN32_CFLAGS := $(CFLAGS) $(WIN32_COMMON) $(WIN32_INCLUDES)
-WIN32_LDFLAGS := $(CFLAGS) $(WIN32_COMMON) -nostdlib -Wl,-shared
-
-ifdef MINGW_CC
-override CC:=${MINGW_CC}
-endif
+WIN32_INCLUDES := -I. -I$(srcdir)
+WIN32_CFLAGS := $(CFLAGS) $(WIN32_INCLUDES)
+WIN32_LDFLAGS := $(CFLAGS) -nostdlib -Wl,-shared
# Never again try to remove advapi32. It does not matter if the DLL calls
# advapi32 functions or the equivalent ntdll functions.
@@ -47,21 +46,33 @@ endif
# not recognized by LSA.
LIBS := -ladvapi32 -lkernel32 -lntdll
-DLL := cyglsa.dll
-DEF_FILE:= cyglsa.def
+DLL32 := cyglsa.dll
+DEF32 := cyglsa.def
+OBJ32 := cyglsa.o
-OBJ = cyglsa.o
+DLL64 := cyglsa64.dll
+DEF64 := cyglsa64.def
+OBJ64 := cyglsa64.o
.SUFFIXES:
.NOEXPORT:
-all: Makefile $(DLL)
+all: Makefile $(DLL32) $(DLL64)
-$(DEF_FILE): cyglsa.din config.status
+$(DEF32): cyglsa.din config.status
$(SHELL) config.status
-$(DLL): $(OBJ) $(DEF_FILE)
- $(CC) -s $(WIN32_LDFLAGS) -o $@ $^ $(LIBS)
+$(DLL32): $(OBJ32) $(DEF32)
+ $(MINGW32_CC) -s $(WIN32_LDFLAGS) -o $@ $^ $(LIBS)
+
+$(OBJ32): cyglsa.c
+ $(MINGW32_CC) $(WIN32_CFLAGS) -c -o $@ $<
+
+$(DLL64): $(OBJ64) $(DEF64)
+ $(MINGW64_CC) -s $(WIN32_LDFLAGS) -o $@ $^ $(LIBS)
+
+$(OBJ64): cyglsa.c
+ $(MINGW64_CC) $(WIN32_CFLAGS) -c -o $@ $<
.PHONY: all install clean realclean
@@ -73,9 +84,6 @@ clean:
install: all
$(SHELL) $(updir1)/mkinstalldirs $(DESTDIR)$(bindir)
- $(INSTALL_PROGRAM) $(DLL) $(DESTDIR)$(bindir)/$(DLL)
- $(INSTALL_PROGRAM) $(srcdir)/cyglsa64.dll $(DESTDIR)$(bindir)/cyglsa64.dll
+ $(INSTALL_PROGRAM) $(DLL32) $(DESTDIR)$(bindir)/$(DLL32)
+ $(INSTALL_PROGRAM) $(DLL64) $(DESTDIR)$(bindir)/$(DLL64)
$(INSTALL_PROGRAM) $(srcdir)/cyglsa-config $(DESTDIR)$(bindir)/cyglsa-config
-
-%.o: %.c
- $(CC) $(WIN32_CFLAGS) -c -o $@ $<