3 CFLAGS
+=-DXT_DS_RESOURCE_DIR
=\"$(PREFIX
)/share
/xombrero
/\"
10 SRCS
= cookie.c inspector.c marco.c about.c whitelist.c settings.c inputfocus.c
11 SRCS
+= history.c completion.c tldlist.c externaleditor.c unix.c xombrero.c
15 CFLAGS
+= -O2
-Wall
-Wno-format-extra-args
-Wunused
-Wextra
-Wno-unused-parameter
16 CFLAGS
+= -Wno-missing-field-initializers
-Wno-sign-compare
17 CFLAGS
+= -Wno-deprecated-declarations
-Wfloat-equal
${DEBUG}
18 CFLAGS
+= -DGTK_DISABLE_SINGLE_INCLUDES
-DGDK_DISABLE_DEPRECATED
-DGTK_DISABLE_DEPRECATED
-DGSEAL_ENABLE
19 CFLAGS
+= -DGDK_DISABLE_DEPRECATION_WARNINGS
-DGLIB_DISABLE_DEPRECATION_WARNINGS
23 .if
${GTK_VERSION} == "gtk2"
32 GTK_CFLAGS
!= pkg-config
--cflags $(LIBS
)
33 GTK_LDFLAGS
!= pkg-config
--libs
$(LIBS
)
34 CFLAGS
+= $(GTK_CFLAGS
)
35 LDFLAGS
+= $(GTK_LDFLAGS
)
36 BUILDVERSION
!= sh
"${.CURDIR}/../buildver.sh"
37 .if
!${BUILDVERSION} == ""
38 CPPFLAGS
+= -DXOMBRERO_BUILDSTR
=\"$(BUILDVERSION
)\"
41 MANDIR
= ${PREFIX}/man
/
43 CLEANFILES
+= ${.CURDIR
}/javascript.h javascript.h tooltip.h xombrero.cat1 xombrero.core xombrero.html1
45 JSFILES
+= ..
/hinting.js
46 JSFILES
+= ..
/input-focus.js
47 JSFILES
+= ..
/autoscroll.js
49 .for _js in
${JSFILES}
50 JSCURDIR
+= ${.CURDIR
}/${_js}
53 .NOPATH
: javascript.h tooltip.h
54 javascript.h
: ${JSFILES} ..
/js-merge-helper.pl
55 perl
${.CURDIR
}/..
/js-merge-helper.pl \
56 ${JSCURDIR} > javascript.h
58 tooltip.h
: ${MAN} ..
/ascii2txt.pl ..
/txt2tooltip.pl
59 mandoc
-Tascii
${.CURDIR
}/..
/${MAN} | \
60 perl
${.CURDIR
}/..
/ascii2txt.pl | \
61 perl
${.CURDIR
}/..
/txt2tooltip.pl
> tooltip.h
64 install -m
755 -d
${PREFIX}/bin
65 install -m
755 -d
${MANDIR}/man1
/
66 install -m
755 -d
${MANDIR}/html1
/
67 install -m
755 -d
${PREFIX}/share
/xombrero
68 install -m
755 -d
${PREFIX}/share
/applications
69 install -m
644 ${.CURDIR
}/..
/xombrero.css
${PREFIX}/share
/xombrero
70 install -m
644 ${.CURDIR
}/..
/xombrero.desktop
${PREFIX}/share
/applications
71 install -m
644 ${.CURDIR
}/..
/xombreroicon16.png
${PREFIX}/share
/xombrero
72 install -m
644 ${.CURDIR
}/..
/xombreroicon32.png
${PREFIX}/share
/xombrero
73 install -m
644 ${.CURDIR
}/..
/xombreroicon48.png
${PREFIX}/share
/xombrero
74 install -m
644 ${.CURDIR
}/..
/xombreroicon64.png
${PREFIX}/share
/xombrero
75 install -m
644 ${.CURDIR
}/..
/xombreroicon128.png
${PREFIX}/share
/xombrero
76 install -m
644 ${.CURDIR
}/..
/xombreroicon256.png
${PREFIX}/share
/xombrero
77 install -m
644 ${.CURDIR
}/..
/favicon.ico
${PREFIX}/share
/xombrero
78 install -m
644 ${.CURDIR
}/..
/tld-rules
${PREFIX}/share
/xombrero
79 install -m
644 ${.CURDIR
}/..
/style.css
${PREFIX}/share
/xombrero
80 install -m
644 ${.CURDIR
}/..
/hsts-preload
${PREFIX}/share
/xombrero
81 install -m
644 ${.CURDIR
}/..
/user-agent-headers
${PREFIX}/share
/xombrero
82 install -m
644 ${.CURDIR
}/..
/http-accept-headers
${PREFIX}/share
/xombrero
83 install -m
644 ${.CURDIR
}/..
/torenabled.ico
${PREFIX}/share
/xombrero
84 install -m
644 ${.CURDIR
}/..
/tordisabled.ico
${PREFIX}/share
/xombrero
86 ${PROG} ${OBJS} beforedepend
: javascript.h tooltip.h
88 .
include <bsd.prog.mk
>