about summary refs log blame commit diff stats
path: root/Makefile
blob: 5d3391837d2f5c6189a78058813122910ac0e3b9 (plain) (tree)
1
2
3
4
5
6
7
8
9


                    
            
             
 
                                                                              
                                                        
                                                  
                                                                                        
            
             
                      

                 
                  
             
                  

                                        
                      
                        
                                           



                                                 
                         
 
                                                                            
 










                                            
 
              







                                                                            
 
                                                     
 

                          
                                               




                          
                                               






            
 
                      
PREFIX?=/usr/local
BINDIR=${PREFIX}/bin

PROG=xxxterm
MAN=xxxterm.1

SRCS= cookie.c inspector.c marco.c about.c whitelist.c settings.c inputfocus.c
SRCS+= history.c completion.c externaleditor.c xxxterm.c
CFLAGS+= -O2 -Wall -Wno-format-extra-args -Wunused
CFLAGS+= -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-compare
CFLAGS+= -I.
DEBUG= -ggdb3
LDADD= -lutil -lgcrypt
LIBS+= gtk+-2.0
LIBS+= webkit-1.0
LIBS+= libsoup-2.4
LIBS+= gnutls
LIBS+= gthread-2.0
GTK_CFLAGS!= pkg-config --cflags $(LIBS)
GTK_LDFLAGS!= pkg-config --libs $(LIBS)
CFLAGS+= $(GTK_CFLAGS)
LDFLAGS+= $(GTK_LDFLAGS)
BUILDVERSION != sh "${.CURDIR}/buildver.sh"
.if !${BUILDVERSION} == ""
CPPFLAGS+= -DXXXTERM_BUILDSTR=\"$(BUILDVERSION)\"
.endif

MANDIR= ${PREFIX}/man/man

CLEANFILES += ${.CURDIR}/javascript.h javascript.h xxxterm.cat1 xxxterm.core

JSFILES += hinting.js
JSFILES += input-focus.js
JSFILES += autoscroll.js

.for _js in ${JSFILES}
JSCURDIR += ${.CURDIR}/${_js}
.endfor

javascript.h: ${JSFILES} js-merge-helper.pl
	perl ${.CURDIR}/js-merge-helper.pl \
		${JSCURDIR} > javascript.h

beforeinstall:
	install -m 755 -d ${PREFIX}/share/xxxterm
	install -m 644 ${.CURDIR}/xxxtermicon.png ${PREFIX}/share/xxxterm
	install -m 644 ${.CURDIR}/xxxtermicon16.png ${PREFIX}/share/xxxterm
	install -m 644 ${.CURDIR}/xxxtermicon32.png ${PREFIX}/share/xxxterm
	install -m 644 ${.CURDIR}/xxxtermicon48.png ${PREFIX}/share/xxxterm
	install -m 644 ${.CURDIR}/xxxtermicon64.png ${PREFIX}/share/xxxterm
	install -m 644 ${.CURDIR}/xxxtermicon128.png ${PREFIX}/share/xxxterm
	install -m 644 ${.CURDIR}/style.css ${PREFIX}/share/xxxterm

${PROG} ${OBJS} beforedepend: ${.CURDIR}/javascript.h

# clang targets
.if ${.TARGETS:M*analyze*}
CFLAGS+= -Wdeclaration-after-statement -Wshadow
CC=clang
CXX=clang++
CPP=clang -E
CFLAGS+=--analyze
.elif ${.TARGETS:M*clang*}
CFLAGS+= -Wdeclaration-after-statement -Wshadow
CC=clang
CXX=clang++
CPP=clang -E
.endif

analyze: all
clang: all

.include <bsd.prog.mk>