xref: /illumos-gate/usr/src/cmd/acpi/acpidump/Makefile (revision 35786f6866ae52207d0f1a25fe7ca5f652f32ce0)
17b1019a6SJerry Jelinek#
27b1019a6SJerry Jelinek# This file and its contents are supplied under the terms of the
37b1019a6SJerry Jelinek# Common Development and Distribution License ("CDDL"), version 1.0.
47b1019a6SJerry Jelinek# You may only use this file in accordance with the terms of version
57b1019a6SJerry Jelinek# 1.0 of the CDDL.
67b1019a6SJerry Jelinek#
77b1019a6SJerry Jelinek# A full copy of the text of the CDDL should have accompanied this
87b1019a6SJerry Jelinek# source.  A copy of the CDDL is also available via the Internet at
97b1019a6SJerry Jelinek# http://www.illumos.org/license/CDDL.
107b1019a6SJerry Jelinek#
11bc36eafdSMike Gerdts# Copyright (c) 2018, Joyent, Inc.
12d174594cSAndrew Stormont# Copyright 2016 RackTop Systems.
137b1019a6SJerry Jelinek#
147b1019a6SJerry Jelinek
157b1019a6SJerry JelinekPROG=		acpidump
167b1019a6SJerry Jelinek
177b1019a6SJerry Jelinekinclude ../../Makefile.cmd
187b1019a6SJerry Jelinekinclude ../../Makefile.ctf
197b1019a6SJerry Jelinek
20bc36eafdSMike GerdtsOBJS= apmain.o apdump.o apfiles.o getopt.o tbprint.o tbxfroot.o osillumostbl.o \
21bc36eafdSMike Gerdts	utascii.o utbuffer.o utdebug.o utexcep.o utmath.o utnonansi.o \
22*35786f68SRobert Mustacchi	utxferror.o utglobal.o utprint.o osunixdir.o osl.o osunixxf.o \
23*35786f68SRobert Mustacchi	uthex.o utstrsuppt.o utstrtoul64.o
247b1019a6SJerry JelinekSRCS = $(OBJS:.o=.c)
257b1019a6SJerry Jelinek
26bc36eafdSMike GerdtsVPATH = ../common:$(SRC)/common/acpica/utilities:$(SRC)/common/acpica/tables
27bc36eafdSMike Gerdts
287b1019a6SJerry JelinekCERRWARN += -_gcc=-Wno-unused-function
297b1019a6SJerry Jelinek
307b1019a6SJerry JelinekCPPFLAGS += -I$(SRC)/uts/intel/sys/acpi -DACPI_DUMP_APP
317b1019a6SJerry Jelinek
32760a9770SToomas SoomeLDLIBS += -ldevinfo
33760a9770SToomas Soome
347b1019a6SJerry Jelinek.KEEP_STATE:
357b1019a6SJerry Jelinek
367b1019a6SJerry Jelinekall: $(PROG)
377b1019a6SJerry Jelinek
387b1019a6SJerry Jelinek$(PROG): $(OBJS)
39bc36eafdSMike Gerdts	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
407b1019a6SJerry Jelinek	$(POST_PROCESS)
417b1019a6SJerry Jelinek
427b1019a6SJerry Jelinekinstall: all $(ROOTUSRSBINPROG)
437b1019a6SJerry Jelinek
447b1019a6SJerry Jelinekclean:
45bc36eafdSMike Gerdts	$(RM) $(OBJS) $(PROG)
467b1019a6SJerry Jelinek
477b1019a6SJerry Jelineklint:	lint_SRCS
487b1019a6SJerry Jelinek
497b1019a6SJerry Jelinekinclude ../../Makefile.targ
50