Complete the flags for building with Gtk+ 3
This commit is contained in:
parent
77c0833c08
commit
8d49ceca6b
|
@ -1,7 +1,7 @@
|
||||||
targets=camera
|
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
|
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
|
ldflags=-pie -Wl,-z,relro -Wl,-z,now
|
||||||
dist=Makefile,camera.h,overlay.h,window.h
|
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`
|
cflags_force=`pkg-config --cflags libDesktop gtk+-x11-3.0`
|
||||||
ldflags_force=`pkg-config --libs libDesktop gtk+-x11-3.0` -lintl
|
ldflags_force=`pkg-config --libs libDesktop gtk+-x11-3.0` -lintl
|
||||||
|
|
||||||
|
#targets
|
||||||
[camera]
|
[camera]
|
||||||
type=binary
|
type=binary
|
||||||
sources=camera.c,overlay.c,window.c,main.c
|
sources=camera.c,overlay.c,window.c,main.c
|
||||||
install=$(BINDIR)
|
install=$(BINDIR)
|
||||||
|
|
||||||
|
#sources
|
||||||
[camera.c]
|
[camera.c]
|
||||||
depends=overlay.h,camera.h,../config.h
|
depends=overlay.h,camera.h,../config.h
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
targets=camera
|
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
|
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
|
ldflags=-Wl,-z,relro -Wl,-z,now
|
||||||
#for Gtk+ 3
|
#for Gtk+ 3
|
||||||
#cflags_force=-W `pkg-config --cflags libDesktop gtk+-x11-3.0`
|
cflags_force=-W `pkg-config --cflags libDesktop gtk+-x11-3.0` -fPIC
|
||||||
#ldflags_force=`pkg-config --libs libDesktop gtk+-x11-3.0` -lintl
|
ldflags_force=`pkg-config --libs libDesktop gtk+-x11-3.0` -lintl
|
||||||
dist=Makefile
|
dist=Makefile
|
||||||
|
|
||||||
[camera]
|
[camera]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
targets=gallery
|
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
|
cflags=-W -Wall -g -O2 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector
|
||||||
ldflags_force=`pkg-config --libs glib-2.0`
|
ldflags_force=`pkg-config --libs glib-2.0`
|
||||||
ldflags=-pie -Wl,-z,relro -Wl,-z,now
|
ldflags=-pie -Wl,-z,relro -Wl,-z,now
|
||||||
|
@ -8,10 +8,12 @@ dist=Makefile
|
||||||
#for Gtk+ 3
|
#for Gtk+ 3
|
||||||
cflags_force=`pkg-config --cflags gtk+-3.0`
|
cflags_force=`pkg-config --cflags gtk+-3.0`
|
||||||
|
|
||||||
|
#targets
|
||||||
[gallery]
|
[gallery]
|
||||||
type=binary
|
type=binary
|
||||||
sources=gallery.c
|
sources=gallery.c
|
||||||
install=$(BINDIR)
|
install=$(BINDIR)
|
||||||
|
|
||||||
|
#sources
|
||||||
[gallery.c]
|
[gallery.c]
|
||||||
depends=../config.h
|
depends=../config.h
|
||||||
|
|
Loading…
Reference in New Issue
Block a user