Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (21 sloc) 545 Bytes
PREFIX=@PREFIX@
XOSD=@XOSD@
all: keyboard_bright.c
ifdef XOSD
@gcc -DEXISTS_XOSD $(XOSD) keyboard_bright.c -o keyboard_bright
else
@gcc keyboard_bright.c -o keyboard_bright
endif
static: keyboard_bright.c
@gcc -static keyboard_bright.c -o keyboard_bright
doinstall:
@cp keyboard_bright $(PREFIX)/bin
@chown root:root $(PREFIX)/bin/keyboard_bright
@chmod ug+s $(PREFIX)/bin/keyboard_bright
install-static: static doinstall
install: all doinstall
clean:
@rm -f keyboard_bright
.PHONY: install
.PHONY: install-static
.PHONY: clean