xref: /haiku/src/add-ons/kernel/bus_managers/acpi/Jamfile (revision ba499cdc3336fb89429027418871bf263f1f5e14)
1SubDir HAIKU_TOP src add-ons kernel bus_managers acpi ;
2
3SetSubDirSupportedPlatformsBeOSCompatible ;
4
5SubDirHdrs [ FDirName $(SUBDIR) include ] ;
6SubDirHdrs [ FDirName $(SUBDIR) include platform ] ;
7SubDirHdrs [ FDirName $(SUBDIR) $(DOTDOT) pci ] ;
8SubDirCcFlags -fno-pic -D_KERNEL_MODE ;
9
10if $(TARGET_PLATFORM) != haiku {
11	# Needed for <ACPI.h>. Unfortunately we also get the other headers there,
12	# that we don't really want.
13	UsePublicHeaders drivers ;
14}
15
16local events_src =
17	evevent.c
18	evgpe.c
19	evgpeblk.c
20	evmisc.c
21	evregion.c
22	evrgnini.c
23	evsci.c
24	evxface.c
25	evxfevnt.c
26	evxfregn.c
27	;
28
29local hardware_src =
30	hwacpi.c
31	hwgpe.c
32	hwregs.c
33	hwsleep.c
34	hwtimer.c
35;
36
37local debugger_src =
38	dbdisply.c
39	dbxface.c
40;
41
42local disassembler_src =
43	dmobject.c
44;
45
46local dispatcher_src =
47	dsfield.c
48	dsinit.c
49	dsmethod.c
50	dsmthdat.c
51	dsobject.c
52	dsopcode.c
53	dsutils.c
54	dswexec.c
55	dswload.c
56	dswscope.c
57	dswstate.c
58	;
59
60local executer_src =
61	exconfig.c
62	exconvrt.c
63	excreate.c
64	exdump.c
65	exfield.c
66	exfldio.c
67	exmisc.c
68	exmutex.c
69	exnames.c
70	exoparg1.c
71	exoparg2.c
72	exoparg3.c
73	exoparg6.c
74	exprep.c
75	exregion.c
76	exresnte.c
77	exresolv.c
78	exresop.c
79	exstore.c
80	exstoren.c
81	exstorob.c
82	exsystem.c
83	exutils.c
84	;
85
86local parser_src =
87	psargs.c
88	psloop.c
89	psopcode.c
90	psparse.c
91	psscope.c
92	pstree.c
93	psutils.c
94	pswalk.c
95	psxface.c
96	;
97
98local namespace_src =
99	nsaccess.c
100	nsalloc.c
101	nsdump.c
102	nsdumpdv.c
103	nseval.c
104	nsinit.c
105	nsload.c
106	nsnames.c
107	nsobject.c
108	nsparse.c
109	nssearch.c
110	nsutils.c
111	nswalk.c
112	nsxfeval.c
113	nsxfname.c
114	nsxfobj.c
115	;
116
117local resources_src =
118	rsaddr.c
119	rscalc.c
120	rscreate.c
121	rsdump.c
122	rsinfo.c
123	rsio.c
124	rsirq.c
125	rslist.c
126	rsmemory.c
127	rsmisc.c
128	rsutils.c
129	rsxface.c
130	;
131
132local tables_src =
133	tbfadt.c
134	tbfind.c
135	tbinstal.c
136	#tbutils.c
137	tbxface.c
138	tbxfroot.c
139	;
140
141local utilities_src =
142	utalloc.c
143	utcache.c
144	utclib.c
145	utcopy.c
146	utdebug.c
147	utdelete.c
148	uteval.c
149	utglobal.c
150	utinit.c
151	utmath.c
152	utmisc.c
153	utmutex.c
154	utobject.c
155	utresrc.c
156	utstate.c
157	uttrack.c
158	utxface.c
159	;
160
161StaticLibrary libacpi_ca.a :
162	$(events_src)
163	$(hardware_src)
164	$(dispatcher_src)
165	$(executer_src)
166	$(parser_src)
167	$(namespace_src)
168	$(resources_src)
169	$(tables_src)
170	$(utilities_src)
171	 ;
172
173
174# this is a workaround for an optimization bug in our GCC4 with -O1 and -O2, this should be dropped when we upgrade
175oldOPTIM = $(OPTIM) ;
176OPTIM = -O3 ;
177StaticLibrary libacpi_ca.a :
178	tbutils.c
179;
180
181OPTIM = $(oldOPTIM) ;
182
183SEARCH on [ FGristFiles $(events_src)  ] = [ FDirName $(HAIKU_TOP) src add-ons kernel bus_managers acpi events ] ;
184SEARCH on [ FGristFiles $(hardware_src)  ] = [ FDirName $(HAIKU_TOP) src add-ons kernel bus_managers acpi hardware ] ;
185SEARCH on [ FGristFiles $(namespace_src)  ] = [ FDirName $(HAIKU_TOP) src add-ons kernel bus_managers acpi namespace ] ;
186SEARCH on [ FGristFiles $(resources_src)  ] = [ FDirName $(HAIKU_TOP) src add-ons kernel bus_managers acpi resources ] ;
187SEARCH on [ FGristFiles $(tables_src) tbutils.c ] = [ FDirName $(HAIKU_TOP) src add-ons kernel bus_managers acpi tables ] ;
188SEARCH on [ FGristFiles $(utilities_src)  ] = [ FDirName $(HAIKU_TOP) src add-ons kernel bus_managers acpi utilities ] ;
189SEARCH on [ FGristFiles $(dispatcher_src)  ] = [ FDirName $(HAIKU_TOP) src add-ons kernel bus_managers acpi interpreter dispatcher ] ;
190SEARCH on [ FGristFiles $(executer_src)  ] = [ FDirName $(HAIKU_TOP) src add-ons kernel bus_managers acpi interpreter executer ] ;
191SEARCH on [ FGristFiles $(parser_src)  ] = [ FDirName $(HAIKU_TOP) src add-ons kernel bus_managers acpi interpreter parser ] ;
192
193KernelAddon acpi :
194	oshaiku.c
195	acpi_busman.c
196	acpi_module.c
197	acpi_device.c
198	acpi_ns_dump.c
199	:
200	libacpi_ca.a
201	;
202