1 #
   2 # Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
   3 # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
   4 # Copyright (c) 2018, Joyent, Inc.
   5 #
   6 
   7 PROG=           pppdump
   8 OBJS=           bsd-comp.o deflate.o pppdump.o zlib.o
   9 SRCS=           $(OBJS:%.o=%.c)
  10 
  11 include         ../../../Makefile.cmd
  12 
  13 CPPFLAGS +=     -DPPP_DEFS_IN_NET
  14 
  15 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  16 CERRWARN +=     -_gcc=-Wno-parentheses
  17 CERRWARN +=     -_gcc=-Wno-unused-variable
  18 CERRWARN +=     $(CNOWARN_UNINIT)
  19 
  20 # not linted
  21 SMATCH=off
  22 
  23 .KEEP_STATE:
  24 
  25 all:            $(PROG)
  26 
  27 $(PROG):        $(OBJS)
  28                 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
  29                 $(POST_PROCESS)
  30 
  31 install:         all $(ROOTPROG)
  32 
  33 clean:
  34                 $(RM) $(OBJS)
  35 
  36 lint:
  37 
  38 include         ../../../Makefile.targ