* Do not define _BSD_SOURCE but define _DEFAULT_SOURCE instead.
[alpine.git] / imap / src / osdep / unix / Makefile.gss
blob440647e97de22e18791faa63abae42ede0affacb
1 # ========================================================================
2 # Copyright 1988-2007 University of Washington
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 #     http://www.apache.org/licenses/LICENSE-2.0
10
11 # ========================================================================
13 # Program:      GSSAPI makefile
15 # Author:       Mark Crispin
16 #               Networks and Distributed Computing
17 #               Computing & Communications
18 #               University of Washington
19 #               Administration Building, AG-44
20 #               Seattle, WA  98195
21 #               Internet: MRC@CAC.Washington.EDU
23 # Date:         11 May 1989
24 # Last Edited:  4 April 2007
27 # Extended flags needed for additional authenticators.  You may need to modify.
29 GSSDIR=/usr/local
30 GSSINCLUDE=$(GSSDIR)/include
31 GSSLIB=$(GSSDIR)/lib
32 GSSCFLAGS= -I$(GSSINCLUDE) -DGSS_C_NT_HOSTBASED_SERVICE=gss_nt_service_name -DKRB5_DEPRECATED=1
33 GSSOLDLDFLAGS= -L$(GSSLIB) -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err
34 GSSNEWLDFLAGS= -L$(GSSLIB) -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
36 gss:    # GSSAPI Kerberos V flags
37         echo $(GSSCFLAGS) >> OSCFLAGS
38         sh -c '(test -f $(GSSLIB)/libk5crypto.a) && echo $(GSSNEWLDFLAGS) || echo $(GSSOLDLDFLAGS)' >> LDFLAGS
39         echo "#include \"kerb_mit.c\"" >> auths.c