24 lines
667 B
Plaintext
24 lines
667 B
Plaintext
targets=tests.log,widget
|
|
cppflags_force=-I ../include
|
|
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
|
|
ldflags=-pie -Wl,-z,relro -Wl,-z,now
|
|
#for Gtk+ 2
|
|
cflags_force=`pkg-config --cflags libSystem gtk+-2.0`
|
|
ldflags_force=`pkg-config --libs libSystem gtk+-2.0` $(OBJDIR)../src/libDesktop.a
|
|
#for Gtk+ 3
|
|
#cflags_force=`pkg-config --cflags libSystem gtk+-3.0`
|
|
#ldflags_force=`pkg-config --libs libSystem gtk+-3.0` $(OBJDIR)../src/libDesktop.a
|
|
dist=Makefile,pkgconfig.sh,tests.sh
|
|
|
|
[tests.log]
|
|
type=script
|
|
script=./tests.sh
|
|
depends=pkgconfig.sh,tests.sh
|
|
|
|
[widget]
|
|
type=binary
|
|
sources=widget.c
|
|
|
|
[widget.c]
|
|
depends=$(OBJDIR)../src/libDesktop.a
|