targets=pdfviewer
#cppflags=-D EMBEDDED
cflags_force=`pkg-config --cflags libDesktop poppler-glib`
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector
ldflags_force=`pkg-config --libs libDesktop poppler-glib` -lm
ldflags=-pie -Wl,-z,relro -Wl,-z,now
dist=Makefile,callbacks.h,common.h,pdfviewer.h

#targets
[pdfviewer]
type=binary
sources=callbacks.c,pdfviewer.c,main.c
install=$(BINDIR)

#sources
[callbacks.c]
depends=callbacks.h,common.h

[main.c]
depends=common.h,pdfviewer.h

[pdfviewer.c]
depends=callbacks.h,common.h,pdfviewer.h,../config.h
