29 LOCALOBJS= ipadm.o
30 COMMONOBJS=
31 OBJS= $(LOCALOBJS) $(COMMONOBJS)
32
33 include ../../../Makefile.cmd
34 include ../../Makefile.cmd-inet
35
36 XGETFLAGS += -a -x $(PROG).xcl
37 LOCALSRCS= $(LOCALOBJS:%.o=%.c)
38 COMMONSRCS= $(CMDINETCOMMONDIR)/$(COMMONOBJS:%.o=%.c)
39 SRCS= $(LOCALSRCS) $(COMMONSRCS)
40
41 CPPFLAGS += -I$(CMDINETCOMMONDIR)
42 CERRWARN += -_gcc=-Wno-unused-label
43 CERRWARN += -_gcc=-Wno-uninitialized
44 LDLIBS += -lofmt -linetutil -lipadm -lnvpair
45 LINTFLAGS += -m
46
47 ROOTUSRSBINLINKS = $(PROG:%=$(ROOTUSRSBIN)/%)
48
49 # ipadm uses the ancillary data feature which is available only through
50 # UNIX 98 standards version of Socket interface. This interface is supposed to
51 # be accessed by -lxnet. In addition -lsocket is used to capture new
52 # not-yet-standard interfaces. Someday -lxnet alone should be enough when IPv6
53 # inspired new interfaces are part of standards.
54 LDLIBS += -lxnet -lsocket
55
56 # these #defines are required to use UNIX 98 interfaces
57 _D_UNIX98_EXTN= -D_XOPEN_SOURCE=500 -D__EXTENSIONS__
58
59 $(OBJS) := CPPFLAGS += $(_D_UNIX98_EXTN)
60
61 LINTFLAGS += $(_D_UNIX98_EXTN)
62
63 $(ROOTCFGDIR)/ipadm.conf := FILEMODE= 644
64
65 #
66 # Instrument ipadm with CTF data to ease debugging.
67 #
68 CTFCONVERT_HOOK = && $(CTFCONVERT_O)
69 CTFMERGE_HOOK = && $(CTFMERGE) -L VERSION -o $@ $(OBJS)
70 $(OBJS) := CFLAGS += $(CTF_FLAGS)
71
72 .KEEP_STATE:
73
74 all: $(ROOTFS_PROG)
|
29 LOCALOBJS= ipadm.o
30 COMMONOBJS=
31 OBJS= $(LOCALOBJS) $(COMMONOBJS)
32
33 include ../../../Makefile.cmd
34 include ../../Makefile.cmd-inet
35
36 XGETFLAGS += -a -x $(PROG).xcl
37 LOCALSRCS= $(LOCALOBJS:%.o=%.c)
38 COMMONSRCS= $(CMDINETCOMMONDIR)/$(COMMONOBJS:%.o=%.c)
39 SRCS= $(LOCALSRCS) $(COMMONSRCS)
40
41 CPPFLAGS += -I$(CMDINETCOMMONDIR)
42 CERRWARN += -_gcc=-Wno-unused-label
43 CERRWARN += -_gcc=-Wno-uninitialized
44 LDLIBS += -lofmt -linetutil -lipadm -lnvpair
45 LINTFLAGS += -m
46
47 ROOTUSRSBINLINKS = $(PROG:%=$(ROOTUSRSBIN)/%)
48
49 LDLIBS += -lxnet
50
51 # these #defines are required to use UNIX 98 interfaces
52 _D_UNIX98_EXTN= -D_XOPEN_SOURCE=500 -D__EXTENSIONS__
53
54 $(OBJS) := CPPFLAGS += $(_D_UNIX98_EXTN)
55
56 LINTFLAGS += $(_D_UNIX98_EXTN)
57
58 $(ROOTCFGDIR)/ipadm.conf := FILEMODE= 644
59
60 #
61 # Instrument ipadm with CTF data to ease debugging.
62 #
63 CTFCONVERT_HOOK = && $(CTFCONVERT_O)
64 CTFMERGE_HOOK = && $(CTFMERGE) -L VERSION -o $@ $(OBJS)
65 $(OBJS) := CFLAGS += $(CTF_FLAGS)
66
67 .KEEP_STATE:
68
69 all: $(ROOTFS_PROG)
|