29 PROG= netstat
30
31 LOCALOBJS= netstat.o unix.o
32 COMMONOBJS= compat.o
33
34 include ../../../Makefile.cmd
35 include ../../Makefile.cmd-inet
36
37 LOCALSRCS= $(LOCALOBJS:%.o=%.c)
38 COMMONSRCS= $(CMDINETCOMMONDIR)/$(COMMONOBJS:%.o=%.c)
39
40 STATCOMMONDIR = $(SRC)/cmd/stat/common
41
42 STAT_COMMON_OBJS = timestamp.o
43 STAT_COMMON_SRCS = $(STAT_COMMON_OBJS:%.o=$(STATCOMMONDIR)/%.c)
44
45 OBJS= $(LOCALOBJS) $(COMMONOBJS) $(STAT_COMMON_OBJS)
46 SRCS= $(LOCALSRCS) $(COMMONSRCS) $(STAT_COMMON_SRCS)
47
48 CPPFLAGS += -DNDEBUG -I$(CMDINETCOMMONDIR) -I$(STATCOMMONDIR)
49 CERRWARN += -_gcc=-Wno-uninitialized
50 CERRWARN += -_gcc=-Wno-parentheses
51 LDLIBS += -ldhcpagent -lsocket -lnsl -lkstat -ltsnet -ltsol
52
53 # not linted
54 SMATCH=off
55
56 .KEEP_STATE:
57
58 all: $(PROG) $(NPROG)
59
60 ROOTPROG= $(PROG:%=$(ROOTBIN)/%)
61
62 $(PROG): $(OBJS)
63 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
64 $(POST_PROCESS)
65
66 %.o : $(STATCOMMONDIR)/%.c
67 $(COMPILE.c) -o $@ $<
68 $(POST_PROCESS_O)
69
|
29 PROG= netstat
30
31 LOCALOBJS= netstat.o unix.o
32 COMMONOBJS= compat.o
33
34 include ../../../Makefile.cmd
35 include ../../Makefile.cmd-inet
36
37 LOCALSRCS= $(LOCALOBJS:%.o=%.c)
38 COMMONSRCS= $(CMDINETCOMMONDIR)/$(COMMONOBJS:%.o=%.c)
39
40 STATCOMMONDIR = $(SRC)/cmd/stat/common
41
42 STAT_COMMON_OBJS = timestamp.o
43 STAT_COMMON_SRCS = $(STAT_COMMON_OBJS:%.o=$(STATCOMMONDIR)/%.c)
44
45 OBJS= $(LOCALOBJS) $(COMMONOBJS) $(STAT_COMMON_OBJS)
46 SRCS= $(LOCALSRCS) $(COMMONSRCS) $(STAT_COMMON_SRCS)
47
48 CPPFLAGS += -DNDEBUG -I$(CMDINETCOMMONDIR) -I$(STATCOMMONDIR)
49 CERRWARN += $(CNOWARN_UNINIT)
50 CERRWARN += -_gcc=-Wno-parentheses
51 LDLIBS += -ldhcpagent -lsocket -lnsl -lkstat -ltsnet -ltsol
52
53 # not linted
54 SMATCH=off
55
56 .KEEP_STATE:
57
58 all: $(PROG) $(NPROG)
59
60 ROOTPROG= $(PROG:%=$(ROOTBIN)/%)
61
62 $(PROG): $(OBJS)
63 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
64 $(POST_PROCESS)
65
66 %.o : $(STATCOMMONDIR)/%.c
67 $(COMPILE.c) -o $@ $<
68 $(POST_PROCESS_O)
69
|