Makefile revision 1.37
11.37Schristos# $NetBSD: Makefile,v 1.37 2005/01/10 03:11:50 christos Exp $ 21.8Stls# from: @(#)Makefile 8.1 (Berkeley) 7/19/93 31.1Scgd 41.19Sthorpej.include <bsd.own.mk> 51.37SchristosMKPAM=no 61.19Sthorpej 71.1ScgdPROG= su 81.37SchristosCPPFLAGS+=-DLOGIN_CAP 91.1ScgdBINOWN= root 101.1ScgdBINMODE=4555 111.37Schristos 121.37Schristos.if ${MKPAM} != "no" 131.37Schristos 141.37SchristosCPPFLAGS+=-DUSE_PAM -DPAM_DEBUG 151.37Schristos# XXX: Need libcrypt here, because libcrypto defines it too. 161.37SchristosDPADD+= ${LIBPAM} ${LIBCRYPT} ${LIBUTIL} 171.37SchristosLDADD+= -lpam -lcrypt -lutil 181.37SchristosSRCS=su_pam.c 191.37Schristos 201.37Schristos.else 211.37Schristos 221.37SchristosSRCS=su.c 231.37Schristos 241.37SchristosDPADD+= ${LIBCRYPT} ${LIBUTIL} 251.37SchristosLDADD+= -lcrypt -lutil 261.10Slukem 271.10Slukem# Uncomment the following line to change the group that may su root to "sugroup" 281.10Slukem# 291.32Schristos#CPPFLAGS+=-DSU_GROUP=\"sugroup\" 301.25Ssjg 311.26Ssjg# Uncomment the following line to make su 321.26Ssjg# treat group wheel (SUGROUP) and/or ROOTAUTH as an indirect 331.25Ssjg# list of groups. 341.26Ssjg#CPPFLAGS+=-DSU_INDIRECT_GROUP 351.15Sthorpej 361.34Sdyoung.if (${USE_KERBEROS} != "no") 371.18Sthorpej.ifdef AFS 381.18SthorpejDPADD+= ${LIBKAFS} 391.18SthorpejLDADD+= -lkafs 401.15Sthorpej.endif 411.18Sthorpej 421.20SassarCPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5 431.28SitojunDPADD+= ${LIBKRB5} ${LIBASN1} 441.21SmycroftLDADD+= -lkrb5 -lasn1 451.20Sassar 461.29Sitojun.if (${USE_KERBEROS4} != "no") 471.18SthorpejCPPFLAGS+=-DKERBEROS -I${DESTDIR}/usr/include/kerberosIV 481.33SlhaDPADD+= ${LIBKRB} ${LIBDES} 491.33SlhaLDADD+= -lkrb -ldes 501.29Sitojun.endif 511.20Sassar 521.28SitojunDPADD+= ${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR} 531.23SassarLDADD+= -lcrypto -lroken -lcom_err 541.19Sthorpej.endif 551.7Schristos 561.7Schristos 571.27Sthorpej.if (${USE_SKEY} != "no") 581.11SmycroftCPPFLAGS+=-DSKEY 591.11SmycroftDPADD+= ${LIBSKEY} 601.11SmycroftLDADD+= -lskey 611.14Skim.endif 621.14Skim 631.32Schristos.ifdef SU_ROOTAUTH 641.32SchristosCPPFLAGS+=-DSU_ROOTAUTH=\"${SU_ROOTAUTH}\" 651.7Schristos.endif 661.35Smanu 671.35Smanu.endif 681.37Schristos 691.37Schristos.include <bsd.prog.mk> 70