include/: refactor header files more

This commit is contained in:
Johan Malm 2020-08-03 20:56:38 +01:00
parent 53266a0d5a
commit 4d1363dcae
32 changed files with 130 additions and 78 deletions

View file

@ -1,8 +1,23 @@
CFLAGS = -g -Wall -Wextra -pedantic -std=c11
CFLAGS += -I../../include/
CFLAGS += `pkg-config --cflags glib-2.0`
ASAN_FLAGS = -O0 -fsanitize=address -fno-common -fno-omit-frame-pointer -rdynamic
CFLAGS += $(ASAN_FLAGS)
LDFLAGS += $(ASAN_FLAGS) -fuse-ld=gold
LDFLAGS += `pkg-config --cflags --libs glib-2.0 wlroots wayland-server`
LDFLAGS += -DWLR_USE_UNSTABLE
SRCS = \
theme-helper.c \
../../src/theme/theme.c \
../../src/theme/theme-dir.c
all:
gcc $(CFLAGS) -o theme-helper theme-helper.c ../../src/theme/theme.c $(LDFLAGS)
gcc $(CFLAGS) -o theme-helper $(SRCS) $(LDFLAGS)
test:
XDG_DATA_HOME=../../data ./theme-helper labwc-default
clean:
rm -f theme-helper *.o