xref: /illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/Makefile (revision d3b5f56344d8bfcdd6cfb82446af0e5e55ad9ebe)
17c478bd9Sstevel@tonic-gate#
25084e753SMark J. Nelson# Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
3ead9bb4bSYuri Pankov# Copyright 2011 Nexenta Systems, Inc. All rights reserved.
45661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc.
57c478bd9Sstevel@tonic-gate#
67c478bd9Sstevel@tonic-gate
77c478bd9Sstevel@tonic-gatePROG=		pppdump
87c478bd9Sstevel@tonic-gateOBJS=		bsd-comp.o deflate.o pppdump.o zlib.o
97c478bd9Sstevel@tonic-gateSRCS=		$(OBJS:%.o=%.c)
107c478bd9Sstevel@tonic-gate
117c478bd9Sstevel@tonic-gateinclude		../../../Makefile.cmd
127c478bd9Sstevel@tonic-gate
137c478bd9Sstevel@tonic-gateCPPFLAGS +=	-DPPP_DEFS_IN_NET
147c478bd9Sstevel@tonic-gate
157014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-implicit-function-declaration
167014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-parentheses
177014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-variable
18*d3b5f563SJohn LevonCERRWARN +=	$(CNOWARN_UNINIT)
197014882cSRichard Lowe
205661bb76SJohn Levon# not linted
215661bb76SJohn LevonSMATCH=off
225661bb76SJohn Levon
237c478bd9Sstevel@tonic-gate.KEEP_STATE:
247c478bd9Sstevel@tonic-gate
257c478bd9Sstevel@tonic-gateall:		$(PROG)
267c478bd9Sstevel@tonic-gate
277c478bd9Sstevel@tonic-gate$(PROG):	$(OBJS)
287c478bd9Sstevel@tonic-gate		$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
297c478bd9Sstevel@tonic-gate		$(POST_PROCESS)
307c478bd9Sstevel@tonic-gate
31ead9bb4bSYuri Pankovinstall:	 all $(ROOTPROG)
327c478bd9Sstevel@tonic-gate
337c478bd9Sstevel@tonic-gateclean:
347c478bd9Sstevel@tonic-gate		$(RM) $(OBJS)
357c478bd9Sstevel@tonic-gate
367c478bd9Sstevel@tonic-gatelint:
377c478bd9Sstevel@tonic-gate
387c478bd9Sstevel@tonic-gateinclude		../../../Makefile.targ
39