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
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
)\"
29 MANDIR
= ${PREFIX}/man
/man
31 CLEANFILES
+= ${.CURDIR
}/javascript.h javascript.h xxxterm.cat1 xxxterm.core
34 JSFILES
+= input-focus.js
35 JSFILES
+= autoscroll.js
37 .for _js in
${JSFILES}
38 JSCURDIR
+= ${.CURDIR
}/${_js}
41 javascript.h
: ${JSFILES} js-merge-helper.pl
42 perl
${.CURDIR
}/js-merge-helper.pl \
43 ${JSCURDIR} > javascript.h
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
59 .if
${.TARGETS
:M
*analyze
*}
60 CFLAGS
+= -Wdeclaration-after-statement
-Wshadow
65 .elif
${.TARGETS
:M
*clang
*}
66 CFLAGS
+= -Wdeclaration-after-statement
-Wshadow
75 .
include <bsd.prog.mk
>