Be much louder when connecting and DONT return success when something
[xxxterm.git] / freebsd / Makefile
blobf205c5c09e53c85f5db851c0c66804008f451eb4
1 # $xxxterm$
3 LIBS= gtk+-2.0 webkit-1.0 libsoup-2.4
5 LDADD= -lutil
6 GTK_CFLAGS!= pkg-config --cflags $(LIBS)
7 GTK_LDFLAGS!= pkg-config --libs $(LIBS)
8 CFLAGS+= $(GTK_CFLAGS) -Wall -pthread
9 LDFLAGS+= $(GTK_LDFLAGS) -pthread
11 PREFIX?= /usr/local
12 BINDIR?= $(PREFIX)/bin
13 LIBDIR?= $(PREFIX)/lib
14 MANDIR?= $(PREFIX)/man
16 CC?= cc
18 all: ../javascript.h xxxterm
20 ../javascript.h: ../js-merge-helper.pl ../hinting.js
21 perl ../js-merge-helper.pl ../hinting.js ../input-focus.js > \
22 ../javascript.h
24 xxxterm.o: ../xxxterm.o
26 marco.o: ../marco.o
28 ../xxxterm.o: ../javascript.h
30 xxxterm: xxxterm.o freebsd.o marco.o
31 $(CC) $(LDFLAGS) -o $@ *.o $+ $(LDADD)
33 install: all
34 install -m 755 -d $(DESTDIR)$(BINDIR)
35 install -m 755 -d $(DESTDIR)$(LIBDIR)
36 install -m 755 -d $(DESTDIR)$(MANDIR)/man1
37 install -m 755 xxxterm $(DESTDIR)$(BINDIR)
38 install -m 644 ../xxxterm.1 $(DESTDIR)$(MANDIR)/man1/xxxterm.1
40 clean:
41 rm -f xxxterm *.o
42 rm -f javascript.h
44 .PHONY: all install clean