usr/src/cmd/apache/mod_auth_gss/Makefile
changeset 54 c8df60226931
parent 53 9e14a282afba
child 55 b08b051f573a
equal deleted inserted replaced
53:9e14a282afba 54:c8df60226931
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License (the "License").
       
     6 # You may not use this file except in compliance with the License.
       
     7 #
       
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9 # or http://www.opensolaris.org/os/licensing.
       
    10 # See the License for the specific language governing permissions
       
    11 # and limitations under the License.
       
    12 #
       
    13 # When distributing Covered Code, include this CDDL HEADER in each
       
    14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15 # If applicable, add the following below this CDDL HEADER, with the
       
    16 # fields enclosed by brackets "[]" replaced with your own identifying
       
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
       
    22 # Use is subject to license terms.
       
    23 #
       
    24 #ident	"@(#)Makefile	1.3	07/03/09 SMI"
       
    25 #
       
    26 
       
    27 include ../../Makefile.cmd
       
    28 
       
    29 GSS_CPPFLAGS =  -DEAPI -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gssapi
       
    30 GSS_LDFLAGS =  -lgss -lresolv
       
    31 
       
    32 CPPFLAGS = -I. $(GSS_CPPFLAGS) $(DEFS) -I../$(SERVER)/src/include -I../$(SERVER)/src/os/unix
       
    33 LDFLAGS = -zcombreloc -G $(GSS_LDFLAGS)
       
    34 CFLAGS =
       
    35 
       
    36 all: mod_auth_gss.so
       
    37 
       
    38 install: mod_auth_gss.so
       
    39 	../$(SERVER)/src/helpers/install.sh -c -m 755 mod_auth_gss.so $(ROOT)/usr/apache/libexec/mod_auth_gss.so
       
    40 
       
    41 clobber clean:
       
    42 	$(RM) *.o *.so *.la *.lo core
       
    43 
       
    44 .SUFFIXES:	.o .so
       
    45 
       
    46 .c.o:
       
    47 	$(CC) -c $(CPPFLAGS) $<
       
    48 
       
    49 .c.so:
       
    50 	$(CC) -c $(CPPFLAGS) $< 
       
    51 	$(LD) $(LDFLAGS) -o $@ $*.o 
       
    52 
       
    53 .PHONY: all install clean distclean