17c478bd9Sstevel@tonic-gate# 27c64d375Smp153739# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 37c478bd9Sstevel@tonic-gate# Use is subject to license terms. 47c478bd9Sstevel@tonic-gate# 57c478bd9Sstevel@tonic-gate 67c478bd9Sstevel@tonic-gatePROG= krb5kdc 77c478bd9Sstevel@tonic-gateMANIFEST= krb5kdc.xml 87c478bd9Sstevel@tonic-gate 97c478bd9Sstevel@tonic-gateOBJS = \ 107c478bd9Sstevel@tonic-gate dispatch.o\ 117c478bd9Sstevel@tonic-gate do_as_req.o\ 127c478bd9Sstevel@tonic-gate do_tgs_req.o\ 137c478bd9Sstevel@tonic-gate extern.o\ 147c478bd9Sstevel@tonic-gate kdc_preauth.o\ 157c478bd9Sstevel@tonic-gate kdc_util.o\ 167c478bd9Sstevel@tonic-gate main.o\ 177c478bd9Sstevel@tonic-gate network.o\ 187c478bd9Sstevel@tonic-gate policy.o\ 197c478bd9Sstevel@tonic-gate replay.o \ 207c478bd9Sstevel@tonic-gate sock2p.o 217c478bd9Sstevel@tonic-gate 227c478bd9Sstevel@tonic-gateSRCS = $(OBJS:.o=.c) 237c478bd9Sstevel@tonic-gate 247c478bd9Sstevel@tonic-gateDEFS = -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 \ 257c478bd9Sstevel@tonic-gate -DHAVE_SYSLOG_H=1 -DHAVE_STDARG_H=1 \ 267c478bd9Sstevel@tonic-gate -DHAVE_SYS_SELECT_H=1 -DHAVE_OPENLOG=1 \ 277c478bd9Sstevel@tonic-gate -DHAVE_SYSLOG=1 -DHAVE_CLOSELOG=1 -DHAVE_STRFTIME=1\ 287c478bd9Sstevel@tonic-gate -DHAVE_VSPRINTF=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1 \ 297c478bd9Sstevel@tonic-gate -DHAVE_NETINET_IN_H=1 -DHAVE_INET_NTOP=1 \ 307c478bd9Sstevel@tonic-gate -DHAVE_SYS_SOCKIO_H=1 -DHAVE_SYS_SELECT_H=1 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gateCLOBBERFILES += $(RSRC) 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd 357c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 367c478bd9Sstevel@tonic-gate 377c478bd9Sstevel@tonic-gatePOFILE = $(PROG).po 387c478bd9Sstevel@tonic-gatePOFILES = generic.po 397c478bd9Sstevel@tonic-gate 407c478bd9Sstevel@tonic-gateROOTMANIFESTDIR= $(ROOTSVCNETWORKSECURITY) 417c478bd9Sstevel@tonic-gate 427c478bd9Sstevel@tonic-gateCFLAGS += $(CCOPTS) $(DEFS) $(LOCALINCLUDE) 436a3e8e86SRichard Lowe# The SET macros in network.c will be mis-optimized if GCC believes it 446a3e8e86SRichard Lowe# may rely on undefined signed overflow behaviour. 451a5ea532SRichard LoweCFLAGS += -_gcc=-fno-strict-overflow 467c478bd9Sstevel@tonic-gate 477c478bd9Sstevel@tonic-gateCPPFLAGS += \ 487c478bd9Sstevel@tonic-gate -I$(SRC)/lib/gss_mechs/mech_krb5/include \ 497c478bd9Sstevel@tonic-gate -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5\ 507c478bd9Sstevel@tonic-gate -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ 517c478bd9Sstevel@tonic-gate -DHAVE_SYSLOG_H=1 527c478bd9Sstevel@tonic-gate 53*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 54*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function 55*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-type-limits 56*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration 57*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 58*7014882cSRichard Lowe 5967e3a03eSrieLDFLAGS += $(KRUNPATH) $(KERBRUNPATH) 607c478bd9Sstevel@tonic-gateLDLIBS += -L$(ROOT_KLIBDIR) -L$(KRB5LIB) \ 617c478bd9Sstevel@tonic-gate -lmech_krb5 -lkdb -lkadm5srv -lnsl -lsocket -lbsm -lc 627c478bd9Sstevel@tonic-gate 637c478bd9Sstevel@tonic-gate.KEEP_STATE: 647c478bd9Sstevel@tonic-gate 657c478bd9Sstevel@tonic-gateall: $(PROG) 667c478bd9Sstevel@tonic-gate 677c478bd9Sstevel@tonic-gate$(PROG): $(OBJS) 687c478bd9Sstevel@tonic-gate $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 697c478bd9Sstevel@tonic-gate $(POST_PROCESS) 707c478bd9Sstevel@tonic-gate 717c478bd9Sstevel@tonic-gate$(KRB5LIBPROG):= FILEMODE = 500 727c478bd9Sstevel@tonic-gate 73a192e900Samaguireinstall: $(KRB5LIBPROG) $(ROOTSVCMETHOD) $(ROOTMANIFEST) 747c478bd9Sstevel@tonic-gate 757c478bd9Sstevel@tonic-gatecheck: $(CHKMANIFEST) 767c478bd9Sstevel@tonic-gate 777c478bd9Sstevel@tonic-gateclean: 787c478bd9Sstevel@tonic-gate $(RM) $(OBJS) 797c478bd9Sstevel@tonic-gate 807c478bd9Sstevel@tonic-gatelint: lint_SRCS 817c478bd9Sstevel@tonic-gate 827c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ 837c478bd9Sstevel@tonic-gate 847c478bd9Sstevel@tonic-gate$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES) 857c478bd9Sstevel@tonic-gate $(RM) $@ 867c478bd9Sstevel@tonic-gate $(CAT) $(POFILES) > $@ 877c478bd9Sstevel@tonic-gate 887c478bd9Sstevel@tonic-gategeneric.po: FRC 897c478bd9Sstevel@tonic-gate $(RM) messages.po 907c478bd9Sstevel@tonic-gate $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]` 917c478bd9Sstevel@tonic-gate $(SED) "/^domain/d" messages.po > $@ 927c478bd9Sstevel@tonic-gate $(RM) messages.po 937c478bd9Sstevel@tonic-gate 947c478bd9Sstevel@tonic-gateFRC: 95