surf

My custom build of surf web browser.
git clone https://git.mtkn.jp/surf
Log | Files | Refs | README | LICENSE

config.mk (931B)


      1 # surf version
      2 VERSION = 2.1
      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 CONFDST = $(XDG_CONFIG_HOME)/surf
     12 
     13 X11INC = `pkg-config --cflags x11`
     14 X11LIB = `pkg-config --libs x11`
     15 
     16 GTKINC = `pkg-config --cflags gtk+-3.0 gcr-3 webkit2gtk-4.0`
     17 GTKLIB = `pkg-config --libs gtk+-3.0 gcr-3 webkit2gtk-4.0`
     18 WEBEXTINC = `pkg-config --cflags webkit2gtk-4.0 webkit2gtk-web-extension-4.0 gio-2.0`
     19 WEBEXTLIBS = `pkg-config --libs webkit2gtk-4.0 webkit2gtk-web-extension-4.0 gio-2.0`
     20 
     21 # includes and libs
     22 INCS = $(X11INC) $(GTKINC)
     23 LIBS = $(X11LIB) $(GTKLIB) -lgthread-2.0
     24 
     25 # flags
     26 CPPFLAGS = -DVERSION=\"$(VERSION)\" -DGCR_API_SUBJECT_TO_CHANGE \
     27            -DLIBPREFIX=\"$(LIBPREFIX)\" -DWEBEXTDIR=\"$(LIBDIR)\" \
     28            -D_DEFAULT_SOURCE
     29 SURFCFLAGS = -fPIC $(INCS) $(CPPFLAGS)
     30 WEBEXTCFLAGS = -fPIC $(WEBEXTINC)
     31 
     32 # compiler
     33 CC = tcc