include/: refactor header files

This commit is contained in:
Johan Malm 2020-07-31 21:31:03 +01:00
parent 82dc192217
commit 53266a0d5a
8 changed files with 27 additions and 14 deletions

View file

@ -9,11 +9,18 @@ LDFLAGS += `xml2-config --libs`
LDFLAGS += `pkg-config --cflags --libs glib-2.0 wayland-server xkbcommon`
PROGS = rcxml-print-nodenames
SRC = \
rcxml-print-nodenames.c \
../../src/config/rcxml.c \
../../src/config/config-dir.c \
../../src/common/buf.c \
../../src/config/keybind.c
all: $(PROGS)
rcxml-print-nodenames: rcxml-print-nodenames.c
$(CC) $(CFLAGS) -o $@ $^ ../../src/config/rcxml.c ../../src/common/buf.c ../../src/config/keybind.c $(LDFLAGS)
rcxml-print-nodenames: $(SRC)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
clean:
rm -f $(PROGS)

View file

@ -3,7 +3,7 @@
#include <unistd.h>
#include "rcxml.h"
#include "buf.h"
#include "common/buf.h"
struct rcxml rc = { 0 };