xref: /illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/Makefile (revision d3b5f56344d8bfcdd6cfb82446af0e5e55ad9ebe)
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
7PROG=		pppdump
8OBJS=		bsd-comp.o deflate.o pppdump.o zlib.o
9SRCS=		$(OBJS:%.o=%.c)
10
11include		../../../Makefile.cmd
12
13CPPFLAGS +=	-DPPP_DEFS_IN_NET
14
15CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
16CERRWARN +=	-_gcc=-Wno-parentheses
17CERRWARN +=	-_gcc=-Wno-unused-variable
18CERRWARN +=	$(CNOWARN_UNINIT)
19
20# not linted
21SMATCH=off
22
23.KEEP_STATE:
24
25all:		$(PROG)
26
27$(PROG):	$(OBJS)
28		$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
29		$(POST_PROCESS)
30
31install:	 all $(ROOTPROG)
32
33clean:
34		$(RM) $(OBJS)
35
36lint:
37
38include		../../../Makefile.targ
39