Makefile.sources revision 848b8605
1# src/mapi/Makefile.sources
2#
3# mapi may be used in several ways
4#
5#  - In default mode, mapi implements the interface defined by mapi.h.  To use
6#    this mode, compile MAPI_FILES.
7#
8#  - In util mode, mapi provides utility functions for use with glapi.  To use
9#    this mode, compile MAPI_UTIL_FILES with MAPI_MODE_UTIL defined.
10#
11#  - In glapi mode, mapi implements the interface defined by glapi.h.  To use
12#    this mode, compile MAPI_GLAPI_FILES with MAPI_MODE_GLAPI defined.
13#
14#  - In bridge mode, mapi provides entry points calling into glapi.  To use
15#    this mode, compile MAPI_BRIDGE_FILES with MAPI_MODE_BRIDGE defined.
16
17MAPI_UTIL_FILES = \
18	$(TOP)/src/mapi/u_compiler.h \
19	$(TOP)/src/mapi/u_current.c \
20	$(TOP)/src/mapi/u_current.h \
21	$(TOP)/src/mapi/u_execmem.c \
22	$(TOP)/src/mapi/u_execmem.h \
23	$(TOP)/src/mapi/u_macros.h \
24	$(TOP)/src/mapi/u_thread.h
25
26MAPI_BRIDGE_FILES = \
27	$(TOP)/src/mapi/entry.c \
28	$(TOP)/src/mapi/entry.h \
29	$(TOP)/src/mapi/entry_x86-64_tls.h \
30	$(TOP)/src/mapi/entry_x86_tls.h \
31	$(TOP)/src/mapi/entry_x86_tsd.h \
32	$(TOP)/src/mapi/mapi_tmp.h
33
34MAPI_FILES = \
35	$(TOP)/src/mapi/entry.c \
36	$(TOP)/src/mapi/mapi.c \
37	$(TOP)/src/mapi/mapi.h \
38	$(TOP)/src/mapi/stub.c \
39	$(TOP)/src/mapi/stub.h \
40	$(TOP)/src/mapi/table.c \
41	$(TOP)/src/mapi/table.h \
42	$(MAPI_UTIL_FILES)
43
44MAPI_GLAPI_FILES = \
45	$(TOP)/src/mapi/entry.c \
46	$(TOP)/src/mapi/mapi_glapi.c \
47	$(TOP)/src/mapi/stub.c \
48	$(TOP)/src/mapi/stub.h \
49	$(TOP)/src/mapi/table.c \
50	$(TOP)/src/mapi/table.h \
51	$(MAPI_UTIL_FILES)
52
53