4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License, Version 1.0 only
6 # (the "License"). You may not use this file except in compliance
9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 # or http://www.opensolaris.org/os/licensing.
11 # See the License for the specific language governing permissions
12 # and limitations under the License.
14 # When distributing Covered Code, include this CDDL HEADER in each
15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 # If applicable, add the following below this CDDL HEADER, with the
17 # fields enclosed by brackets "[]" replaced with your own identifying
18 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright 2003 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
27 # Makefile for logical volume management
35 OBJECTS
= metad_freeresult.o \
39 LINTOBJECTS
= metad_freeresult.o \
43 OBJECTS
+= $(DERIVED_FILES
:.c
=.o
)
45 LINTSRCS
= $(LINTOBJECTS
:%.o
=..
/%.c
)
47 SRCS
= $(OBJECTS
:%.o
=..
/%.c
)
49 POFILES
= $(OBJS
:%.o
=%.po
)
51 include ..
/..
/..
/Makefile.cmd
52 include ..
/..
/Makefile.lvm
54 LDLIBS
+= -lmeta
-lsocket
-lnsl
-ldevid
59 lint
:= LINTFLAGS
+= -m
61 %_svc.c
:= RPCGENFLAGS
+= -K
-1
72 $(LINK.c
) -o
$@
$(OBJECTS
) $(LDLIBS
)
75 ROOTUSRSBINPROG
=$(PROG
:%=$(ROOTUSRSBIN
)/%)
76 install: all $(ROOTUSRSBINPROG
)
84 ${LINT.c
} $(LINTFLAGS
) ${LINTSRCS}
87 ${RM} ${OBJS} ${DERIVED_FILES} *.o
90 $(RM
) $(PROG
) $(CLOBBERFILES
)
92 metad_svc.c
: $(SRC
)/head
/metad.x
93 $(CP
) $(SRC
)/head
/metad.x .
94 $(RPCGEN
) $(RPCGENFLAGS_SERVER
) -DDEBUG metad.x
-o
$@