Makefile revision 1.42
11.42She# $NetBSD: Makefile,v 1.42 2005/03/04 20:41:09 he Exp $ 21.8Stls# from: @(#)Makefile 8.1 (Berkeley) 7/19/93 31.1Scgd 41.19Sthorpej.include <bsd.own.mk> 51.19Sthorpej 61.1ScgdPROG= su 71.1ScgdBINOWN= root 81.1ScgdBINMODE=4555 91.37Schristos 101.41Sthorpej.if ${USE_PAM} != "no" 111.37Schristos 121.37SchristosCPPFLAGS+=-DUSE_PAM -DPAM_DEBUG 131.37Schristos# XXX: Need libcrypt here, because libcrypto defines it too. 141.42SheDPADD+= ${LIBPAM} ${LIBCRYPT} ${LIBUTIL} ${PAM_STATIC_DPADD} 151.42SheLDADD+= -lpam -lcrypt -lutil ${PAM_STATIC_LDADD} 161.37SchristosSRCS=su_pam.c 171.37Schristos 181.37Schristos.else 191.37Schristos 201.37SchristosSRCS=su.c 211.37Schristos 221.38SchristosCPPFLAGS+=-DLOGIN_CAP 231.38Schristos 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