Print this page
XXX Remove nawk(1)
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/lvm/rpc.metamhd/sparc/Makefile
+++ new/usr/src/cmd/lvm/rpc.metamhd/sparc/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License, Version 1.0 only
6 6 # (the "License"). You may not use this file except in compliance
7 7 # with the License.
8 8 #
9 9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 10 # or http://www.opensolaris.org/os/licensing.
11 11 # See the License for the specific language governing permissions
12 12 # and limitations under the License.
13 13 #
14 14 # When distributing Covered Code, include this CDDL HEADER in each
15 15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
16 16 # If applicable, add the following below this CDDL HEADER, with the
17 17 # fields enclosed by brackets "[]" replaced with your own identifying
18 18 # information: Portions Copyright [yyyy] [name of copyright owner]
19 19 #
20 20 # CDDL HEADER END
21 21 #
22 22 #
23 23 # Copyright 1996, 2001-2003 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 -# ident "%Z%%M% %I% %E% SMI"
27 -#
28 26 # Makefile for logical volume management
29 27 #
30 28
31 29 PROG= rpc.metamhd
32 30
33 31 RPCMOD = metamhd
34 32
35 33 DERIVED_FILES = \
36 34 $(RPCMOD)_svc.c \
37 35 $(RPCMOD)_xdr.c \
38 36 mhdx_xdr.c
39 37
40 38 OBJECTS= \
41 39 mhd_drive.o \
42 40 mhd_error.o \
43 41 mhd_failfast.o \
44 42 mhd_freeresult.o \
45 43 mhd_init.o \
46 44 mhd_mem.o \
47 45 mhd_metamhd.o \
48 46 mhd_set.o \
49 47 mhd_synch.o \
50 48 mhd_time.o
51 49
52 50 LINTOBJECTS= \
53 51 mhd_drive.o \
54 52 mhd_error.o \
55 53 mhd_failfast.o \
56 54 mhd_freeresult.o \
57 55 mhd_init.o \
58 56 mhd_mem.o \
59 57 mhd_metamhd.o \
60 58 mhd_set.o \
61 59 mhd_synch.o \
62 60 mhd_time.o
63 61
64 62 OBJECTS += $(DERIVED_FILES:.c=.o)
65 63
66 64 SRCS = $(OBJECTS:%.o=../%.c)
67 65 LINTSRCS = $(LINTOBJECTS:%.o=../%.c)
68 66
69 67 include ../../../Makefile.cmd
70 68 include ../../Makefile.lvm
71 69
72 70
73 71 MDLIBS =
74 72 LDLIBS += -ladm -lsocket -lnsl
75 73
76 74 POFILES= $(OBJECTS:%.o=%.po)
77 75
78 76
79 77 $(RPCMOD)_svc.c := RPCGENFLAGS += -A -K -1
80 78
81 79 DEFINES += -D_REENTRANT
82 80 CFLAGS += $(DEFINES)
83 81
84 82
85 83 #
86 84 #
87 85 lint := LINTFLAGS += -m
88 86
89 87 .KEEP_STATE:
90 88
91 89 %.o: ../%.c
92 90 $(COMPILE.c) $<
93 91
94 92 all: $(PROG)
95 93
96 94 $(PROG): $(OBJECTS)
97 95 $(LINK.c) -o $@ $(OBJECTS) $(LDLIBS)
98 96 $(POST_PROCESS)
99 97
100 98
101 99 ROOTUSRSBINPROG=$(PROG:%=$(ROOTUSRSBIN)/%)
102 100 install: all $(ROOTUSRSBINPROG)
103 101
104 102 catalog:
105 103
106 104 cstyle:
107 105 ${CSTYLE} ${SRCS}
108 106
109 107 lint:
110 108 ${LINT.c} $(LINTFLAGS) ${LINTSRCS}
111 109
112 110 clean:
113 111 ${RM} ${OBJECTS} ${DERIVED_FILES} *.o a.out core metamhd.x
114 112
115 113 clobber: clean
116 114 ${RM} $(PROG)
117 115
↓ open down ↓ |
80 lines elided |
↑ open up ↑ |
118 116 metamhd_svc.c: $(SRC)/head/metamhd.x
119 117 $(CP) $(SRC)/head/metamhd.x .
120 118 $(RPCGEN) $(RPCGENFLAGS_SERVER) metamhd.x -o $@
121 119 ${RM} metamhd.x
122 120
123 121 metamhd_xdr.c: $(SRC)/head/metamhd.x
124 122 $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/head/metamhd.x -o $@
125 123
126 124 mhdx_xdr.c: $(SRC)/uts/common/sys/lvm/mhdx.x
127 125 $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/uts/common/sys/lvm/mhdx.x | \
128 - nawk '{sub(/uts\/common\/sys\/lvm/, "head") ; print $$0}' >$@
126 + /usr/xpg4/bin/awk '{sub(/uts\/common\/sys\/lvm/, "head") ; print $$0}' >$@
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX