Home | History | Annotate | Line # | Download | only in acpibin
Makefile revision 1.1.1.1
      1 #
      2 # acpibin - Binary ACPI table utility
      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 PROG = acpibin
     15 
     16 #
     17 # Flags specific to acpibin
     18 #
     19 CFLAGS+= \
     20     -DACPI_BIN_APP \
     21     -I$(ACPICA_TOOLS)/acpibin
     22 
     23 OBJS = \
     24     abcompare.o \
     25     abmain.o \
     26 	utalloc.o \
     27 	utcache.o \
     28 	utdebug.o \
     29 	utdecode.o \
     30 	utglobal.o \
     31 	utlock.o \
     32 	utmath.o \
     33 	utmisc.o \
     34 	utmutex.o \
     35 	utstate.o \
     36 	utxferror.o \
     37 	osunixxf.o \
     38     getopt.o
     39 
     40 #
     41 # Root rule
     42 #
     43 $(PROG) : $(OBJS)
     44 	$(CC) $(LDFLAGS) $(OBJS) -o $(PROG)
     45 	$(COPYPROG)
     46 
     47 #
     48 # acpibin source
     49 #
     50 abcompare.o :       $(ACPICA_TOOLS)/acpibin/abcompare.c
     51 	$(COMPILE)
     52 
     53 abmain.o :          $(ACPICA_TOOLS)/acpibin/abmain.c
     54 	$(COMPILE)
     55 
     56 #
     57 # ACPICA core source - common
     58 #
     59 getopt.o :          $(ACPICA_COMMON)/getopt.c
     60 	$(COMPILE)
     61 
     62 #
     63 # ACPICA core source
     64 #
     65 utalloc.o :         $(ACPICA_CORE)/utilities/utalloc.c
     66 	$(COMPILE)
     67 
     68 utcache.o :         $(ACPICA_CORE)/utilities/utcache.c
     69 	$(COMPILE)
     70 
     71 utdebug.o :         $(ACPICA_CORE)/utilities/utdebug.c
     72 	$(COMPILE)
     73 
     74 utdecode.o :        $(ACPICA_CORE)/utilities/utdecode.c
     75 	$(COMPILE)
     76 
     77 utglobal.o :        $(ACPICA_CORE)/utilities/utglobal.c
     78 	$(COMPILE)
     79 
     80 utlock.o :          $(ACPICA_CORE)/utilities/utlock.c
     81 	$(COMPILE)
     82 
     83 utmath.o :          $(ACPICA_CORE)/utilities/utmath.c
     84 	$(COMPILE)
     85 
     86 utmisc.o :          $(ACPICA_CORE)/utilities/utmisc.c
     87 	$(COMPILE)
     88 
     89 utmutex.o :         $(ACPICA_CORE)/utilities/utmutex.c
     90 	$(COMPILE)
     91 
     92 utstate.o :         $(ACPICA_CORE)/utilities/utstate.c
     93 	$(COMPILE)
     94 
     95 utxferror.o :       $(ACPICA_CORE)/utilities/utxferror.c
     96 	$(COMPILE)
     97 
     98 #
     99 # Unix OS services layer (OSL)
    100 #
    101 osunixxf.o :        $(ACPICA_OSL)/osunixxf.c
    102 	$(COMPILE)
    103 
    104 
    105 clean :
    106 	rm -f $(PROG) $(PROG).exe $(OBJS)
    107 
    108 install :
    109 	$(INSTALLPROG)
    110