1 #
   2 # This file and its contents are supplied under the terms of the
   3 # Common Development and Distribution License ("CDDL"), version 1.0.
   4 # You may only use this file in accordance with the terms of version
   5 # 1.0 of the CDDL.
   6 #
   7 # A full copy of the text of the CDDL should have accompanied this
   8 # source.  A copy of the CDDL is also available via the Internet at
   9 # http://www.illumos.org/license/CDDL.
  10 #
  11 
  12 #
  13 # Copyright 2013 Nexenta Systems, Inc.   All rights reserved.
  14 #
  15 
  16 PROG=           acpinames
  17 # common
  18 OBJS +=         getopt.o
  19 #
  20 OBJS +=         anmain.o anstubs.o antables.o
  21 OBJS +=         dbfileio.o
  22 OBJS +=         dsfield.o dsmthdat.o dsobject.o dsutils.o dswload.o     \
  23                 dswload2.o dswscope.o dswstate.o
  24 OBJS +=         excreate.o exnames.o exresnte.o exresolv.o exutils.o
  25 OBJS +=         nsaccess.o nsalloc.o nsdump.o nsinit.o nsload.o         \
  26                 nsnames.o nsobject.o nsparse.o nssearch.o nsutils.o     \
  27                 nswalk.o nsxfeval.o nsxfname.o nsxfobj.o
  28 OBJS +=         osunixxf.o
  29 OBJS +=         psargs.o psloop.o psopcode.o psparse.o psscope.o        \
  30                 pstree.o psutils.o pswalk.o psxface.o psobject.o psopinfo.o
  31 OBJS +=         tbfadt.o tbfind.o tbinstal.o tbutils.o tbxface.o        \
  32                 tbxfroot.o tbprint.o tbxfload.o
  33 OBJS +=         utalloc.o utcache.o utdebug.o utdecode.o utdelete.o     \
  34                 utglobal.o utlock.o utmath.o utmisc.o utmutex.o         \
  35                 utobject.o utstate.o utosi.o utxferror.o utxface.o      \
  36                 utaddress.o uterror.o utexcep.o utownerid.o utstring.o  \
  37                 utxfinit.o
  38 
  39 ACPICA=         $(SRC)/common/acpica
  40 
  41 include         $(SRC)/cmd/Makefile.cmd
  42 
  43 C99MODE=        $(C99_ENABLE)
  44 CPPFLAGS +=     -DACPI_NAMES_APP \
  45                 -I$(ACPICA)/include -I$(ACPICA)/tools/acpinames
  46                 
  47 
  48 .KEEP_STATE:
  49 
  50 all:            $(PROG)
  51 
  52 clean:
  53                 $(RM) $(OBJS)
  54 
  55 install:        all $(ROOTPROG)
  56 
  57 $(PROG):        $(OBJS)
  58                 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
  59                 $(POST_PROCESS)
  60 
  61 %.o:            $(ACPICA)/common/%.c
  62                 $(COMPILE.c) -o $@ $<
  63                 $(POST_PROCESS_O)
  64 
  65 %.o:            $(ACPICA)/compiler/%.c
  66                 $(COMPILE.c) -o $@ $<
  67                 $(POST_PROCESS_O)
  68 
  69 %.o:            $(ACPICA)/components/debugger/%.c
  70                 $(COMPILE.c) -o $@ $<
  71                 $(POST_PROCESS_O)
  72 
  73 %.o:            $(ACPICA)/components/disassembler/%.c
  74                 $(COMPILE.c) -o $@ $<
  75                 $(POST_PROCESS_O)
  76 
  77 %.o:            $(ACPICA)/components/dispatcher/%.c
  78                 $(COMPILE.c) -o $@ $<
  79                 $(POST_PROCESS_O)
  80 
  81 %.o:            $(ACPICA)/components/events/%.c
  82                 $(COMPILE.c) -o $@ $<
  83                 $(POST_PROCESS_O)
  84 
  85 %.o:            $(ACPICA)/components/executer/%.c
  86                 $(COMPILE.c) -o $@ $<
  87                 $(POST_PROCESS_O)
  88 
  89 %.o:            $(ACPICA)/components/hardware/%.c
  90                 $(COMPILE.c) -o $@ $<
  91                 $(POST_PROCESS_O)
  92 
  93 %.o:            $(ACPICA)/components/namespace/%.c
  94                 $(COMPILE.c) -o $@ $<
  95                 $(POST_PROCESS_O)
  96 
  97 %.o:            $(ACPICA)/components/parser/%.c
  98                 $(COMPILE.c) -o $@ $<
  99                 $(POST_PROCESS_O)
 100 
 101 %.o:            $(ACPICA)/components/resources/%.c
 102                 $(COMPILE.c) -o $@ $<
 103                 $(POST_PROCESS_O)
 104 
 105 %.o:            $(ACPICA)/components/tables/%.c
 106                 $(COMPILE.c) -o $@ $<
 107                 $(POST_PROCESS_O)
 108 
 109 %.o:            $(ACPICA)/components/utilities/%.c
 110                 $(COMPILE.c) -o $@ $<
 111                 $(POST_PROCESS_O)
 112 
 113 %.o:            $(ACPICA)/os_specific/service_layers/%.c
 114                 $(COMPILE.c) -o $@ $<
 115                 $(POST_PROCESS_O)
 116 
 117 %.o:            $(ACPICA)/tools/acpinames/%.c
 118                 $(COMPILE.c) -o $@ $<
 119                 $(POST_PROCESS_O)
 120 
 121 include         $(SRC)/cmd/Makefile.targ