22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 # Copyright (c) 2018, Joyent, Inc.
26
27 PROG = isnsadm
28 SRCS = cmdparse.c isnsadm.c isnsadm_msg.c
29 OBJS = $(SRCS:%.c=%.o)
30
31 include ../../Makefile.cmd
32
33 LDLIBS += -lxml2 -lscf -lc
34 CFLAGS += $(CCVERBOSE)
35 CPPFLAGS += -I. -I$(ADJUNCT_PROTO)/usr/include/libxml2 -I../isnsd
36 POFILE = isnsadm_all.po
37 POFILES = $(OBJS:%.o=%.po)
38
39 LINTFLAGS += -xerroff=E_BAD_FORMAT_STR2
40
41 CERRWARN += -_gcc=-Wno-parentheses
42 CERRWARN += -_gcc=-Wno-uninitialized
43
44 # not linted
45 SMATCH=off
46
47 .KEEP_STATE:
48
49 all: $(PROG)
50
51 clean:
52 $(RM) $(OBJS) $(PROG)
53
54 lint: lint_SRCS
55
56 $(PROG): $(OBJS)
57 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
58 $(POST_PROCESS)
59
60 $(POFILE): $(POFILES)
61 $(RM) $@
62 $(CAT) $(POFILES) > $@
|
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 # Copyright (c) 2018, Joyent, Inc.
26
27 PROG = isnsadm
28 SRCS = cmdparse.c isnsadm.c isnsadm_msg.c
29 OBJS = $(SRCS:%.c=%.o)
30
31 include ../../Makefile.cmd
32
33 LDLIBS += -lxml2 -lscf -lc
34 CFLAGS += $(CCVERBOSE)
35 CPPFLAGS += -I. -I$(ADJUNCT_PROTO)/usr/include/libxml2 -I../isnsd
36 POFILE = isnsadm_all.po
37 POFILES = $(OBJS:%.o=%.po)
38
39 LINTFLAGS += -xerroff=E_BAD_FORMAT_STR2
40
41 CERRWARN += -_gcc=-Wno-parentheses
42 CERRWARN += $(CNOWARN_UNINIT)
43
44 # not linted
45 SMATCH=off
46
47 .KEEP_STATE:
48
49 all: $(PROG)
50
51 clean:
52 $(RM) $(OBJS) $(PROG)
53
54 lint: lint_SRCS
55
56 $(PROG): $(OBJS)
57 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
58 $(POST_PROCESS)
59
60 $(POFILE): $(POFILES)
61 $(RM) $@
62 $(CAT) $(POFILES) > $@
|