targets=camera
#cflags_force=`pkg-config --cflags libDesktop`
cflags=-W -Wall -g -O2 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector
#ldflags_force=`pkg-config --libs libDesktop` -lintl
ldflags=-pie -Wl,-z,relro -Wl,-z,now
dist=Makefile,camera.h,overlay.h,window.h

#for Gtk+ 3
cflags_force=`pkg-config --cflags libDesktop gtk+-x11-3.0`
ldflags_force=`pkg-config --libs libDesktop gtk+-x11-3.0` -lintl

#targets
[camera]
type=binary
sources=camera.c,overlay.c,window.c,main.c
install=$(BINDIR)

#sources
[camera.c]
depends=overlay.h,camera.h,../config.h

[overlay.c]
depends=overlay.h

[window.c]
depends=camera.h,window.h

[main.c]
depends=camera.h,window.h,../config.h
