mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
tools/rcxml/: fix build
This commit is contained in:
parent
5be13d2ae3
commit
75594d81b7
2 changed files with 4 additions and 3 deletions
|
|
@ -1,17 +1,19 @@
|
|||
CFLAGS = -g -O0 -Wall -Wextra -std=c11 -pedantic `xml2-config --cflags`
|
||||
CFLAGS += -Wno-unused-parameter
|
||||
CFLAGS += -I../../include
|
||||
CFLAGS += -DWLR_USE_UNSTABLE
|
||||
ASAN_FLAGS = -O0 -fsanitize=address -fno-common -fno-omit-frame-pointer -rdynamic
|
||||
CFLAGS += $(ASAN_FLAGS)
|
||||
LDFLAGS += $(ASAN_FLAGS) -fuse-ld=gold
|
||||
LDFLAGS = `xml2-config --libs`
|
||||
LDFLAGS += `xml2-config --libs`
|
||||
LDFLAGS += `pkg-config --cflags --libs glib-2.0 wayland-server xkbcommon`
|
||||
|
||||
PROGS = rcxml-print-nodenames
|
||||
|
||||
all: $(PROGS)
|
||||
|
||||
rcxml-print-nodenames: rcxml-print-nodenames.c
|
||||
$(CC) $(CFLAGS) -o $@ $^ ../../src/config/rcxml.c ../../src/common/buf.c $(LDFLAGS)
|
||||
$(CC) $(CFLAGS) -o $@ $^ ../../src/config/rcxml.c ../../src/common/buf.c ../../src/config/keybind.c $(LDFLAGS)
|
||||
|
||||
clean:
|
||||
rm -f $(PROGS)
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ int main(int argc, char **argv)
|
|||
exit(EXIT_FAILURE);
|
||||
}
|
||||
buf_init(&b);
|
||||
rcxml_init(&rc);
|
||||
rcxml_get_nodenames(&b);
|
||||
rcxml_read(argv[1]);
|
||||
printf("%s", b.buf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue