Document compilation flags for Gtk+ 3

This commit is contained in:
Pierre Pronchery 2015-10-19 00:07:06 +02:00
parent a288d05d89
commit 69d71f44ab
2 changed files with 11 additions and 3 deletions

View File

@ -1,8 +1,12 @@
targets=libDesktop
cppflags_force=-I ../include
cflags_force=`pkg-config --cflags libSystem gtk+-2.0` -fPIC
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
#for Gtk+ 2
cflags_force=`pkg-config --cflags libSystem gtk+-2.0` -fPIC
ldflags_force=`pkg-config --libs libSystem gtk+-2.0`
#for Gtk+ 3
#cflags_force=`pkg-config --cflags libSystem gtk+-3.0` -fPIC
#ldflags_force=`pkg-config --libs libSystem gtk+-3.0`
dist=Makefile
[libDesktop]

View File

@ -1,9 +1,13 @@
targets=widget
cppflags_force=-I ../include
cflags_force=`pkg-config --cflags libSystem gtk+-2.0`
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags_force=`pkg-config --libs libSystem gtk+-2.0` -L $(OBJDIR)../src -lDesktop
ldflags=-Wl,-pie
#for Gtk+ 2
cflags_force=`pkg-config --cflags libSystem gtk+-2.0`
ldflags_force=`pkg-config --libs libSystem gtk+-2.0` -L $(OBJDIR)../src -lDesktop
#for Gtk+ 3
#cflags_force=`pkg-config --cflags libSystem gtk+-3.0`
#ldflags_force=`pkg-config --libs libSystem gtk+-3.0` -L $(OBJDIR)../src -lDesktop
dist=Makefile
[widget]