dwm-status

Yet another stupid dwm status tool

git clone https://git.8pit.net/dwm-status.git

 1# See LICENSE for license details.
 2BIN_NAME = dwm-status
 3
 4OBJECTS = $(BIN_NAME).o
 5HEADERS = config.h
 6
 7X11INC ?= /usr/include/X11
 8X11LIB ?= /usr/lib/X11
 9
10CFLAGS ?= -O0 -g -Werror
11CFLAGS += -D_BSD_SOURCE -std=c99
12CFLAGS += -Wpedantic -Wall -Wextra \
13	      -Wmissing-prototypes -Wpointer-arith \
14	      -Wstrict-prototypes -Wshadow
15
16CPPFLAGS += -I$(X11INC)
17LDFLAGS  += -L$(X11LIB) -lX11 -ltinyalsa
18
19%.o: %.c $(HEADERS)
20	$(CC) -c -o $@ $< $(CPPFLAGS) $(CFLAGS)
21
22all: $(BIN_NAME)
23$(BIN_NAME): $(OBJECTS)
24	$(CC) -o $@ $^ $(LDFLAGS)
25
26config.h: config.def.h
27	cp $< $@
28
29clean:
30	$(RM) $(BIN_NAME) $(OBJECTS)