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