use pkgconfig

This commit is contained in:
Chris Young 2012-10-13 15:25:15 +01:00
parent 8d6c2a2a4d
commit 266b37fc37
1 changed files with 4 additions and 2 deletions

View File

@ -65,8 +65,10 @@ else
endif
ifeq ($(NETSURF_AMIGA_USE_CAIRO),YES)
CFLAGS += -DNS_AMIGA_CAIRO -I /SDK/local/common/include/cairo
LDFLAGS += -use-dynld -ldl -lcairo -lpixman-1 -lfreetype -lfontconfig -lpng -lexpat
CFLAGS += -DNS_AMIGA_CAIRO
CFLAGS += $(shell $(PKG_CONFIG) --cflags cairo)
LDFLAGS += -use-dynld
LDFLAGS += $(shell $(PKG_CONFIG) --libs cairo)
EXETARGET := NetSurf
else
EXETARGET := NetSurf-Static