auto-scripts/auto-glib
mkdir $1
cd $1
echo "#include <glib.h>
int main(int argc, char** argv)
{
GMainLoop *loop;
loop = g_main_loop_new ( NULL , FALSE );
g_print(\"Ciao mondo!\n\");
g_main_loop_run (loop);
g_main_loop_unref(loop);
return 0;
}">main.c
echo "CPP = gcc
OPTS = \`pkg-config --cflags --libs glib-2.0 \`
all:
\$(CPP) main.c -o $1 \$(OPTS)
clean:
rm $1">makefile
echo "project('$1', 'c')
glib = dependency('glib-2.0')
executable('$1', 'main.c', dependencies : glib)">meson.build