enable web inspector
[xombrero.git] / Makefile
blobff493935d999ba2890847aa7cb4e0a466174505f
1 PREFIX?=/usr/local
2 BINDIR=${PREFIX}/bin
4 PROG=xxxterm
5 MAN=xxxterm.1
7 SRCS= xxxterm.c marco.c
8 CFLAGS+= -O2
9 DEBUG= -ggdb3
10 LDADD= -lutil -lgcrypt
11 LIBS+= gtk+-2.0
12 LIBS+= webkit-1.0
13 LIBS+= libsoup-2.4
14 LIBS+= gnutls
15 LIBS+= gthread-2.0
16 GTK_CFLAGS!= pkg-config --cflags $(LIBS)
17 GTK_LDFLAGS!= pkg-config --libs $(LIBS)
18 CFLAGS+= $(GTK_CFLAGS) -Wall
19 LDFLAGS+= $(GTK_LDFLAGS)
20 BUILDVERSION != sh "${.CURDIR}/buildver.sh"
21 .if !${BUILDVERSION} == ""
22 CPPFLAGS+= -DXXXTERM_BUILDSTR=\"$(BUILDVERSION)\"
23 .endif
25 MANDIR= ${PREFIX}/man/man
27 CLEANFILES += ${.CURDIR}/javascript.h xxxterm.cat1 xxxterm.core
29 ${.CURDIR}/javascript.h: hinting.js input-focus.js
30 perl ${.CURDIR}/js-merge-helper.pl ${.CURDIR}/hinting.js \
31 ${.CURDIR}/input-focus.js > ${.CURDIR}/javascript.h
33 beforeinstall:
34 mkdir -p ${PREFIX}/share/xxxterm
35 cp ${.CURDIR}/xxxtermicon16.png ${PREFIX}/share/xxxterm
36 cp ${.CURDIR}/xxxtermicon32.png ${PREFIX}/share/xxxterm
37 cp ${.CURDIR}/xxxtermicon48.png ${PREFIX}/share/xxxterm
38 cp ${.CURDIR}/xxxtermicon64.png ${PREFIX}/share/xxxterm
39 cp ${.CURDIR}/xxxtermicon128.png ${PREFIX}/share/xxxterm
40 cp ${.CURDIR}/style.css ${PREFIX}/share/xxxterm
42 ${PROG} ${OBJS} beforedepend: ${.CURDIR}/javascript.h
44 # clang targets
45 .if ${.TARGETS:M*analyze*}
46 CC=clang
47 CXX=clang++
48 CPP=clang -E
49 CFLAGS+=--analyze
50 .elif ${.TARGETS:M*clang*}
51 CC=clang
52 CXX=clang++
53 CPP=clang -E
54 .endif
56 analyze: all
57 clang: all
59 .include <bsd.prog.mk>