]>
sourceware.org Git - newlib-cygwin.git/blob - winsup/lsaauth/Makefile.in
1 # Copyright (c) 2006, 2008, 2009, 2011, 2012 Red Hat, Inc.
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
8 # A copy of the GNU General Public License can be found at
11 # Written by Corinna Vinschen <vinschen@redhat.de>
13 # Makefile for Cygwin subauthentication DLL.
20 exec_prefix := @
exec_prefix@
23 etcdir
:= $(exec_prefix)/etc
26 INSTALL_PROGRAM
:= @INSTALL_PROGRAM@
27 INSTALL_DATA
:= @INSTALL_DATA@
30 CC_FOR_TARGET
:= $(CC
)
32 MINGW32_CC
:= @MINGW32_CC@
33 MINGW64_CC
:= @MINGW64_CC@
37 include $(srcdir)/..
/Makefile.common
39 WIN32_INCLUDES
:= -I.
-I
$(srcdir)
40 WIN32_CFLAGS
:= $(CFLAGS
) $(WIN32_INCLUDES
)
41 WIN32_LDFLAGS
:= $(CFLAGS
) -nostdlib
-Wl
,-shared
43 # Never again try to remove advapi32. It does not matter if the DLL calls
44 # advapi32 functions or the equivalent ntdll functions.
45 # But if the LSA authentication DLL is not linked against advapi32, it's
46 # not recognized by LSA.
47 LIBS
:= -ladvapi32
-lkernel32
-lntdll
60 all: Makefile
$(DLL32
) $(DLL64
)
62 $(DEF32
): cyglsa.din config.status
63 $(SHELL
) config.status
65 $(DLL32
): $(OBJ32
) $(DEF32
)
66 $(MINGW32_CC
) -s
$(WIN32_LDFLAGS
) -o
$@
$^
$(LIBS
)
69 $(MINGW32_CC
) $(WIN32_CFLAGS
) -c
-o
$@
$<
71 $(DLL64
): $(OBJ64
) $(DEF64
)
72 $(MINGW64_CC
) -s
$(WIN32_LDFLAGS
) -o
$@
$^
$(LIBS
)
75 $(MINGW64_CC
) $(WIN32_CFLAGS
) -c
-o
$@
$<
77 .PHONY
: all install clean realclean
80 rm -f Makefile config.cache
83 rm -f
*.o
*.dll cyglsa.def
86 /bin
/mkdir
-p
$(DESTDIR
)$(bindir)
87 $(INSTALL_PROGRAM
) $(DLL32
) $(DESTDIR
)$(bindir)/$(DLL32
)
88 $(INSTALL_PROGRAM
) $(DLL64
) $(DESTDIR
)$(bindir)/$(DLL64
)
89 $(INSTALL_PROGRAM
) $(srcdir)/cyglsa-config
$(DESTDIR
)$(bindir)/cyglsa-config
This page took 0.036671 seconds and 5 git commands to generate.