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)/utcksum.o\ 44 $(OBJDIR)/utdebug.o\ 45 $(OBJDIR)/utexcep.o\ 46 $(OBJDIR)/utglobal.o\ 47 $(OBJDIR)/uthex.o\ 48 $(OBJDIR)/utmath.o\ 49 $(OBJDIR)/utnonansi.o\ 50 $(OBJDIR)/utstring.o\ 51 $(OBJDIR)/utstrsuppt.o\ 52 $(OBJDIR)/utstrtoul64.o\ 53 $(OBJDIR)/utxferror.o 54 55# 56# Per-host interfaces 57# 58ifeq ($(ACPI_HOST), _DragonFly) 59HOST_FAMILY = BSD 60endif 61 62ifeq ($(ACPI_HOST), _FreeBSD) 63HOST_FAMILY = BSD 64endif 65 66ifeq ($(ACPI_HOST), _NetBSD) 67HOST_FAMILY = BSD 68endif 69 70ifeq ($(ACPI_HOST), _QNX) 71HOST_FAMILY = BSD 72endif 73 74ifeq ($(HOST_FAMILY), BSD) 75OBJECTS += \ 76 $(OBJDIR)/osbsdtbl.o 77else 78OBJECTS += \ 79 $(OBJDIR)/oslinuxtbl.o 80endif 81 82# 83# Flags specific to acpidump 84# 85CFLAGS += \ 86 -DACPI_DUMP_APP\ 87 -I$(ACPIDUMP) 88 89# 90# Common Rules 91# 92include ../Makefile.rules 93