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 # 13 include ../Makefile.config 14 FINAL_PROG = ../$(BINDIR)/acpidump 15 PROG = $(OBJDIR)/acpidump 16 17 # 18 # Search paths for source files 19 # 20 vpath %.c \ 21 $(ACPIDUMP)\ 22 $(ACPICA_TABLES)\ 23 $(ACPICA_UTILITIES)\ 24 $(ACPICA_COMMON)\ 25 $(ACPICA_OSL) 26 27 HEADERS = \ 28 $(wildcard $(ACPIDUMP)/*.h) 29 30 OBJECTS = \ 31 $(OBJDIR)/apdump.o\ 32 $(OBJDIR)/apfiles.o\ 33 $(OBJDIR)/apmain.o\ 34 $(OBJDIR)/cmfsize.o\ 35 $(OBJDIR)/getopt.o\ 36 $(OBJDIR)/oslibcfs.o\ 37 $(OBJDIR)/osunixdir.o\ 38 $(OBJDIR)/osunixmap.o\ 39 $(OBJDIR)/osunixxf.o\ 40 $(OBJDIR)/tbprint.o\ 41 $(OBJDIR)/tbxfroot.o\ 42 $(OBJDIR)/utascii.o\ 43 $(OBJDIR)/utbuffer.o\ 44 $(OBJDIR)/utdebug.o\ 45 $(OBJDIR)/utexcep.o\ 46 $(OBJDIR)/utglobal.o\ 47 $(OBJDIR)/utmath.o\ 48 $(OBJDIR)/utnonansi.o\ 49 $(OBJDIR)/utprint.o\ 50 $(OBJDIR)/utstring.o\ 51 $(OBJDIR)/utxferror.o 52 53 # 54 # Per-host interfaces 55 # 56 ifeq ($(HOST), _DragonFly) 57 HOST_FAMILY = BSD 58 endif 59 60 ifeq ($(HOST), _FreeBSD) 61 HOST_FAMILY = BSD 62 endif 63 64 ifeq ($(HOST), _NetBSD) 65 HOST_FAMILY = BSD 66 endif 67 68 ifeq ($(HOST), _QNX) 69 HOST_FAMILY = BSD 70 endif 71 72 ifeq ($(HOST_FAMILY), BSD) 73 OBJECTS += \ 74 $(OBJDIR)/osbsdtbl.o 75 else 76 OBJECTS += \ 77 $(OBJDIR)/oslinuxtbl.o 78 endif 79 80 # 81 # Flags specific to acpidump 82 # 83 CFLAGS += \ 84 -DACPI_DUMP_APP\ 85 -I$(ACPIDUMP) 86 87 # 88 # Common Rules 89 # 90 include ../Makefile.rules 91