7712 mandoc -Tlint does always exit with error code 0
[unleashed.git] / usr / src / cmd / lvm / rpc.metad / i386 / Makefile
blob9284ccc58c03e2bb9c923281bcdcde8d8a88f6fc
2 # CDDL HEADER START
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
7 # with the License.
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]
20 # CDDL HEADER END
23 # Copyright 2003 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
27 # Makefile for logical volume management
30 PROG= rpc.metad
32 DERIVED_FILES = \
33 metad_svc.c
35 OBJECTS= metad_freeresult.o \
36 metad_init.o \
37 metad_svc_subr.o
39 LINTOBJECTS= metad_freeresult.o \
40 metad_init.o \
41 metad_svc_subr.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
56 CFLAGS += $(DEFINES)
59 lint := LINTFLAGS += -m
61 %_svc.c := RPCGENFLAGS += -K -1
64 .KEEP_STATE:
66 %.o: ../%.c
67 $(COMPILE.c) $<
69 all: $(PROG)
71 $(PROG): $(OBJECTS)
72 $(LINK.c) -o $@ $(OBJECTS) $(LDLIBS)
73 $(POST_PROCESS)
75 ROOTUSRSBINPROG=$(PROG:%=$(ROOTUSRSBIN)/%)
76 install: all $(ROOTUSRSBINPROG)
78 catalog:
80 cstyle:
81 ${CSTYLE} ${SRCS}
83 lint:
84 ${LINT.c} $(LINTFLAGS) ${LINTSRCS}
86 clean:
87 ${RM} ${OBJS} ${DERIVED_FILES} *.o
89 clobber: clean
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 $@
95 ${RM} metad.x