Browser
targets=desktop,desktopctl,handler/mimeapp.o
cppflags_force=-I../../include
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,desktop.h,desktopicon.h,desktopiconwindow.h,handler.h,handler/applications.c,handler/categories.c,handler/files.c,handler/homescreen.c,handler/mimeapp.h
#modes
[mode::embedded-debug]
cppflags_force=-I../../include -DEMBEDDED
[mode::embedded-release]
cppflags_force=-I../../include -DEMBEDDED -DNDEBUG
cflags=-W -Wall -O2 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector
[mode::release]
cppflags_force=-I../../include -DNDEBUG
cflags=-W -Wall -O2 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector
#targets
[desktop]
type=binary
depends=$(OBJDIR)../lib/libBrowser.a,$(OBJDIR)handler/mimeapp.o
sources=desktop.c,desktopicon.c,desktopiconwindow.c,handler.c,main.c
cflags=`pkg-config --cflags x11 xrandr`
ldflags=`pkg-config --libs x11 xrandr` -L$(OBJDIR)../lib -Wl,-rpath,$(PREFIX)/lib -lBrowser $(OBJDIR)handler/mimeapp.o
install=$(BINDIR)
[desktopctl]
type=binary
sources=desktopctl.c
install=$(BINDIR)
[handler/mimeapp.o]
type=object
sources=handler/mimeapp.c
#sources
[desktop.c]
depends=../common.h,../common.c,desktopicon.h,desktop.h,../../config.h
cppflags=-D PREFIX=\"$(PREFIX)\"
[desktopctl.c]
depends=desktop.h,../../config.h
[desktopicon.c]
depends=../common.h,../common.c,desktop.h,desktopicon.h,../../config.h
cppflags=-D PREFIX=\"$(PREFIX)\"
[desktopiconwindow.c]
depends=../common.h,desktop.h,desktopicon.h,desktopiconwindow.h
[handler.c]
depends=desktop.h,desktopicon.h,desktopiconwindow.h,handler.h,handler/applications.c,handler/categories.c,handler/files.c,handler/homescreen.c,handler/mimeapp.h
[main.c]
depends=desktop.h,../../config.h