25 # Copyright (c) 2018, Joyent, Inc.
26
27 LIBRARY = libfmd_msg.a
28 VERS = .1
29
30 LIBSRCS = fmd_msg.c
31 OBJECTS = $(LIBSRCS:%.c=%.o)
32
33 include ../../../Makefile.lib
34 include ../../Makefile.lib
35
36 SRCS = $(LIBSRCS:%.c=../common/%.c)
37 LIBS = $(DYNLIB) $(LINTLIB)
38
39 SRCDIR = ../common
40
41 CPPFLAGS += -I../common -I.
42 CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
43 CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS)
44 CERRWARN += -_gcc=-Wno-switch
45 CERRWARN += -_gcc=-Wno-uninitialized
46
47 SMOFF += all_func_returns
48
49 LDLIBS += -lnvpair -lc
50
51 LINTFLAGS = -msux
52 LINTFLAGS64 = -msux -m64
53
54 CLOBBERFILES += fmd_msg_test fmd_msg_test.core fmd_msg_test.out
55
56 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
57 $(LINTLIB) := LINTFLAGS = -nsvx
58 $(LINTLIB) := LINTFLAGS64 = -nsvx -m64
59
60 .KEEP_STATE:
61
62 all: $(LIBS)
63
64 lint: $(LINTLIB) lintcheck
65
|
25 # Copyright (c) 2018, Joyent, Inc.
26
27 LIBRARY = libfmd_msg.a
28 VERS = .1
29
30 LIBSRCS = fmd_msg.c
31 OBJECTS = $(LIBSRCS:%.c=%.o)
32
33 include ../../../Makefile.lib
34 include ../../Makefile.lib
35
36 SRCS = $(LIBSRCS:%.c=../common/%.c)
37 LIBS = $(DYNLIB) $(LINTLIB)
38
39 SRCDIR = ../common
40
41 CPPFLAGS += -I../common -I.
42 CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
43 CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS)
44 CERRWARN += -_gcc=-Wno-switch
45 CERRWARN += $(CNOWARN_UNINIT)
46
47 SMOFF += all_func_returns
48
49 LDLIBS += -lnvpair -lc
50
51 LINTFLAGS = -msux
52 LINTFLAGS64 = -msux -m64
53
54 CLOBBERFILES += fmd_msg_test fmd_msg_test.core fmd_msg_test.out
55
56 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
57 $(LINTLIB) := LINTFLAGS = -nsvx
58 $(LINTLIB) := LINTFLAGS64 = -nsvx -m64
59
60 .KEEP_STATE:
61
62 all: $(LIBS)
63
64 lint: $(LINTLIB) lintcheck
65
|