document runtime_settings
[xxxterm.git] / linux / Makefile
blob7570c4448a5b251e0b7461ec6948d551f3545b01
1 # $xxxterm$
3 LIBS= gtk+-2.0 webkit-1.0 libsoup-2.4
5 CFLAGS+= -Wall -ggdb -D_GNU_SOURCE -I. $(shell pkg-config --cflags $(LIBS))
6 LDADD+= $(shell pkg-config --libs $(LIBS)) -lbsd
8 PREFIX?= /usr/local
9 BINDIR?= $(PREFIX)/bin
10 LIBDIR?= $(PREFIX)/lib
11 MANDIR?= $(PREFIX)/share/man
13 CC?= gcc
15 all: javascript.h xxxterm
17 javascript.h: ../js-merge-helper.pl ../hinting.js
18 perl ../js-merge-helper.pl ../hinting.js \
19 ../input-focus.js > javascript.h
21 xxxterm.o: javascript.h
23 xxxterm: ../xxxterm.o linux.o
24 $(CC) $(LDFLAGS) -o $@ $+ $(LDADD)
26 install: all
27 install -m 755 -d $(DESTDIR)$(BINDIR)
28 install -m 755 -d $(DESTDIR)$(LIBDIR)
29 install -m 755 -d $(DESTDIR)$(MANDIR)/man1
30 install -m 755 xxxterm $(DESTDIR)$(BINDIR)
31 install -m 644 ../xxxterm.1 $(DESTDIR)$(MANDIR)/man1/xxxterm.1
33 clean:
34 rm -f xxxterm *.o
35 rm -f javascript.h
37 .PHONY: all install clean