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=		acpixtract
167b1019a6SJerry Jelinek
177b1019a6SJerry Jelinekinclude ../../Makefile.cmd
187b1019a6SJerry Jelinekinclude ../../Makefile.ctf
197b1019a6SJerry Jelinek
20bc36eafdSMike GerdtsOBJS =	axmain.o acpixtract.o axutils.o osunixxf.o utglobal.o getopt.o \
21bc36eafdSMike Gerdts	utdebug.o utprint.o osl.o utascii.o utmath.o utxferror.o utnonansi.o \
22bc36eafdSMike Gerdts	utexcep.o
237b1019a6SJerry JelinekSRCS = $(OBJS:.o=.c)
247b1019a6SJerry Jelinek
25bc36eafdSMike GerdtsVPATH = ../common:$(SRC)/common/acpica/utilities
26bc36eafdSMike Gerdts
277b1019a6SJerry JelinekCERRWARN += -_gcc=-Wno-unused-function
287b1019a6SJerry Jelinek
29*5661bb76SJohn Levon# not linted
30*5661bb76SJohn LevonSMATCH=off
31*5661bb76SJohn Levon
327b1019a6SJerry JelinekCPPFLAGS += -I$(SRC)/uts/intel/sys/acpi -DACPI_XTRACT_APP
337b1019a6SJerry Jelinek
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