1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-02-03 15:34:54 -05:00
rofi/Makefile
2013-02-04 14:35:23 +01:00

30 lines
719 B
Makefile

CFLAGS?=-Wall -Os
PREFIX?=$(DESTDIR)/usr
BINDIR?=$(PREFIX)/bin
# 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
all: normal
normal:
$(CC) -o simpleswitcher simpleswitcher.c -std=c99 $(CFLAGS) $(LDADD) $(LDFLAGS)
debug:
$(CC) -o simpleswitcher-debug simpleswitcher.c -std=c99 $(CFLAGS) -Wunused-parameter -g -DDEBUG $(LDADD)
install:
install -Dm 755 simpleswitcher $(BINDIR)/simpleswitcher
clean:
rm -f simpleswitcher simpleswitcher-debug