52
53 CFLAGS += $(CCVERBOSE)
54 CPPFLAGS += -D_REENTRANT -DSUN_THREADS \
55 -I../../lib/libc/port/gen -I../../lib/libc/inc \
56 -I../../lib/libsldap/common
57 LINTFLAGS += -erroff=E_GLOBAL_COULD_BE_STATIC2
58 LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
59 LINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2
60
61 CERRWARN += -_gcc=-Wno-switch
62 CERRWARN += -_gcc=-Wno-uninitialized
63 CERRWARN += -_gcc=-Wno-parentheses
64 CERRWARN += -_gcc=-Wno-type-limits
65
66 # nscd interposes on many symbols, and must export others for its own dlsym()
67 # use, and dlsym() calls from libc. Itemizing the interfaces within a mapfile
68 # is error-prone, so establish the whole object as an interposer.
69 LDFLAGS += $(ZINTERPOSE)
70
71 # TCOV_FLAG= -ql
72 # GPROF_FLAG= -xpg
73 # DEBUG_FLAG= -g
74
75 PROGLIBS= $(LDLIBS) -lresolv -lnsl -lsocket -lumem -lscf -lavl
76
77 # install macros and rule
78 #
79 ROOTPROG= ${ROOTUSRSBIN}/nscd
80
81 .KEEP_STATE:
82
83 all: $(PROG) $(NISPROG)
84
85 ${PROG}: ${OBJS}
86 ${LINK.c} ${OPT} -o $@ ${OBJS} ${PROGLIBS}
87 ${POST_PROCESS}
88
89 lint:
90 $(LINT.c) ${SRCS} ${PROGLIBS}
91
92 cstyle:
93 ${CSTYLE} ${SRCS}
|
52
53 CFLAGS += $(CCVERBOSE)
54 CPPFLAGS += -D_REENTRANT -DSUN_THREADS \
55 -I../../lib/libc/port/gen -I../../lib/libc/inc \
56 -I../../lib/libsldap/common
57 LINTFLAGS += -erroff=E_GLOBAL_COULD_BE_STATIC2
58 LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
59 LINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2
60
61 CERRWARN += -_gcc=-Wno-switch
62 CERRWARN += -_gcc=-Wno-uninitialized
63 CERRWARN += -_gcc=-Wno-parentheses
64 CERRWARN += -_gcc=-Wno-type-limits
65
66 # nscd interposes on many symbols, and must export others for its own dlsym()
67 # use, and dlsym() calls from libc. Itemizing the interfaces within a mapfile
68 # is error-prone, so establish the whole object as an interposer.
69 LDFLAGS += $(ZINTERPOSE)
70
71 # TCOV_FLAG= -ql
72
73 PROGLIBS= $(LDLIBS) -lresolv -lnsl -lsocket -lumem -lscf -lavl
74
75 # install macros and rule
76 #
77 ROOTPROG= ${ROOTUSRSBIN}/nscd
78
79 .KEEP_STATE:
80
81 all: $(PROG) $(NISPROG)
82
83 ${PROG}: ${OBJS}
84 ${LINK.c} ${OPT} -o $@ ${OBJS} ${PROGLIBS}
85 ${POST_PROCESS}
86
87 lint:
88 $(LINT.c) ${SRCS} ${PROGLIBS}
89
90 cstyle:
91 ${CSTYLE} ${SRCS}
|