about summary refs log tree commit diff stats
path: root/linux/Makefile
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2010-02-24 20:19:04 +0000
committerMarco Peereboom <marco@conformal.com>2010-02-24 20:19:04 +0000
commit904958cbd11014203a1a1e67a637d4c359d527cc (patch)
tree4c432151d64ada6ed2205ca53a64ef2e79f6017a /linux/Makefile
parent4f4ab6b5a37dcc6eab0ababcdc0258c55d3bf9b6 (diff)
downloadxombrero-904958cbd11014203a1a1e67a637d4c359d527cc.tar.gz
add linux support
thanks nicm
Diffstat (limited to 'linux/Makefile')
-rw-r--r--linux/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/linux/Makefile b/linux/Makefile
new file mode 100644
index 0000000..78fe025
--- /dev/null
+++ b/linux/Makefile
@@ -0,0 +1,30 @@
+# $xxxterm$ 
+
+LIBS= gtk+-2.0 webkit-1.0 libsoup-2.4
+
+CFLAGS+= -Wall -ggdb -D_GNU_SOURCE -I. $(shell pkg-config --cflags $(LIBS))
+LDADD+= $(shell pkg-config --libs $(LIBS))
+
+PREFIX?= /usr/local
+BINDIR?= $(PREFIX)/bin
+LIBDIR?= $(PREFIX)/lib
+MANDIR?= $(PREFIX)/share/man
+
+CC?= gcc
+
+all: xxxterm
+
+xxxterm: ../xxxterm.o linux.o
+	$(CC) $(LDFLAGS) -o $@ $+ $(LDADD)
+
+install: all
+	install -m 755 -d $(DESTDIR)$(BINDIR)
+	install -m 755 -d $(DESTDIR)$(LIBDIR)
+	install -m 755 -d $(DESTDIR)$(MANDIR)/man1
+	install -m 755 xxxterm $(DESTDIR)$(BINDIR)
+	install -m 644 ../xxxterm.1 $(DESTDIR)$(MANDIR)/man1/xxxterm.1
+
+clean:
+	rm -f xxxterm *.o
+
+.PHONY: all install clean