add a hybrid input mode
[xombrero.git] / Makefile
blobcda17c276cef8d7c881aeadea5474aefaa2ccd14
1 PREFIX?=/usr/local
2 BINDIR=${PREFIX}/bin
4 PROG=xxxterm
5 MAN=xxxterm.1
7 SRCS= cookie.c inspector.c marco.c about.c whitelist.c settings.c inputfocus.c
8 SRCS+= xxxterm.c
9 CFLAGS+= -O2 -Wall -Wno-format-extra-args -Wunused
10 CFLAGS+= -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-compare
11 DEBUG= -ggdb3
12 LDADD= -lutil -lgcrypt
13 LIBS+= gtk+-2.0
14 LIBS+= webkit-1.0
15 LIBS+= libsoup-2.4
16 LIBS+= gnutls
17 LIBS+= gthread-2.0
18 GTK_CFLAGS!= pkg-config --cflags $(LIBS)
19 GTK_LDFLAGS!= pkg-config --libs $(LIBS)
20 CFLAGS+= $(GTK_CFLAGS)
21 LDFLAGS+= $(GTK_LDFLAGS)
22 BUILDVERSION != sh "${.CURDIR}/buildver.sh"
23 .if !${BUILDVERSION} == ""
24 CPPFLAGS+= -DXXXTERM_BUILDSTR=\"$(BUILDVERSION)\"
25 .endif
27 MANDIR= ${PREFIX}/man/man
29 CLEANFILES += ${.CURDIR}/javascript.h xxxterm.cat1 xxxterm.core
31 ${.CURDIR}/javascript.h: hinting.js input-focus.js
32 perl ${.CURDIR}/js-merge-helper.pl ${.CURDIR}/hinting.js \
33 ${.CURDIR}/input-focus.js > ${.CURDIR}/javascript.h
35 beforeinstall:
36 install -m 755 -d ${PREFIX}/share/xxxterm
37 install -m 644 ${.CURDIR}/xxxtermicon.png ${PREFIX}/share/xxxterm
38 install -m 644 ${.CURDIR}/xxxtermicon16.png ${PREFIX}/share/xxxterm
39 install -m 644 ${.CURDIR}/xxxtermicon32.png ${PREFIX}/share/xxxterm
40 install -m 644 ${.CURDIR}/xxxtermicon48.png ${PREFIX}/share/xxxterm
41 install -m 644 ${.CURDIR}/xxxtermicon64.png ${PREFIX}/share/xxxterm
42 install -m 644 ${.CURDIR}/xxxtermicon128.png ${PREFIX}/share/xxxterm
43 install -m 644 ${.CURDIR}/style.css ${PREFIX}/share/xxxterm
45 ${PROG} ${OBJS} beforedepend: ${.CURDIR}/javascript.h
47 # clang targets
48 .if ${.TARGETS:M*analyze*}
49 CFLAGS+= -Wdeclaration-after-statement -Wshadow
50 CC=clang
51 CXX=clang++
52 CPP=clang -E
53 CFLAGS+=--analyze
54 .elif ${.TARGETS:M*clang*}
55 CFLAGS+= -Wdeclaration-after-statement -Wshadow
56 CC=clang
57 CXX=clang++
58 CPP=clang -E
59 .endif
61 analyze: all
62 clang: all
64 .include <bsd.prog.mk>