etc/protocols - sync with NetBSD-8
[minix.git] / external / mit / xorg / lib / libglapi / Makefile
blob96c891d36bec7a860c3bf6cadff6e9aecf7b761c
1 # $NetBSD: Makefile,v 1.1 2014/12/18 06:24:30 mrg Exp $
3 .include <bsd.own.mk>
5 LIB= glapi
6 LIBISCXX= yes
8 SHLIB_MAJOR= 0
9 SHLIB_MINOR= 0
11 # util
12 .PATH: ${X11SRCDIR.MesaLib}/src/util
13 SRCS.util= \
14 hash_table.c \
15 ralloc.c
16 .PATH: ${X11SRCDIR.MesaLib}/../src/util
17 SRCS.util+= \
18 format_srgb.c
20 # mapi
21 .PATH: ${X11SRCDIR.MesaLib}/src/mapi
22 SRCS.mapi= \
23 entry.c \
24 mapi_glapi.c \
25 stub.c \
26 table.c \
27 u_current.c \
28 u_execmem.c
29 CPPFLAGS.entry.c= -DMAPI_MODE_GLAPI -DMAPI_ABI_HEADER=\"shared-glapi_glapi_mapi_tmp.h\"
31 BUILDSYMLINKS+= ${X11SRCDIR.MesaLib}/src/mapi/entry.c shared_entry.c
33 # above is shared/libglapi.la
35 SRCS+= ${SRCS.util} ${SRCS.mapi} ${SRCS.mapi-glapi}
37 CPPFLAGS+= \
38 -I${X11SRCDIR.MesaLib}/include \
39 -I${X11SRCDIR.MesaLib}/src/mapi \
40 -I${X11SRCDIR.MesaLib}/src/mapi/glapi \
41 -I${X11SRCDIR.MesaLib}/src/mesa \
42 -I${X11SRCDIR.MesaLib}/src/util \
43 -I${X11SRCDIR.MesaLib}/../src/mapi \
44 -I${X11SRCDIR.MesaLib}/../src/mapi/glapi \
45 -I${X11SRCDIR.MesaLib}/../src/mesa
47 CPPFLAGS+= \
48 -DMAPI_MODE_GLAPI -DMAPI_ABI_HEADER=\"shared-glapi_glapi_mapi_tmp.h\"
50 CPPFLAGS+= ${X11FLAGS.THREADLIB}
52 .include "${.CURDIR}/../libGL/mesa-ver.mk"
54 .if !defined(__MINIX)
55 CFLAGS+= -fno-strict-aliasing -fvisibility=hidden -pthread -fno-builtin-memcmp
56 .else
57 CFLAGS+= -fno-strict-aliasing -fvisibility=hidden -fno-builtin-memcmp
58 LDADD+= -lmthread
59 DPADD+= ${LIBMTHREAD}
60 .endif # !defined(__MINIX)
62 CPPFLAGS+= \
63 -DPACKAGE_NAME=\"Mesa\" \
64 -DPACKAGE_TARNAME=\"mesa\" \
65 -DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\" \
66 -DPACKAGE_VERSION=\"${MESA_VER}\" \
67 -DPACKAGE_STRING=\"Mesa\ ${MESA_VER}\" \
68 -DVERSION=\"${MESA_VER}\" \
69 -DPACKAGE_URL=\"\" \
70 -DPACKAGE=\"mesa\" \
71 -DSTDC_HEADERS=1 \
72 -DHAVE_SYS_TYPES_H=1 \
73 -DHAVE_SYS_STAT_H=1 \
74 -DHAVE_STDLIB_H=1 \
75 -DHAVE_STRING_H=1 \
76 -DHAVE_MEMORY_H=1 \
77 -DHAVE_STRINGS_H=1 \
78 -DHAVE_INTTYPES_H=1 \
79 -DHAVE_STDINT_H=1 \
80 -DHAVE_UNISTD_H=1 \
81 -DHAVE_DLFCN_H=1 \
82 -DYYTEXT_POINTER=1 \
83 -DHAVE___BUILTIN_BSWAP32=1 \
84 -DHAVE___BUILTIN_BSWAP64=1 \
85 -DHAVE_DLADDR=1 \
86 -DHAVE_CLOCK_GETTIME=1 \
87 -DHAVE_PTHREAD=1 \
88 -I. \
89 -DUSE_EXTERNAL_DXTN_LIB=1 \
90 -DHAVE_DLOPEN \
91 -DHAVE_POSIX_MEMALIGN \
92 -DHAVE_LIBDRM \
93 -DGLX_USE_DRM \
94 -DGLX_INDIRECT_RENDERING \
95 -DGLX_DIRECT_RENDERING \
96 -DHAVE_PTHREAD \
97 -DHAVE_ALIAS \
98 -DMESA_EGL_NO_X11_HEADERS
100 .include "../asm.mk"
102 MKLINT=no
104 #CWARNFLAGS.clang+= -Wno-tautological-compare -Wno-format -Wno-constant-conversion
106 .include <bsd.x11.mk>
107 .include <bsd.lib.mk>