58 include ../../Makefile.lib
59
60 # We omit $(OBJECTS.s:%.o=%.s) in the next line, because lint no like
61 SRCS= $(OBJECTS.c:%.o=../%.c)
62
63 LIBS= $(DYNLIB)
64
65 HDRS= tnfctl.h
66 ROOTHDRDIR= $(ROOT)/usr/include/tnf
67 ROOTHDRS= $(HDRS:%=$(ROOTHDRDIR)/%)
68 CHECKHDRS= $(HDRS:%.h=%.check)
69 $(ROOTHDRS) := FILEMODE = 0644
70 CHECKHDRS = $(HDRS:%.h=%.check)
71
72 LDLIBS += -lc -lelf
73
74 CPPFLAGS += -I$(SRC)/lib/libtnfprobe -D_REENTRANT -I$(SRC)/cmd/sgs/include
75
76 LINTFLAGS += -y
77
78 CERRWARN += -_gcc=-Wno-uninitialized
79 CERRWARN += -_gcc=-Wno-empty-body
80 CERRWARN += -_gcc=-Wno-parentheses
81
82 # not linted
83 SMATCH=off
84
85 ASFLAGS += -P
86
87 $(ROOTHDRS) := FILEMODE = 644
88
89 .KEEP_STATE:
90
91 all: $(LIBS)
92
93 install_h: $(ROOTHDRDIR) $(ROOTHDRS)
94
95 lint:
96 $(LINT.c) $(SRCS)
97
98 check: $(CHECKHDRS)
|
58 include ../../Makefile.lib
59
60 # We omit $(OBJECTS.s:%.o=%.s) in the next line, because lint no like
61 SRCS= $(OBJECTS.c:%.o=../%.c)
62
63 LIBS= $(DYNLIB)
64
65 HDRS= tnfctl.h
66 ROOTHDRDIR= $(ROOT)/usr/include/tnf
67 ROOTHDRS= $(HDRS:%=$(ROOTHDRDIR)/%)
68 CHECKHDRS= $(HDRS:%.h=%.check)
69 $(ROOTHDRS) := FILEMODE = 0644
70 CHECKHDRS = $(HDRS:%.h=%.check)
71
72 LDLIBS += -lc -lelf
73
74 CPPFLAGS += -I$(SRC)/lib/libtnfprobe -D_REENTRANT -I$(SRC)/cmd/sgs/include
75
76 LINTFLAGS += -y
77
78 CERRWARN += $(CNOWARN_UNINIT)
79 CERRWARN += -_gcc=-Wno-empty-body
80 CERRWARN += -_gcc=-Wno-parentheses
81
82 # not linted
83 SMATCH=off
84
85 ASFLAGS += -P
86
87 $(ROOTHDRS) := FILEMODE = 644
88
89 .KEEP_STATE:
90
91 all: $(LIBS)
92
93 install_h: $(ROOTHDRDIR) $(ROOTHDRS)
94
95 lint:
96 $(LINT.c) $(SRCS)
97
98 check: $(CHECKHDRS)
|