1#
2# acpidump - ACPI table dump utility (binary to ascii hex)
3#
4
5#
6# Note: This makefile is intended to be used from within the native
7# ACPICA directory structure, from under generate/unix. It specifically
8# places all object files in a generate/unix subdirectory, not within
9# the various ACPICA source directories. This prevents collisions
10# between different compilations of the same source file with different
11# compile options, and prevents pollution of the source code.
12#
13include ../Makefile.config
14FINAL_PROG = ../$(BINDIR)/acpidump
15PROG = $(OBJDIR)/acpidump
16
17#
18# Search paths for source files
19#
20vpath %.c \
21    $(ACPIDUMP)\
22    $(ACPICA_TABLES)\
23    $(ACPICA_UTILITIES)\
24    $(ACPICA_COMMON)\
25    $(ACPICA_OSL)
26
27HEADERS = \
28    $(wildcard $(ACPIDUMP)/*.h)
29
30OBJECTS = \
31	$(OBJDIR)/apdump.o\
32	$(OBJDIR)/apfiles.o\
33	$(OBJDIR)/apmain.o\
34	$(OBJDIR)/cmfsize.o\
35	$(OBJDIR)/getopt.o\
36	$(OBJDIR)/osunixdir.o\
37	$(OBJDIR)/osunixmap.o\
38	$(OBJDIR)/osunixxf.o\
39	$(OBJDIR)/tbprint.o\
40	$(OBJDIR)/tbxfroot.o\
41	$(OBJDIR)/utascii.o\
42	$(OBJDIR)/utbuffer.o\
43	$(OBJDIR)/utdebug.o\
44	$(OBJDIR)/utexcep.o\
45	$(OBJDIR)/utglobal.o\
46	$(OBJDIR)/utmath.o\
47	$(OBJDIR)/utnonansi.o\
48	$(OBJDIR)/utstring.o\
49	$(OBJDIR)/utxferror.o
50
51#
52# Per-host interfaces
53#
54ifeq ($(HOST), _DragonFly)
55HOST_FAMILY = BSD
56endif
57
58ifeq ($(HOST), _FreeBSD)
59HOST_FAMILY = BSD
60endif
61
62ifeq ($(HOST), _NetBSD)
63HOST_FAMILY = BSD
64endif
65
66ifeq ($(HOST), _QNX)
67HOST_FAMILY = BSD
68endif
69
70ifeq ($(HOST_FAMILY), BSD)
71OBJECTS += \
72	$(OBJDIR)/osbsdtbl.o
73else
74OBJECTS += \
75	$(OBJDIR)/oslinuxtbl.o
76endif
77
78#
79# Flags specific to acpidump
80#
81CFLAGS += \
82    -DACPI_DUMP_APP\
83    -I$(ACPIDUMP)
84
85#
86# Common Rules
87#
88include ../Makefile.rules
89