diff options
author | Cody Hiar <chiar@hybridforge.com> | 2015-08-12 12:06:23 -0600 |
---|---|---|
committer | Cody Hiar <chiar@hybridforge.com> | 2015-08-12 12:06:23 -0600 |
commit | 07fc2644a237187dd4c5680e88f4adadbf533603 (patch) | |
tree | bb6335e180df48c5a6f0b893312857d36ad470f7 /segments/Makefile |
Initial commit of the working files
Diffstat (limited to 'segments/Makefile')
-rw-r--r-- | segments/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/segments/Makefile b/segments/Makefile new file mode 100644 index 0000000..07767b5 --- /dev/null +++ b/segments/Makefile @@ -0,0 +1,18 @@ +# Build the small MPD NP program. +# Enable debug printing with $ make -e DEBUG=1 +DEBUG=0 +CC = $(shell hash clang 2>/dev/null && echo clang || echo gcc) +CFLAGS = -O3 -Wall -std=c99 -I /usr/include/ -D DEBUG=${DEBUG} +LDLIBS = -lmpdclient +XKB_LAYOUT_LDLIBS= -lX11 + +.PHONY: all clean + +all: np_mpd xkb_layout + +xkb_layout: xkb_layout.c + $(CC) $(CFLAGS) $(LDFLAGS) $< $(XKB_LAYOUT_LDLIBS) -o $@ + +clean: + $(RM) np_mpd + $(RM) xkb_layout |