Sync ACPICA with Intel's version 20170831.
[dragonfly.git] / sys / contrib / dev / acpica / generate / unix / acpidump / Makefile
blob884708b8aa26b9ed9b1b5865805ede6535577ffd
2 # acpidump - ACPI table dump utility (binary to ascii hex)
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.
13 include ../Makefile.config
14 FINAL_PROG = ../$(BINDIR)/acpidump
15 PROG = $(OBJDIR)/acpidump
18 # Search paths for source files
20 vpath %.c \
21 $(ACPIDUMP)\
22 $(ACPICA_TABLES)\
23 $(ACPICA_UTILITIES)\
24 $(ACPICA_COMMON)\
25 $(ACPICA_OSL)
27 HEADERS = \
28 $(wildcard $(ACPIDUMP)/*.h)
30 OBJECTS = \
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)/uthex.o\
47 $(OBJDIR)/utmath.o\
48 $(OBJDIR)/utnonansi.o\
49 $(OBJDIR)/utstring.o\
50 $(OBJDIR)/utstrsuppt.o\
51 $(OBJDIR)/utstrtoul64.o\
52 $(OBJDIR)/utxferror.o
55 # Per-host interfaces
57 ifeq ($(HOST), _DragonFly)
58 HOST_FAMILY = BSD
59 endif
61 ifeq ($(HOST), _FreeBSD)
62 HOST_FAMILY = BSD
63 endif
65 ifeq ($(HOST), _NetBSD)
66 HOST_FAMILY = BSD
67 endif
69 ifeq ($(HOST), _QNX)
70 HOST_FAMILY = BSD
71 endif
73 ifeq ($(HOST_FAMILY), BSD)
74 OBJECTS += \
75 $(OBJDIR)/osbsdtbl.o
76 else
77 OBJECTS += \
78 $(OBJDIR)/oslinuxtbl.o
79 endif
82 # Flags specific to acpidump
84 CFLAGS += \
85 -DACPI_DUMP_APP\
86 -I$(ACPIDUMP)
89 # Common Rules
91 include ../Makefile.rules