config.mk (840B)
1 # surf version 2 VERSION = 2.0 3 4 # Customize below to fit your system 5 6 # paths 7 PREFIX = /usr/local 8 MANPREFIX = $(PREFIX)/share/man 9 LIBPREFIX = $(PREFIX)/lib 10 LIBDIR = $(LIBPREFIX)/surf 11 12 X11INC = `pkg-config --cflags x11` 13 X11LIB = `pkg-config --libs x11` 14 15 GTKINC = `pkg-config --cflags gtk+-3.0 gcr-3 webkit2gtk-4.0` 16 GTKLIB = `pkg-config --libs gtk+-3.0 gcr-3 webkit2gtk-4.0` 17 WEBEXTINC = `pkg-config --cflags webkit2gtk-4.0 webkit2gtk-web-extension-4.0` 18 WEBEXTLIBS = `pkg-config --libs webkit2gtk-4.0 webkit2gtk-web-extension-4.0` 19 20 # includes and libs 21 INCS = $(X11INC) $(GTKINC) 22 LIBS = $(X11LIB) $(GTKLIB) -lgthread-2.0 23 24 # flags 25 CPPFLAGS = -DVERSION=\"$(VERSION)\" -DWEBEXTDIR=\"$(LIBDIR)\" \ 26 -D_DEFAULT_SOURCE -DGCR_API_SUBJECT_TO_CHANGE 27 SURFCFLAGS = $(INCS) $(CPPFLAGS) -fPIC 28 WEBEXTCFLAGS = -fPIC $(WEBEXTINC) 29 30 # compiler 31 #CC = c99