comm: add -Wall
[unleashed.git] / usr / src / cmd / nscd / Makefile
blob3dc62fe96bbac5e5426d50c34f660047b898024d
2 # CDDL HEADER START
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.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
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]
19 # CDDL HEADER END
22 # Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Makefile for name service cache daemon
27 PROG= nscd
28 MANIFEST= name-service-cache.xml
29 SVCMETHOD= svc-nscd
31 include ../Makefile.cmd
33 ROOTMANIFESTDIR= $(ROOTSVCSYSTEM)
35 OBJS= server.o getpw.o getgr.o gethost.o getnode.o \
36 getether.o getrpc.o getproto.o getnet.o \
37 getbootp.o getauth.o getserv.o \
38 getnetmasks.o getprinter.o getproject.o \
39 getexec.o getprof.o getuser.o cache.o \
40 nscd_biggest.o nscd_wait.o \
41 nscd_init.o nscd_access.o nscd_cfgfile.o nscd_config.o \
42 nscd_dbimpl.o nscd_getentctx.o nscd_intaddr.o \
43 nscd_log.o nscd_nswconfig.o nscd_nswstate.o nscd_nswcfgst.o \
44 nscd_seqnum.o nscd_smfmonitor.o \
45 nscd_switch.o nscd_nswparse.o nscd_initf.o nscd_selfcred.o \
46 nscd_frontend.o nscd_admin.o nscd_door.o
48 CLOBBERFILES= nscd
50 SRCS= ${OBJS:%.o=%.c}
52 CPPFLAGS += -DSUN_THREADS \
53 -I../../lib/libc/port/gen -I../../lib/libc/inc \
54 -I../../lib/libsldap/common
56 CERRWARN += -Wno-switch
57 CERRWARN += -Wno-uninitialized
58 CERRWARN += -Wno-parentheses
59 CERRWARN += -Wno-type-limits
61 # nscd interposes on many symbols, and must export others for its own dlsym()
62 # use, and dlsym() calls from libc. Itemizing the interfaces within a mapfile
63 # is error-prone, so establish the whole object as an interposer.
64 LDFLAGS += $(ZINTERPOSE)
66 # TCOV_FLAG= -ql
67 # GPROF_FLAG= -pg
68 # DEBUG_FLAG= -g
70 PROGLIBS= $(LDLIBS) -lresolv -lumem -lscf -lavl
72 # install macros and rule
74 ROOTPROG= ${ROOTUSRSBIN}/nscd
76 .KEEP_STATE:
78 all: $(PROG) $(NISPROG)
80 ${PROG}: ${OBJS}
81 ${LINK.c} ${OPT} -o $@ ${OBJS} ${PROGLIBS}
82 ${POST_PROCESS}
84 cstyle:
85 ${CSTYLE} ${SRCS}
87 install: all $(ROOTPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
89 check: $(CHKMANIFEST)
91 clean:
92 ${RM} ${OBJS}
94 ${ROOTUSRSBIN}/%: %
95 ${INS.file}
97 ${ROOTUSRLIB}/%: %
98 ${INS.file}
100 include ../Makefile.targ