Makefile (f808c858fa61e7769218966759510a8b1190dfcf) | Makefile (36e852a172cba914383d7341c988128b2c667fbd) |
---|---|
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 --- 5 unchanged lines hidden (view full) --- 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# | 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 --- 5 unchanged lines hidden (view full) --- 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# |
22# Copyright 2006 Sun Microsystems, Inc. All rights reserved. | 22# Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
23# Use is subject to license terms. 24# | 23# Use is subject to license terms. 24# |
25# ident "%Z%%M% %I% %E% SMI" | |
26# 27 28PROTOCOL_DIR= $(ROOTHDRDIR)/rpcsvc 29PROTOCOL_SRCDIR= $(SRC)/head/rpcsvc 30PROTOCOL_UTS_SRCDIR= $(SRC)/uts/common/rpc 31 32SUBDIRS = $(MACH) 33$(BUILD64)SUBDIRS += $(MACH64) 34 35# objects are listed by source directory 36 37# common utility code used in more than one directory 38RPC_DERIVED_FILES= 39 40GEN_DERIVED_FILES= \ | 25# 26 27PROTOCOL_DIR= $(ROOTHDRDIR)/rpcsvc 28PROTOCOL_SRCDIR= $(SRC)/head/rpcsvc 29PROTOCOL_UTS_SRCDIR= $(SRC)/uts/common/rpc 30 31SUBDIRS = $(MACH) 32$(BUILD64)SUBDIRS += $(MACH64) 33 34# objects are listed by source directory 35 36# common utility code used in more than one directory 37RPC_DERIVED_FILES= 38 39GEN_DERIVED_FILES= \ |
41 nis/gen/nis_clnt.h \ 42 nis/gen/nis_clnt.c | 40 nis/gen/nis_clnt.h |
43 | 41 |
44CACHE_DERIVED_FILES= \ 45 nis/cache/nis_clnt.h \ 46 nis/cache/nis_cache.h \ 47 nis/cache/nis_cache_clnt.cc \ 48 nis/cache/nis_cache_xdr.cc | |
49 50PROTOCOL_FILES= \ 51 $(PROTOCOL_DIR)/daemon_utils.h \ 52 $(PROTOCOL_DIR)/nis.x \ 53 $(PROTOCOL_DIR)/nis.h \ | 42 43PROTOCOL_FILES= \ 44 $(PROTOCOL_DIR)/daemon_utils.h \ 45 $(PROTOCOL_DIR)/nis.x \ 46 $(PROTOCOL_DIR)/nis.h \ |
54 $(PROTOCOL_DIR)/nis_object.x \ 55 $(PROTOCOL_DIR)/nis_callback.x \ 56 $(PROTOCOL_DIR)/nis_callback.h \ 57 $(PROTOCOL_DIR)/nis_cache.x \ 58 $(PROTOCOL_DIR)/nis_cache.h | 47 $(PROTOCOL_DIR)/nis_object.x |
59 60PROTOCOL_FILES_UTS= \ 61 $(PROTOCOL_DIR)/key_prot.x 62 | 48 49PROTOCOL_FILES_UTS= \ 50 $(PROTOCOL_DIR)/key_prot.x 51 |
63DERIVED_FILES= $(GEN_DERIVED_FILES) $(CACHE_DERIVED_FILES) $(RPC_DERIVED_FILES) | 52DERIVED_FILES= $(GEN_DERIVED_FILES) $(RPC_DERIVED_FILES) |
64 65# 66# Make sure they get cleaned when necessary 67# 68CLEANFILES += $(DERIVED_FILES) 69 70# include library definitions 71include ../Makefile.lib --- 41 unchanged lines hidden (view full) --- 113 114$(PROTOCOL_DIR)/nis.h: $(PROTOCOL_SRCDIR)/nis.x $(PROTOCOL_SRCDIR)/nis_object.x 115 $(RPCGEN) -C -h $(PROTOCOL_SRCDIR)/nis.x > nis-tmp.h 116 $(SED) -e '/EDIT_START/,$$ d' < nis-tmp.h > nis.h 117 $(RM) $@ 118 $(INS) -s -m $(FILEMODE) -f $(@D) nis.h 119 $(RM) nis.h nis-tmp.h 120 | 53 54# 55# Make sure they get cleaned when necessary 56# 57CLEANFILES += $(DERIVED_FILES) 58 59# include library definitions 60include ../Makefile.lib --- 41 unchanged lines hidden (view full) --- 102 103$(PROTOCOL_DIR)/nis.h: $(PROTOCOL_SRCDIR)/nis.x $(PROTOCOL_SRCDIR)/nis_object.x 104 $(RPCGEN) -C -h $(PROTOCOL_SRCDIR)/nis.x > nis-tmp.h 105 $(SED) -e '/EDIT_START/,$$ d' < nis-tmp.h > nis.h 106 $(RM) $@ 107 $(INS) -s -m $(FILEMODE) -f $(@D) nis.h 108 $(RM) nis.h nis-tmp.h 109 |
121$(PROTOCOL_DIR)/nis_callback.h: $(PROTOCOL_SRCDIR)/nis_callback.x 122 $(RPCGEN) -C -h $(PROTOCOL_SRCDIR)/nis_callback.x -o nis_callback.h 123 $(RM) $@ 124 $(INS) -s -m $(FILEMODE) -f $(@D) nis_callback.h 125 $(RM) nis_callback.h 126 127$(PROTOCOL_DIR)/nis_cache.h: $(PROTOCOL_SRCDIR)/nis_cache.x 128 $(RPCGEN) -C -h $(PROTOCOL_SRCDIR)/nis_cache.x -o nis_cache.h 129 $(RM) $@ 130 $(INS) -s -m $(FILEMODE) -f $(@D) nis_cache.h 131 $(RM) nis_cache.h 132 | |
133$(PROTOCOL_DIR)/%.x: $(PROTOCOL_SRCDIR)/%.x 134 $(INS.file) 135 136$(PROTOCOL_DIR)/%.x: $(PROTOCOL_UTS_SRCDIR)/%.x 137 $(INS.file) 138 139# 140# Rules for building the derived files 141# 142# Derived header files 143# 144nis/gen/nis_clnt.h: $(PROTOCOL_DIR)/nis.x $(PROTOCOL_DIR)/nis_object.x 145 $(RPCGEN) -C -h $(PROTOCOL_DIR)/nis.x > nis_clnt-gen.h 146 $(SED) -n -e '/EDIT_START/,$$ p' < nis_clnt-gen.h |\ 147 $(SED) -e 's/_3_svc/_svc/' |\ 148 $(SED) -e 's/_3/_clnt/' > $@ 149 $(RM) nis_clnt-gen.h 150 | 110$(PROTOCOL_DIR)/%.x: $(PROTOCOL_SRCDIR)/%.x 111 $(INS.file) 112 113$(PROTOCOL_DIR)/%.x: $(PROTOCOL_UTS_SRCDIR)/%.x 114 $(INS.file) 115 116# 117# Rules for building the derived files 118# 119# Derived header files 120# 121nis/gen/nis_clnt.h: $(PROTOCOL_DIR)/nis.x $(PROTOCOL_DIR)/nis_object.x 122 $(RPCGEN) -C -h $(PROTOCOL_DIR)/nis.x > nis_clnt-gen.h 123 $(SED) -n -e '/EDIT_START/,$$ p' < nis_clnt-gen.h |\ 124 $(SED) -e 's/_3_svc/_svc/' |\ 125 $(SED) -e 's/_3/_clnt/' > $@ 126 $(RM) nis_clnt-gen.h 127 |
151nis/cache/nis_clnt.h: $(PROTOCOL_DIR)/nis.x $(PROTOCOL_DIR)/nis_object.x 152 $(RPCGEN) -C -h $(PROTOCOL_DIR)/nis.x > nis_clnt-cache.h 153 $(SED) -n -e '/EDIT_START/,$$ p' < nis_clnt-cache.h |\ 154 $(SED) -e 's/_3_svc/_svc/' |\ 155 $(SED) -e 's/_3/_clnt/' > $@ 156 $(RM) nis_clnt-cache.h 157 | |
158# 159# Derived source files 160# | 128# 129# Derived source files 130# |
161nis/gen/nis_clnt.c: $(PROTOCOL_DIR)/nis.x $(PROTOCOL_DIR)/nis_object.x 162 $(RPCGEN) -C -l $(PROTOCOL_DIR)/nis.x > nis_clnt-tmp.c 163 $(SED) -e 's!\"$(PROTOCOL_DIR)/nis.h\"!\<rpcsvc/nis.h\>!' \ 164 < nis_clnt-tmp.c |\ 165 $(SED) -e '/#include <memory.h>/i\ 166#include "mt.h"' |\ 167 $(SED) -e 's/_3/_clnt/' > $@ 168 $(RM) nis_clnt-tmp.c | |
169 | 131 |
170nis/cache/nis_cache_xdr.cc: $(PROTOCOL_DIR)/nis_cache.x 171 $(RPCGEN) -C -c $(PROTOCOL_DIR)/nis_cache.x |\ 172 $(SED) -e 's!\"$(PROTOCOL_DIR)/nis_cache.h\"!"nis_cache.h"!' > $@ 173 174nis/cache/nis_cache_clnt.cc: $(PROTOCOL_DIR)/nis_cache.x 175 $(RPCGEN) -C -l $(PROTOCOL_DIR)/nis_cache.x |\ 176 $(SED) -e '/#include <memory.h>/i\ 177#include "mt.h"' |\ 178 $(SED) -e 's!\"$(PROTOCOL_DIR)/nis_cache.h\"!"nis_cache.h"!' > $@ 179 180nis/cache/nis_cache.h: $(PROTOCOL_DIR)/nis_cache.x 181 $(RPCGEN) -C -h $(PROTOCOL_DIR)/nis_cache.x |\ 182 $(SED) -e 's!\"$(PROTOCOL_DIR)/nis_cache.h\"!"nis_cache.h"!' > $@ 183 | |
184# include library targets 185include ../Makefile.targ 186 187# EXPORT DELETE START 188# CRYPT DELETE START 189# Special target to clean up the source tree for export distribution 190# Warning: This target changes the source tree 191EXPORT_SRC: --- 54 unchanged lines hidden --- | 132# include library targets 133include ../Makefile.targ 134 135# EXPORT DELETE START 136# CRYPT DELETE START 137# Special target to clean up the source tree for export distribution 138# Warning: This target changes the source tree 139EXPORT_SRC: --- 54 unchanged lines hidden --- |