xref: /illumos-gate/usr/src/lib/libppt/Makefile.com (revision eb9a1df2aeb866bf1de4494433b6d7e5fa07b3ae)
1*eb9a1df2SHans Rosenfeld#
2*eb9a1df2SHans Rosenfeld# This file and its contents are supplied under the terms of the
3*eb9a1df2SHans Rosenfeld# Common Development and Distribution License ("CDDL"), version 1.0.
4*eb9a1df2SHans Rosenfeld# You may only use this file in accordance with the terms of version
5*eb9a1df2SHans Rosenfeld# 1.0 of the CDDL.
6*eb9a1df2SHans Rosenfeld#
7*eb9a1df2SHans Rosenfeld# A full copy of the text of the CDDL should have accompanied this
8*eb9a1df2SHans Rosenfeld# source.  A copy of the CDDL is also available via the Internet at
9*eb9a1df2SHans Rosenfeld# http://www.illumos.org/license/CDDL.
10*eb9a1df2SHans Rosenfeld#
11*eb9a1df2SHans Rosenfeld
12*eb9a1df2SHans Rosenfeld#
13*eb9a1df2SHans Rosenfeld# Copyright 2018 Joyent, Inc.
14*eb9a1df2SHans Rosenfeld#
15*eb9a1df2SHans Rosenfeld
16*eb9a1df2SHans RosenfeldLIBRARY = libppt.a
17*eb9a1df2SHans RosenfeldVERS = .1
18*eb9a1df2SHans Rosenfeld
19*eb9a1df2SHans RosenfeldOBJECTS = libppt.o
20*eb9a1df2SHans Rosenfeld
21*eb9a1df2SHans Rosenfeldinclude $(SRC)/lib/Makefile.lib
22*eb9a1df2SHans Rosenfeld
23*eb9a1df2SHans RosenfeldSRCDIR = ../common
24*eb9a1df2SHans Rosenfeld
25*eb9a1df2SHans RosenfeldLIBS = $(DYNLIB) $(LINTLIB)
26*eb9a1df2SHans RosenfeldSRCS =	$(SRCDIR)/libppt.c
27*eb9a1df2SHans Rosenfeld
28*eb9a1df2SHans RosenfeldCSTD=	$(CSTD_GNU99)
29*eb9a1df2SHans RosenfeldC99LMODE=	-Xc99=%all
30*eb9a1df2SHans Rosenfeld
31*eb9a1df2SHans Rosenfeld#
32*eb9a1df2SHans Rosenfeld# lint doesn't like %4s in sscanf().
33*eb9a1df2SHans Rosenfeld#
34*eb9a1df2SHans RosenfeldLINTFLAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
35*eb9a1df2SHans RosenfeldLINTFLAGS64 += -erroff=E_BAD_FORMAT_ARG_TYPE2
36*eb9a1df2SHans Rosenfeld
37*eb9a1df2SHans Rosenfeld$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
38*eb9a1df2SHans RosenfeldLDLIBS += -lpcidb -ldevinfo -lcmdutils -lnvpair -lc
39*eb9a1df2SHans Rosenfeld
40*eb9a1df2SHans Rosenfeld.KEEP_STATE:
41*eb9a1df2SHans Rosenfeld
42*eb9a1df2SHans Rosenfeldall: $(LIBS)
43*eb9a1df2SHans Rosenfeld
44*eb9a1df2SHans Rosenfeldlint: lintcheck
45*eb9a1df2SHans Rosenfeld
46*eb9a1df2SHans Rosenfeldinclude $(SRC)/lib/Makefile.targ
47