]> sourceware.org Git - newlib-cygwin.git/blob - winsup/lsaauth/Makefile.in
cygwin/ChangeLog:
[newlib-cygwin.git] / winsup / lsaauth / Makefile.in
1 # Copyright (c) 2006, 2008, 2009, 2011, 2012 Red Hat, Inc.
2 #
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.
7 #
8 # A copy of the GNU General Public License can be found at
9 # http://www.gnu.org/
10 #
11 # Written by Corinna Vinschen <vinschen@redhat.de>
12 #
13 # Makefile for Cygwin subauthentication DLL.
14
15 SHELL := @SHELL@
16
17 srcdir := @srcdir@
18 VPATH := @srcdir@
19 prefix := @prefix@
20 exec_prefix := @exec_prefix@
21
22 bindir := @bindir@
23 etcdir := $(exec_prefix)/etc
24
25 INSTALL := @INSTALL@
26 INSTALL_PROGRAM := @INSTALL_PROGRAM@
27 INSTALL_DATA := @INSTALL_DATA@
28
29 CC := @CC@
30 CC_FOR_TARGET := $(CC)
31
32 MINGW32_CC := @MINGW32_CC@
33 MINGW64_CC := @MINGW64_CC@
34
35 CFLAGS := @CFLAGS@
36
37 include $(srcdir)/../Makefile.common
38
39 WIN32_INCLUDES := -I. -I$(srcdir)
40 WIN32_CFLAGS := $(CFLAGS) $(WIN32_INCLUDES)
41 WIN32_LDFLAGS := $(CFLAGS) -nostdlib -Wl,-shared
42
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
48
49 DLL32 := cyglsa.dll
50 DEF32 := cyglsa.def
51 OBJ32 := cyglsa.o
52
53 DLL64 := cyglsa64.dll
54 DEF64 := cyglsa64.def
55 OBJ64 := cyglsa64.o
56
57 .SUFFIXES:
58 .NOEXPORT:
59
60 all: Makefile $(DLL32) $(DLL64)
61
62 $(DEF32): cyglsa.din config.status
63 $(SHELL) config.status
64
65 $(DLL32): $(OBJ32) $(DEF32)
66 $(MINGW32_CC) -s $(WIN32_LDFLAGS) -o $@ $^ $(LIBS)
67
68 $(OBJ32): cyglsa.c
69 $(MINGW32_CC) $(WIN32_CFLAGS) -c -o $@ $<
70
71 $(DLL64): $(OBJ64) $(DEF64)
72 $(MINGW64_CC) -s $(WIN32_LDFLAGS) -o $@ $^ $(LIBS)
73
74 $(OBJ64): cyglsa.c
75 $(MINGW64_CC) $(WIN32_CFLAGS) -c -o $@ $<
76
77 .PHONY: all install clean realclean
78
79 realclean: clean
80 rm -f Makefile config.cache
81
82 clean:
83 rm -f *.o *.dll cyglsa.def
84
85 install: all
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.