xref: /titanic_51/usr/src/cmd/acpi/acpixtract/Makefile (revision 385cc6b4ad1792caef3f84eb61eed3f27085801f)
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=		acpixtract
15*385cc6b4SJerry Jelinek
16*385cc6b4SJerry Jelinekinclude ../../Makefile.cmd
17*385cc6b4SJerry Jelinekinclude ../../Makefile.ctf
18*385cc6b4SJerry Jelinek
19*385cc6b4SJerry JelinekOBJS= axmain.o acpixtract.o axutils.o
20*385cc6b4SJerry JelinekSRCS = $(OBJS:.o=.c)
21*385cc6b4SJerry Jelinek
22*385cc6b4SJerry JelinekCERRWARN += -_gcc=-Wno-unused-function
23*385cc6b4SJerry Jelinek
24*385cc6b4SJerry JelinekCPPFLAGS += -I$(SRC)/uts/intel/sys/acpi -DACPI_XTRACT_APP
25*385cc6b4SJerry Jelinek
26*385cc6b4SJerry Jelinek.KEEP_STATE:
27*385cc6b4SJerry Jelinek
28*385cc6b4SJerry Jelinekall: $(PROG)
29*385cc6b4SJerry Jelinek
30*385cc6b4SJerry Jelinek$(PROG): $(OBJS)
31*385cc6b4SJerry Jelinek	$(LINK.c) -o $@ $(OBJS) ../common/acpi.a
32*385cc6b4SJerry Jelinek	$(POST_PROCESS)
33*385cc6b4SJerry Jelinek
34*385cc6b4SJerry Jelinekinstall: all $(ROOTUSRSBINPROG)
35*385cc6b4SJerry Jelinek
36*385cc6b4SJerry Jelinekclean:
37*385cc6b4SJerry Jelinek	$(RM) $(OBJS)
38*385cc6b4SJerry Jelinek
39*385cc6b4SJerry Jelineklint:	lint_SRCS
40*385cc6b4SJerry Jelinek
41*385cc6b4SJerry Jelinekinclude ../../Makefile.targ
42