6
GLIB_LIB=`pkg-config --libs glib-2.0 gio-2.0`
7
GLIB_FlAGS=`pkg-config --cflags glib-2.0 gio-2.0`
9
GTK_LIBS=`pkg-config --libs gtk+-3.0`
10
GTK_FlAGS=`pkg-config --cflags gtk+-3.0`
21
# Check if ./bin exists
27
# Build the resources.
28
$CC $GLIB_FlAGS -c src/sapg-res.c -o bin/sapg-res.o
30
# Build the main program.
31
$VALAC --target-glib=2.38 \
34
--gresources=sapg.gresource.xml\
36
-X -DGETTEXT_PACKAGE=\"SAPG\"\
39
# bug in valac means it does not get compiled to the correct place. >_<
40
mv main.vala.o bin/main.o
43
$CC bin/main.o bin/sapg-res.o $GTK_LIBS $GLIB_LIB -o bin/SAPG
46
rm bin/main.o bin/sapg-res.o