rofi/Makefile

31 lines
700 B
Makefile
Raw Normal View History

2012-11-07 04:16:59 +00:00
CFLAGS?=-Wall -Os
2012-08-27 10:24:30 +00:00
PREFIX?=$(DESTDIR)/usr
BINDIR?=$(PREFIX)/bin
2012-06-29 17:10:13 +00:00
2013-01-20 12:01:13 +00:00
# Check deps.
PKG_CONFIG?=$(shell which pkg-config)
ifeq (${PKG_CONFIG},${EMPTY})
$(error Failed to find pkg-config. Please install pkg-config)
endif
LDADD?=$(shell ${PKG_CONFIG} --cflags --libs x11 xinerama xft)
ifeq (${LDADD},${EMPTY})
$(error Failed to find the required dependencies: x11, xinerama, xft)
endif
2012-06-29 17:10:13 +00:00
all: normal
normal:
2013-01-20 21:23:13 +00:00
$(CC) -o simpleswitcher simpleswitcher.c $(CFLAGS) $(LDADD) $(LDFLAGS)
2012-06-29 17:10:13 +00:00
debug:
2013-01-20 21:23:13 +00:00
$(CC) -o simpleswitcher-debug simpleswitcher.c $(CFLAGS) -Wunused-parameter -g -DDEBUG $(LDADD)
2012-06-29 17:10:13 +00:00
2012-08-27 10:24:30 +00:00
install:
install -Dm 755 simpleswitcher $(BINDIR)/simpleswitcher
2012-06-29 17:10:13 +00:00
clean:
rm -f simpleswitcher simpleswitcher-debug