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= 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 \ 2120d3bf62SJohn Levon utdebug.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 2720d3bf62SJohn Levon# 2820d3bf62SJohn Levon# "the 'AX_IS_TABLE_BLOCK_HEADER' macro might need parens" 2920d3bf62SJohn Levon# (Reported) upstream bug. 3020d3bf62SJohn Levon# 3120d3bf62SJohn LevonSMOFF = all_func_returns,macros 325661bb76SJohn Levon 337b1019a6SJerry JelinekCPPFLAGS += -I$(SRC)/uts/intel/sys/acpi -DACPI_XTRACT_APP 34*e68582baSBill SommerfeldCPPFLAGS += -DACPI_DATE=\"`$(ECHO) $(VERSION) | sed -e 's/ /_/g'`\" 357b1019a6SJerry Jelinek 367b1019a6SJerry Jelinek.KEEP_STATE: 377b1019a6SJerry Jelinek 387b1019a6SJerry Jelinekall: $(PROG) 397b1019a6SJerry Jelinek 407b1019a6SJerry Jelinek$(PROG): $(OBJS) 41bc36eafdSMike Gerdts $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 427b1019a6SJerry Jelinek $(POST_PROCESS) 437b1019a6SJerry Jelinek 447b1019a6SJerry Jelinekinstall: all $(ROOTUSRSBINPROG) 457b1019a6SJerry Jelinek 467b1019a6SJerry Jelinekclean: 47bc36eafdSMike Gerdts $(RM) $(OBJS) $(PROG) 487b1019a6SJerry Jelinek 497b1019a6SJerry Jelineklint: lint_SRCS 507b1019a6SJerry Jelinek 517b1019a6SJerry Jelinekinclude ../../Makefile.targ 52