1*385cc6b4SJerry Jelinek# 2*385cc6b4SJerry Jelinek# This file and its contents are supplied under the terms of the 3*385cc6b4SJerry Jelinek# Common Development and Distribution License ("CDDL"), version 1.0. 4*385cc6b4SJerry Jelinek# You may only use this file in accordance with the terms of version 5*385cc6b4SJerry Jelinek# 1.0 of the CDDL. 6*385cc6b4SJerry Jelinek# 7*385cc6b4SJerry Jelinek# A full copy of the text of the CDDL should have accompanied this 8*385cc6b4SJerry Jelinek# source. A copy of the CDDL is also available via the Internet at 9*385cc6b4SJerry Jelinek# http://www.illumos.org/license/CDDL. 10*385cc6b4SJerry Jelinek# 11*385cc6b4SJerry Jelinek# Copyright 2016 Joyent, Inc. 12*385cc6b4SJerry Jelinek# 13*385cc6b4SJerry Jelinek 14*385cc6b4SJerry JelinekPROG= acpidump 15*385cc6b4SJerry Jelinek 16*385cc6b4SJerry Jelinekinclude ../../Makefile.cmd 17*385cc6b4SJerry Jelinekinclude ../../Makefile.ctf 18*385cc6b4SJerry Jelinek 19*385cc6b4SJerry JelinekOBJS= apmain.o apdump.o apfiles.o tbprint.o tbxfroot.o osillumostbl.o \ 20*385cc6b4SJerry Jelinek utbuffer.o osunixdir.o 21*385cc6b4SJerry JelinekSRCS = $(OBJS:.o=.c) 22*385cc6b4SJerry Jelinek 23*385cc6b4SJerry JelinekCERRWARN += -_gcc=-Wno-unused-function 24*385cc6b4SJerry Jelinek 25*385cc6b4SJerry JelinekCPPFLAGS += -I$(SRC)/uts/intel/sys/acpi -DACPI_DUMP_APP 26*385cc6b4SJerry Jelinek 27*385cc6b4SJerry Jelinek.KEEP_STATE: 28*385cc6b4SJerry Jelinek 29*385cc6b4SJerry Jelinekall: $(PROG) 30*385cc6b4SJerry Jelinek 31*385cc6b4SJerry Jelinek$(PROG): $(OBJS) 32*385cc6b4SJerry Jelinek $(LINK.c) -o $@ $(OBJS) ../common/acpi.a 33*385cc6b4SJerry Jelinek $(POST_PROCESS) 34*385cc6b4SJerry Jelinek 35*385cc6b4SJerry Jelinekinstall: all $(ROOTUSRSBINPROG) 36*385cc6b4SJerry Jelinek 37*385cc6b4SJerry Jelinekclean: 38*385cc6b4SJerry Jelinek $(RM) $(OBJS) 39*385cc6b4SJerry Jelinek 40*385cc6b4SJerry Jelineklint: lint_SRCS 41*385cc6b4SJerry Jelinek 42*385cc6b4SJerry Jelinekinclude ../../Makefile.targ 43