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
25ead9bb4bSYuri Pankovall:		$(PROG)
267c478bd9Sstevel@tonic-gate
27ead9bb4bSYuri Pankov$(PROG):	$(OBJS)
28ead9bb4bSYuri Pankov		$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
29ead9bb4bSYuri Pankov		$(POST_PROCESS)
307c478bd9Sstevel@tonic-gate
31ead9bb4bSYuri Pankovinstall:	 all $(ROOTPROG)
327c478bd9Sstevel@tonic-gate
337c478bd9Sstevel@tonic-gateclean:
34ead9bb4bSYuri Pankov		$(RM) $(OBJS)
357c478bd9Sstevel@tonic-gate
367c478bd9Sstevel@tonic-gatelint:
377c478bd9Sstevel@tonic-gate
387c478bd9Sstevel@tonic-gateinclude		../../../Makefile.targ
39