xref: /illumos-gate/usr/src/cmd/acpi/acpidump/Makefile (revision 20a2a10f)
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#
1120d3bf62SJohn Levon# Copyright 2020 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 \
2220d3bf62SJohn Levon	utxferror.o utglobal.o osunixdir.o osl.o osunixxf.o \
2335786f68SRobert 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
3020d3bf62SJohn LevonSMOFF = all_func_returns
315661bb76SJohn Levon
327b1019a6SJerry JelinekCPPFLAGS += -I$(SRC)/uts/intel/sys/acpi -DACPI_DUMP_APP
33*20a2a10fSRobert MustacchiCPPFLAGS += -DACPI_DATE=\"$(VERSION)\"
347b1019a6SJerry Jelinek
35760a9770SToomas SoomeLDLIBS += -ldevinfo
36760a9770SToomas Soome
377b1019a6SJerry Jelinek.KEEP_STATE:
387b1019a6SJerry Jelinek
397b1019a6SJerry Jelinekall: $(PROG)
407b1019a6SJerry Jelinek
417b1019a6SJerry Jelinek$(PROG): $(OBJS)
42bc36eafdSMike Gerdts	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
437b1019a6SJerry Jelinek	$(POST_PROCESS)
447b1019a6SJerry Jelinek
457b1019a6SJerry Jelinekinstall: all $(ROOTUSRSBINPROG)
467b1019a6SJerry Jelinek
477b1019a6SJerry Jelinekclean:
48bc36eafdSMike Gerdts	$(RM) $(OBJS) $(PROG)
497b1019a6SJerry Jelinek
507b1019a6SJerry Jelineklint:	lint_SRCS
517b1019a6SJerry Jelinek
527b1019a6SJerry Jelinekinclude ../../Makefile.targ
53