subdirs=applets
targets=panel,panelctl,run
cppflags_force=-I ../include
#cppflags=-D EMBEDDED
cflags_force=-W
cflags=-Wall -g -O2 -pedantic
dist=Makefile,common.h,window.h

[panel]
type=binary
sources=panel.c,window.c,main.c
cppflags=-D PREFIX=\"$(PREFIX)\"
cflags=`pkg-config --cflags libSystem libDesktop`
ldflags=`pkg-config --libs libSystem libDesktop`
install=$(BINDIR)

[main.c]
depends=common.h,../config.h

[panel.c]
depends=common.h,window.h,../include/Panel.h,../config.h

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

[panelctl]
type=binary
sources=panelctl.c
cflags=`pkg-config --cflags gtk+-2.0`
ldflags=`pkg-config --libs gtk+-2.0`
install=$(BINDIR)

[panelctl.c]
depends=../config.h

[run]
type=binary
sources=run.c
cppflags=-D PREFIX=\"$(PREFIX)\"
cflags=`pkg-config --cflags libSystem gtk+-2.0`
ldflags=`pkg-config --libs libSystem gtk+-2.0`
install=$(BINDIR)