Home | History | Annotate | Line # | Download | only in acpidump
      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)/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 #
     58 ifeq ($(ACPI_HOST), _DragonFly)
     59 HOST_FAMILY = BSD
     60 endif
     61 
     62 ifeq ($(ACPI_HOST), _FreeBSD)
     63 HOST_FAMILY = BSD
     64 endif
     65 
     66 ifeq ($(ACPI_HOST), _NetBSD)
     67 HOST_FAMILY = BSD
     68 endif
     69 
     70 ifeq ($(ACPI_HOST), _QNX)
     71 HOST_FAMILY = BSD
     72 endif
     73 
     74 ifeq ($(HOST_FAMILY), BSD)
     75 OBJECTS += \
     76 	$(OBJDIR)/osbsdtbl.o
     77 else
     78 OBJECTS += \
     79 	$(OBJDIR)/oslinuxtbl.o
     80 endif
     81 
     82 #
     83 # Flags specific to acpidump
     84 #
     85 CFLAGS += \
     86     -DACPI_DUMP_APP\
     87     -I$(ACPIDUMP)
     88 
     89 #
     90 # Common Rules
     91 #
     92 include ../Makefile.rules
     93