Makefile revision 4a19049349b8aa3a6f741b8303a0a60e1fa770c9
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER START
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# The contents of this file are subject to the terms of the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Common Development and Distribution License (the "License").
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You may not use this file except in compliance with the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# See the License for the specific language governing permissions
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# and limitations under the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# When distributing Covered Code, include this CDDL HEADER in each
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# If applicable, add the following below this CDDL HEADER, with the
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden# fields enclosed by brackets "[]" replaced with your own identifying
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# information: Portions Copyright [yyyy] [name of copyright owner]
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER END
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden# Use is subject to license terms.
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden# ident "%Z%%M% %I% %E% SMI"
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenSBINPROG = makedbm ypalias ypinit yppoll ypset
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenNETYPPROG = ypbind ypxfr yppush udpublickey mkalias \
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden ypxfr_1perday ypxfr_1perhour ypxfr_2perday \
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenPROG= $(BINPROG) $(SBINPROG) $(NETYPPROG) $(NIS2LDAPPROG) $(METHOD)
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden# installed directories
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenROOTDIRS = $(ROOT) $(ROOTUSR) $(ROOTLIB) $(ROOTETC) $(ROOTVAR) \
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden $(NETSVC) $(NETYP) $(ROOTVAR_YP) $(ROOTBINDING) \
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden$(NIS2LDAPPROG) := LDLIBS += -lc -lnsl -lnisdb
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenYPFILES = Makefile aliases nicknames updaters
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenTXTS= $(ETCFILES:%=net_files/%) $(YPFILES:%=net_files/%)
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenSUBDIRS = yppasswd mknetid revnetgroup ypupdated yp2lscripts
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenYPBINDOBJ= yp_b_svc.o yp_b_subr.o rpc_bootstrap.o getlist.o
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden# Some sort of obsolete idea of common files which are only now used by a
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden# few minor utilities
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden# Objects shared between all the major components
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenSHAREDOBJ= $(SHARED_DIR)/utils.o $(SHARED_DIR)/lockmap.o $(SHARED_DIR)/ancil.o
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenYPXFROBJ = ypxfr.o ypxfrd_client.o ypxfrd_xdr.o
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenYPXFRDOBJ = ypxfrd_svc.o ypxfrd_xdr.o ypxfrd_server.o \
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenNETYPOBJ = $(YPXFROBJ) $(YPXFRDOBJ) $(YPSERVOBJ) $(YPPUSHOBJ) \
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenOBJS = $(NETYPOBJ) $(MKALIASOBJ) $(COMMONOBJ) $(SHAREDOBJ) \
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden $(YPPUSHOBJ) $(YPMATOBJ) $(YPWHIOBJ) $(YPCATOBJ) \
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden $(STDETHERSOBJ) $(STDHOSTSOBJ) makedbm.o ypalias.o pong.o
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#COMMONCLNTSRC = $(COMMONCLNTOBJ:.o=.c)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#conditional assignments
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweypalias.o := CPPFLAGS= -DMAIN $(CPPFLAGS.master)
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov$(SHAREDOBJ) := CPPFLAGS += -I$(SRC)/lib/libnisdb/yptol
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# non-default file attributes to avoid conflict with rpcsrc
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# install rules
$(POST_PROCESS)
$(POST_PROCESS)
$(POST_PROCESS)
$(POST_PROCESS)
$(POST_PROCESS)
$(POST_PROCESS)
$(POST_PROCESS)
$(POST_PROCESS)
$(POST_PROCESS)
$(POST_PROCESS)
$(POST_PROCESS)
$(POST_PROCESS)
$(ROOTMETHOD)
$(ROOTDIRS):
$(INS.dir)
FRC: