Rely on libDesktop for portability

This commit is contained in:
Pierre Pronchery 2020-11-19 06:43:20 +01:00
parent bc35ed4345
commit ddd01d42df
2 changed files with 4 additions and 12 deletions

View File

@ -11,12 +11,8 @@ dist=Makefile,hayes/channel.h,hayes/command.h,hayes/common.h,hayes/pdu.h,hayes/q
[debug]
type=plugin
sources=debug.c
#for Gtk+ 2
#cflags=`pkg-config --cflags gtk+-2.0 libSystem`
#ldflags=`pkg-config --libs gtk+-2.0 libSystem`
#for Gtk+ 3
cflags=`pkg-config --cflags gtk+-3.0 libSystem`
ldflags=`pkg-config --libs gtk+-3.0 libSystem`
cflags=`pkg-config --cflags libDesktop`
ldflags=`pkg-config --libs libDesktop`
install=$(LIBDIR)/Phone/modem
[debug.c]

View File

@ -2,14 +2,10 @@ subdirs=16x16,24x24,32x32,48x48,gprs,ussd
targets=blacklist,console,debug,engineering,gprs,gps,n900,openmoko,oss,panel,password,profiles,smscrypt,systray,template,ussd,video
cppflags_force=-I ../../include
cppflags=
cflags_force=`pkg-config --cflags libDesktop` -fPIC
cflags=-W -Wall -g -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags_force=`pkg-config --cflags libDesktop`
ldflags=-Wl,-z,relro -Wl,-z,now
#for Gtk+ 2
#cflags_force=`pkg-config --cflags libSystem gtk+-2.0` -fPIC
#ldflags_force=`pkg-config --cflags libSystem gtk+-2.0`
#for Gtk+ 3
cflags_force=`pkg-config --cflags libSystem gtk+-3.0` -fPIC
ldflags_force=`pkg-config --cflags libSystem gtk+-3.0`
dist=Makefile
[blacklist]