Complete the flags for building with Gtk+ 3

This commit is contained in:
Pierre Pronchery 2020-01-23 20:10:33 +01:00
parent 77c0833c08
commit 8d49ceca6b
3 changed files with 11 additions and 7 deletions

View File

@ -1,7 +1,7 @@
targets=camera
cflags_force=`pkg-config --cflags libDesktop`
#cflags_force=`pkg-config --cflags libDesktop`
cflags=-W -Wall -g -O2 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector
ldflags_force=`pkg-config --libs libDesktop` -lintl
#ldflags_force=`pkg-config --libs libDesktop` -lintl
ldflags=-pie -Wl,-z,relro -Wl,-z,now
dist=Makefile,camera.h,overlay.h,window.h
@ -9,11 +9,13 @@ dist=Makefile,camera.h,overlay.h,window.h
cflags_force=`pkg-config --cflags libDesktop gtk+-x11-3.0`
ldflags_force=`pkg-config --libs libDesktop gtk+-x11-3.0` -lintl
#targets
[camera]
type=binary
sources=camera.c,overlay.c,window.c,main.c
install=$(BINDIR)
#sources
[camera.c]
depends=overlay.h,camera.h,../config.h

View File

@ -1,11 +1,11 @@
targets=camera
cflags_force=`pkg-config --cflags libDesktop` -fPIC
#cflags_force=`pkg-config --cflags libDesktop` -fPIC
cflags=-W -Wall -g -O2 -D_FORTIFY_SOURCE=2 -fstack-protector
ldflags_force=`pkg-config --libs libDesktop` -lintl
#ldflags_force=`pkg-config --libs libDesktop` -lintl
ldflags=-Wl,-z,relro -Wl,-z,now
#for Gtk+ 3
#cflags_force=-W `pkg-config --cflags libDesktop gtk+-x11-3.0`
#ldflags_force=`pkg-config --libs libDesktop gtk+-x11-3.0` -lintl
cflags_force=-W `pkg-config --cflags libDesktop gtk+-x11-3.0` -fPIC
ldflags_force=`pkg-config --libs libDesktop gtk+-x11-3.0` -lintl
dist=Makefile
[camera]

View File

@ -1,5 +1,5 @@
targets=gallery
cflags_force=`pkg-config --cflags gtk+-2.0`
#cflags_force=`pkg-config --cflags gtk+-2.0`
cflags=-W -Wall -g -O2 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector
ldflags_force=`pkg-config --libs glib-2.0`
ldflags=-pie -Wl,-z,relro -Wl,-z,now
@ -8,10 +8,12 @@ dist=Makefile
#for Gtk+ 3
cflags_force=`pkg-config --cflags gtk+-3.0`
#targets
[gallery]
type=binary
sources=gallery.c
install=$(BINDIR)
#sources
[gallery.c]
depends=../config.h