oops, use right list when going backwards should fix fs #247
[xombrero.git] / Makefile
blobad450c8821023c30026fe12d5e4914e7895e343b
1 PREFIX?=/usr/local
2 BINDIR=${PREFIX}/bin
4 PROG=xxxterm
5 MAN=xxxterm.1
7 DEBUG= -ggdb3
9 SRCS= cookie.c inspector.c marco.c about.c whitelist.c settings.c inputfocus.c
10 SRCS+= history.c completion.c tldlist.c externaleditor.c unix.c xxxterm.c
11 CFLAGS+= -O2 -Wall -Wno-format-extra-args -Wunused
12 CFLAGS+= -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-compare ${DEBUG}
13 CFLAGS+= -I. -I${.CURDIR}
14 LDADD= -lutil -lgcrypt
15 LIBS+= gtk+-2.0
16 LIBS+= webkit-1.0
17 LIBS+= libsoup-2.4
18 LIBS+= gnutls
19 LIBS+= gthread-2.0
20 GTK_CFLAGS!= pkg-config --cflags $(LIBS)
21 GTK_LDFLAGS!= pkg-config --libs $(LIBS)
22 CFLAGS+= $(GTK_CFLAGS)
23 LDFLAGS+= $(GTK_LDFLAGS)
24 BUILDVERSION != sh "${.CURDIR}/buildver.sh"
25 .if !${BUILDVERSION} == ""
26 CPPFLAGS+= -DXXXTERM_BUILDSTR=\"$(BUILDVERSION)\"
27 .endif
29 MANDIR= ${PREFIX}/man/man
31 CLEANFILES += ${.CURDIR}/javascript.h javascript.h xxxterm.cat1 xxxterm.core
33 JSFILES += hinting.js
34 JSFILES += input-focus.js
35 JSFILES += autoscroll.js
37 .for _js in ${JSFILES}
38 JSCURDIR += ${.CURDIR}/${_js}
39 .endfor
41 javascript.h: ${JSFILES} js-merge-helper.pl
42 perl ${.CURDIR}/js-merge-helper.pl \
43 ${JSCURDIR} > javascript.h
45 beforeinstall:
46 install -m 755 -d ${PREFIX}/share/xxxterm
47 install -m 644 ${.CURDIR}/xxxtermicon.png ${PREFIX}/share/xxxterm
48 install -m 644 ${.CURDIR}/xxxtermicon16.png ${PREFIX}/share/xxxterm
49 install -m 644 ${.CURDIR}/xxxtermicon32.png ${PREFIX}/share/xxxterm
50 install -m 644 ${.CURDIR}/xxxtermicon48.png ${PREFIX}/share/xxxterm
51 install -m 644 ${.CURDIR}/xxxtermicon64.png ${PREFIX}/share/xxxterm
52 install -m 644 ${.CURDIR}/xxxtermicon128.png ${PREFIX}/share/xxxterm
53 install -m 644 ${.CURDIR}/tld-rules ${PREFIX}/share/xxxterm
54 install -m 644 ${.CURDIR}/style.css ${PREFIX}/share/xxxterm
56 ${PROG} ${OBJS} beforedepend: javascript.h
58 # clang targets
59 .if ${.TARGETS:M*analyze*}
60 CFLAGS+= -Wdeclaration-after-statement -Wshadow
61 CC=clang
62 CXX=clang++
63 CPP=clang -E
64 CFLAGS+=--analyze
65 .elif ${.TARGETS:M*clang*}
66 CFLAGS+= -Wdeclaration-after-statement -Wshadow
67 CC=clang
68 CXX=clang++
69 CPP=clang -E
70 .endif
72 analyze: all
73 clang: all
75 .include <bsd.prog.mk>