Flashlight

subdirs=backend
targets=flashlight
cflags_force=`pkg-config --cflags libDesktop`
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector
ldflags_force=`pkg-config --libs libDesktop`
ldflags=-pie -Wl,-z,relro -Wl,-z,now
dist=Makefile,backend.h,flashlight.h,window.h
[flashlight]
type=binary
sources=backend.c,flashlight.c,window.c,main.c
install=$(BINDIR)
[backend.c]
depends=backend.h,backend/acpi.c,backend/dummy.c
[flashlight.c]
depends=backend.h,flashlight.h
[main.c]
depends=window.h,../config.h
[window.c]
depends=flashlight.h,window.h,../config.h