mirror of
https://gitlab.freedesktop.org/xorg/lib/libxcb-errors.git
synced 2026-05-22 20:38:14 +02:00
This is an initial prototype on how this library might look like. All the parts which should be auto-generated from XCB's XML protocol description are missing. The C parts should work fine, but are completely untested. Signed-off-by: Uli Schlachter <psychon@znc.in>
15 lines
611 B
Makefile
15 lines
611 B
Makefile
FLAGS=-std=gnu89 -Wall -Wextra -lxcb -fpic -shared -Wl,-no-undefined # -Wl,-export-symbols-regex,'^xcb_errors_'
|
|
|
|
src/libxcb_errors.so: $(wildcard src/*.c) $(wildcard *.h) Makefile src/static_tables.inc syms
|
|
gcc $(FLAGS) -Wl,--retain-symbols-file=syms -o $@ $(wildcard src/*.c)
|
|
|
|
syms:
|
|
echo xcb_errors_context_new > $@
|
|
echo xcb_errors_context_free > $@
|
|
echo xcb_errors_get_name_for_major_code > $@
|
|
echo xcb_errors_get_name_for_minor_code > $@
|
|
echo xcb_errors_get_name_for_event > $@
|
|
echo xcb_errors_get_name_for_error > $@
|
|
|
|
src/static_tables.inc:
|
|
for x in $$(seq 0 255) ; do echo "ENTRY($$x)" ; done > $@
|