
CC       = gcc
CFLAGS   = -march=native -O2 -pipe -fstack-protector-strong -fno-plt
LDFLAGS  = -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
PREFIX   = /usr

all:
	$(CC) -o xi xi.c $(CFLAGS) $(LDFLAGS)
	$(CC) -o tmuxwm tmuxwm.c $(CFLAGS) $(LDFLAGS) -lX11

install:
	install -Dm0755 xi $(DESTDIR)$(PREFIX)/bin/xi
	install -Dm0755 tmuxwm $(DESTDIR)$(PREFIX)/bin/tmuxwm

clean:
	rm -f xi tmuxwm
