aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 6eb1f43eaf16b1ba04d259eebbe3d07b9ae0a6dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.POSIX:

CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700
CFLAGS   = -std=c99 -Wall -Wextra -pedantic -O2 $(CPPFLAGS)
LDFLAGS  = -s -lxcb -lxcb-keysyms

all: xkbdbind

xkbdbind: xkbdbind.c config.h
	$(CC) -o $@ $@.c $(CFLAGS) $(LDFLAGS)

clean:
	-rm -f -- xkbdbind *.o

.SUFFIXES:

.PHONY: all clean