aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e3f136d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,28 @@
+NAME = webb
+SRC = webb.c
+CONFIG = config.h
+PREFIX ?= /usr/local
+BINDIR ?= $(PREFIX)/bin
+
+CC = gcc
+PKGCONF = pkgconf
+CFLAGS = `$(PKGCONF) --cflags gtk+-3.0 webkit2gtk-4.0`
+LIBS = `$(PKGCONF) --libs gtk+-3.0 webkit2gtk-4.0` -lX11
+
+all: $(NAME)
+
+$(NAME): $(SRC) $(CONFIG)
+ $(CC) -o $(NAME) $(SRC) $(CFLAGS) $(LIBS)
+
+install: $(NAME)
+ mkdir -p $(BINDIR)
+ cp -f $(NAME) $(BINDIR)/
+ chmod 755 $(BINDIR)/$(NAME)
+
+uninstall:
+ rm -f $(BINDIR)/$(NAME)
+
+clean:
+ rm -f $(NAME)
+
+.PHONY: all install uninstall clean