1#
2# acpinames - Load ACPI table and dump namespace. This is a subset
3# of the AcpiExec functionality, it is intended to demonstrate
4# the configurability of ACPICA.
5#
6
7#
8# Note: This makefile is intended to be used from within the native
9# ACPICA directory structure, from under generate/unix. It specifically
10# places all object files in a generate/unix subdirectory, not within
11# the various ACPICA source directories. This prevents collisions
12# between different compilations of the same source file with different
13# compile options, and prevents pollution of the source code.
14#
15include ../Makefile.config
16FINAL_PROG = ../$(BINDIR)/acpinames
17PROG = $(OBJDIR)/acpinames
18
19#
20# Search paths for source files
21#
22vpath %.c \
23    $(ACPINAMES)\
24    $(ACPICA_DISPATCHER)\
25    $(ACPICA_EXECUTER)\
26    $(ACPICA_NAMESPACE)\
27    $(ACPICA_PARSER)\
28    $(ACPICA_TABLES)\
29    $(ACPICA_UTILITIES)\
30    $(ACPICA_COMMON)\
31    $(ACPICA_OSL)
32
33HEADERS = \
34    $(wildcard $(ACPINAMES)/*.h)
35
36OBJECTS = \
37	$(OBJDIR)/acfileio.o\
38	$(OBJDIR)/anmain.o\
39	$(OBJDIR)/anstubs.o\
40	$(OBJDIR)/antables.o\
41	$(OBJDIR)/cmfsize.o\
42	$(OBJDIR)/dsfield.o\
43	$(OBJDIR)/dsinit.o\
44	$(OBJDIR)/dsmthdat.o\
45	$(OBJDIR)/dsobject.o\
46	$(OBJDIR)/dsutils.o\
47	$(OBJDIR)/dswload.o\
48	$(OBJDIR)/dswload2.o\
49	$(OBJDIR)/dswscope.o\
50	$(OBJDIR)/dswstate.o\
51	$(OBJDIR)/excreate.o\
52	$(OBJDIR)/exdump.o\
53	$(OBJDIR)/exmutex.o\
54	$(OBJDIR)/exnames.o\
55	$(OBJDIR)/exprep.o\
56	$(OBJDIR)/exresnte.o\
57	$(OBJDIR)/exresolv.o\
58	$(OBJDIR)/exsystem.o\
59	$(OBJDIR)/exutils.o\
60	$(OBJDIR)/getopt.o\
61	$(OBJDIR)/nsaccess.o\
62	$(OBJDIR)/nsalloc.o\
63	$(OBJDIR)/nsdump.o\
64	$(OBJDIR)/nsinit.o\
65	$(OBJDIR)/nsload.o\
66	$(OBJDIR)/nsnames.o\
67	$(OBJDIR)/nsobject.o\
68	$(OBJDIR)/nsparse.o\
69	$(OBJDIR)/nssearch.o\
70	$(OBJDIR)/nsutils.o\
71	$(OBJDIR)/nswalk.o\
72	$(OBJDIR)/nsxfeval.o\
73	$(OBJDIR)/nsxfname.o\
74	$(OBJDIR)/nsxfobj.o\
75	$(OBJDIR)/oslibcfs.o\
76	$(OBJDIR)/osunixxf.o\
77	$(OBJDIR)/psargs.o\
78	$(OBJDIR)/psloop.o\
79	$(OBJDIR)/psobject.o\
80	$(OBJDIR)/psopcode.o\
81	$(OBJDIR)/psopinfo.o\
82	$(OBJDIR)/psparse.o\
83	$(OBJDIR)/psscope.o\
84	$(OBJDIR)/pstree.o\
85	$(OBJDIR)/psutils.o\
86	$(OBJDIR)/pswalk.o\
87	$(OBJDIR)/psxface.o\
88	$(OBJDIR)/tbdata.o\
89	$(OBJDIR)/tbfadt.o\
90	$(OBJDIR)/tbfind.o\
91	$(OBJDIR)/tbinstal.o\
92	$(OBJDIR)/tbprint.o\
93	$(OBJDIR)/tbutils.o\
94	$(OBJDIR)/tbxface.o\
95	$(OBJDIR)/tbxfload.o\
96	$(OBJDIR)/tbxfroot.o\
97	$(OBJDIR)/utaddress.o\
98	$(OBJDIR)/utalloc.o\
99	$(OBJDIR)/utascii.o\
100	$(OBJDIR)/utbuffer.o\
101	$(OBJDIR)/utcache.o\
102	$(OBJDIR)/utdebug.o\
103	$(OBJDIR)/utdecode.o\
104	$(OBJDIR)/utdelete.o\
105	$(OBJDIR)/uterror.o\
106	$(OBJDIR)/uteval.o\
107	$(OBJDIR)/utexcep.o\
108	$(OBJDIR)/utglobal.o\
109	$(OBJDIR)/uthex.o\
110	$(OBJDIR)/utids.o\
111	$(OBJDIR)/utinit.o\
112	$(OBJDIR)/utlock.o\
113	$(OBJDIR)/utmath.o\
114	$(OBJDIR)/utmisc.o\
115	$(OBJDIR)/utmutex.o\
116	$(OBJDIR)/utobject.o\
117	$(OBJDIR)/utosi.o\
118	$(OBJDIR)/utownerid.o\
119	$(OBJDIR)/utprint.o\
120	$(OBJDIR)/utstate.o\
121	$(OBJDIR)/utstring.o\
122	$(OBJDIR)/utxface.o\
123	$(OBJDIR)/utxferror.o\
124	$(OBJDIR)/utxfinit.o
125
126#
127# Flags specific to acpinames utility
128#
129CFLAGS += \
130    -DACPI_NAMES_APP\
131    -I$(ACPINAMES)
132
133#
134# Common Rules
135#
136include ../Makefile.rules
137