fix proxy booboo i made
[xxxterm.git] / linux / Makefile
blob7fdc88a5a2c254e92c2e2c22fa1a7164300e4bfa
1 # $xxxterm$
3 LIBS= gtk+-2.0 webkit-1.0 libsoup-2.4 gnutls
5 CFLAGS+= -Wall -ggdb -D_GNU_SOURCE -I. $(shell pkg-config --cflags $(LIBS))
6 LDADD+= $(shell pkg-config --libs $(LIBS)) -lbsd -ldl
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 ../input-focus.js > \
19 javascript.h
21 xxxterm.o: javascript.h
23 xxxterm: ../marco.o ../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 ../*.o
35 rm -f javascript.h
37 .PHONY: all install clean