103 DMOD_SRCS = fmd_mdb.c
104 DMOD_OBJS = $(DMOD_SRCS:%.c=%.o)
105 DMOD_LINT = $(DMOD_SRCS:%.c=%.ln)
106
107 HDRS = fmd_api.h fmd_fmri.h
108 ROOTCDIR = $(ROOT)/etc/fm/$(PROG)
109 ROOTHDIR = $(ROOT)/usr/include/fm
110 ROOTHDRS = $(HDRS:%=$(ROOTHDIR)/%)
111
112 $(ROOTHDRS) := FILEMODE = 0644
113 $(ROOTVSUB) := DIRMODE = 0755
114 $(ROOTMANIFEST) := FILEMODE = 0444
115
116 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
117 CPPFLAGS += -I. -I../common
118 CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
119 CFLAGS += $(CTF_FLAGS) $(CCVERBOSE) $(XSTRCONST)
120 LINTFLAGS += -mu
121 CERRWARN += -_gcc=-Wno-switch
122 CERRWARN += -_gcc=-Wno-parentheses
123 CERRWARN += -_gcc=-Wno-uninitialized
124 CERRWARN += -_gcc=-Wno-clobbered
125 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused-but-set-variable
126 CERRWARN += -_gcc=-Wno-unused-variable
127
128 # not linted
129 SMATCH=off
130
131 $(PROG) := LDFLAGS += -R/usr/lib/fm
132 $(PROG) := LDLIBS += -L$(ROOTLIB)/fm -ltopo -ldiagcode -lsysevent -lsmbios \
133 -luuid -lnvpair -lexacct -lnsl -lumem -ldevinfo -lfmd_msg
134
135 $(DMOD) := CFLAGS += $(CC_PICFLAGS) -G $(XREGSFLAG)
136 $(DMOD) := LDFLAGS += $(ZTEXT) $(ZDEFS) $(MAPFILE-DMOD:%=-M%)
137
138 #
139 # rpcgen(1) produces code that wants to be in the foreground if we're compiled
140 # DEBUG, which isn't appropriate for our daemon. Forcibly undefine this code.
141 # It also produces various lint warnings; turn these off for these files only.
142 # Unfortunately we also have to turn off IGNOR2 for pass2 lint as well.
143 #
|
103 DMOD_SRCS = fmd_mdb.c
104 DMOD_OBJS = $(DMOD_SRCS:%.c=%.o)
105 DMOD_LINT = $(DMOD_SRCS:%.c=%.ln)
106
107 HDRS = fmd_api.h fmd_fmri.h
108 ROOTCDIR = $(ROOT)/etc/fm/$(PROG)
109 ROOTHDIR = $(ROOT)/usr/include/fm
110 ROOTHDRS = $(HDRS:%=$(ROOTHDIR)/%)
111
112 $(ROOTHDRS) := FILEMODE = 0644
113 $(ROOTVSUB) := DIRMODE = 0755
114 $(ROOTMANIFEST) := FILEMODE = 0444
115
116 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
117 CPPFLAGS += -I. -I../common
118 CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
119 CFLAGS += $(CTF_FLAGS) $(CCVERBOSE) $(XSTRCONST)
120 LINTFLAGS += -mu
121 CERRWARN += -_gcc=-Wno-switch
122 CERRWARN += -_gcc=-Wno-parentheses
123 CERRWARN += $(CNOWARN_UNINIT)
124 CERRWARN += -_gcc=-Wno-clobbered
125 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused-but-set-variable
126 CERRWARN += -_gcc=-Wno-unused-variable
127
128 # not linted
129 SMATCH=off
130
131 $(PROG) := LDFLAGS += -R/usr/lib/fm
132 $(PROG) := LDLIBS += -L$(ROOTLIB)/fm -ltopo -ldiagcode -lsysevent -lsmbios \
133 -luuid -lnvpair -lexacct -lnsl -lumem -ldevinfo -lfmd_msg
134
135 $(DMOD) := CFLAGS += $(CC_PICFLAGS) -G $(XREGSFLAG)
136 $(DMOD) := LDFLAGS += $(ZTEXT) $(ZDEFS) $(MAPFILE-DMOD:%=-M%)
137
138 #
139 # rpcgen(1) produces code that wants to be in the foreground if we're compiled
140 # DEBUG, which isn't appropriate for our daemon. Forcibly undefine this code.
141 # It also produces various lint warnings; turn these off for these files only.
142 # Unfortunately we also have to turn off IGNOR2 for pass2 lint as well.
143 #
|