xenocara/app/xterm/Makefile.in

347 lines
12 KiB
Makefile
Raw Normal View History

## $XTermId: Makefile.in,v 1.155 2008/01/05 14:26:52 tom Exp $
2006-11-26 04:11:12 -07:00
##
2007-06-15 13:34:50 -06:00
## Copyright 2002-2006,2007 by Thomas E. Dickey
2006-11-26 04:11:12 -07:00
##
## All Rights Reserved
##
## Permission to use, copy, modify, and distribute this software and its
## documentation for any purpose and without fee is hereby granted,
## provided that the above copyright notice appear in all copies and that
## both that copyright notice and this permission notice appear in
## supporting documentation, and that the name of the above listed
## copyright holder(s) not be used in advertising or publicity pertaining
## to distribution of the software without specific, written prior
## permission.
##
## THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD
## TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
## AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
## LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
## WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
## ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
## OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
SHELL = /bin/sh
#### Start of system configuration section. ####
srcdir = @srcdir@
VPATH = @srcdir@
x = @EXEEXT@
o = .@OBJEXT@
CC = @CC@
CPP = @CPP@
AWK = @AWK@
LINK = $(CC) $(CFLAGS)
LN_S = @LN_S@
RM = rm -f
LINT = @LINT@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_DATA = @INSTALL_DATA@
transform = @program_transform_name@
EXTRA_CFLAGS = @EXTRA_CFLAGS@
EXTRA_CPPFLAGS = @EXTRA_CPPFLAGS@
EXTRA_LOADFLAGS = @IMAKE_LOADFLAGS@
CPPFLAGS = -I. -I$(srcdir) -DHAVE_CONFIG_H @CPPFLAGS@ $(EXTRA_CPPFLAGS)
CFLAGS = @CFLAGS@ $(EXTRA_CFLAGS)
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
prefix = @prefix@
exec_prefix = @exec_prefix@
manext = 1
bindir = @bindir@
libdir = @libdir@
mandir = @mandir@/man$(manext)
appsdir = @appsdir@
icondir = @icondir@
2006-11-26 04:11:12 -07:00
#### End of system configuration section. ####
DESTDIR ?=
2006-11-26 04:11:12 -07:00
BINDIR = $(DESTDIR)$(bindir)
LIBDIR = $(DESTDIR)$(libdir)
MANDIR = $(DESTDIR)$(mandir)
APPSDIR = $(DESTDIR)$(appsdir)
ICONDIR = $(DESTDIR)$(icondir)
2006-11-26 04:11:12 -07:00
INSTALL_DIRS = $(BINDIR) $(APPSDIR) $(ICONDIR) $(MANDIR)
2006-11-26 04:11:12 -07:00
CLASS = XTerm
EXTRAHDR = @EXTRAHDRS@
EXTRASRC = @EXTRASRCS@
EXTRAOBJ = @EXTRAOBJS@
2007-06-15 13:34:50 -06:00
SRCS1 = button.c cachedGCs.c charproc.c charsets.c cursor.c \
2006-11-26 04:11:12 -07:00
data.c doublechr.c fontutils.c input.c \
$(MAINSRC) menu.c misc.c print.c ptydata.c \
2007-06-15 13:34:50 -06:00
screen.c scrollbar.c tabs.c util.c xstrings.c xtermcap.c \
2006-11-26 04:11:12 -07:00
VTPrsTbl.c $(EXTRASRC)
2007-06-15 13:34:50 -06:00
OBJS1 = button$o cachedGCs$o charproc$o charsets$o cursor$o \
2006-11-26 04:11:12 -07:00
data$o doublechr$o fontutils$o input$o \
main$o menu$o misc$o print$o ptydata$o \
2007-06-15 13:34:50 -06:00
screen$o scrollbar$o tabs$o util$o xstrings$o xtermcap$o \
2006-11-26 04:11:12 -07:00
VTPrsTbl$o $(EXTRAOBJ)
SRCS2 = resize.c xstrings.c
OBJS2 = resize$o xstrings$o
SRCS = $(SRCS1) $(SRCS2)
OBJS = $(OBJS1) $(OBJS2)
HDRS = VTparse.h data.h error.h main.h menu.h proto.h \
2007-06-15 13:34:50 -06:00
ptyx.h version.h xstrings.h xterm.h xtermcap.h $(EXTRAHDR)
2006-11-26 04:11:12 -07:00
PROGRAMS = xterm$x resize$x
all : $(PROGRAMS)
2007-06-15 13:34:50 -06:00
################################################################################
.SUFFIXES : .i .def .hin .html .$(manext) .ms .man .ps .pdf .txt
2006-11-26 04:11:12 -07:00
.c$o :
@RULE_CC@
@ECHO_CC@$(CC) $(CPPFLAGS) $(CFLAGS) -c $(srcdir)/$*.c
.c.i :
@RULE_CC@
@ECHO_CC@$(CPP) -C $(CPPFLAGS) $*.c >$@
.def.hin :
grep '^CASE_' $< | $(AWK) '{printf "#define %s %d\n", $$1, n++}' >$@
2007-06-15 13:34:50 -06:00
.man.$(manext) :
$(SHELL) $(srcdir)/minstall.sh "$(INSTALL_DATA)" $(srcdir)/xterm.man $@ $(appsdir)
.$(manext).html :
GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.$(manext) | groff -Thtml -man" >$@
.$(manext).ps :
$(SHELL) -c "tbl $*.$(manext) | groff -man" >$@
.$(manext).txt :
GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.$(manext) | nroff -Tascii -man | col -bx" >$@
.ms.html :
GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.ms | groff -Thtml -ms" >$@
.ms.ps :
$(SHELL) -c "tbl $*.ms | groff -ms" >$@
.ms.txt :
GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.ms | nroff -Tascii -ms | col -bx" >$@
.ps.pdf :
ps2pdf $*.ps
################################################################################
2006-11-26 04:11:12 -07:00
main$o : main.h
misc$o : version.h
$(OBJS1) : xterm.h ptyx.h xtermcfg.h
main$o resize$o screen$o : xterm_io.h
xterm$x : $(OBJS1)
2007-06-15 13:34:50 -06:00
@ECHO_LD@$(LINK) $(LDFLAGS) -o $@ $(OBJS1) $(LIBS) $(EXTRA_LOADFLAGS)
2006-11-26 04:11:12 -07:00
resize$x : $(OBJS2)
2007-06-15 13:34:50 -06:00
@ECHO_LD@$(SHELL) $(srcdir)/plink.sh $(LINK) $(LDFLAGS) -o $@ $(OBJS2) $(LIBS)
2006-11-26 04:11:12 -07:00
256colres.h :
-rm -f $@
perl $(srcdir)/256colres.pl > $@
88colres.h :
-rm -f $@
perl $(srcdir)/88colres.pl > $@
charproc$o : main.h @CHARPROC_DEPS@
2007-06-15 13:34:50 -06:00
################################################################################
actual_xterm = `echo xterm| sed '$(transform)'`
actual_resize = `echo resize| sed '$(transform)'`
actual_uxterm = `echo uxterm| sed '$(transform)'`
actual_k8term = `echo koi8rxterm| sed '$(transform)'`
2006-11-26 04:11:12 -07:00
binary_xterm = $(actual_xterm)$x
binary_resize = $(actual_resize)$x
binary_uxterm = $(actual_uxterm)
binary_k8term = $(actual_k8term)
2006-11-26 04:11:12 -07:00
install \
install-bin \
install-full :: xterm$x resize$x $(BINDIR)
@MAY_SETUID@ $(SHELL) $(srcdir)/sinstall.sh @SINSTALL_OPTS@ "$(INSTALL_PROGRAM)" xterm$x @XTERM_PATH@ $(BINDIR)/$(binary_xterm)
@NOT_SETUID@ $(INSTALL_PROGRAM) xterm$x $(BINDIR)/$(binary_xterm)
$(INSTALL_PROGRAM) -m 755 resize$x $(BINDIR)/$(binary_resize)
@$(SHELL) -c 'echo "... installing $(BINDIR)/$(binary_uxterm)"; \
if test "$(binary_xterm)" != "xterm"; then \
name="$(binary_xterm)"; \
sed -e "s,=xterm,=$$name," $(srcdir)/uxterm >uxterm.tmp; \
$(INSTALL_SCRIPT) -m 755 uxterm.tmp $(BINDIR)/$(binary_uxterm); \
rm -f uxterm.tmp; \
else \
$(INSTALL_SCRIPT) -m 755 $(srcdir)/uxterm $(BINDIR)/$(binary_uxterm); \
fi'
@$(SHELL) -c 'echo "... installing $(BINDIR)/$(binary_k8term)"; \
if test "$(binary_xterm)" != "xterm"; then \
name="$(binary_xterm)"; \
sed -e "s,=xterm,=$$name," $(srcdir)/koi8rxterm >k8term.tmp; \
$(INSTALL_SCRIPT) -m 755 k8term.tmp $(BINDIR)/$(binary_k8term); \
rm -f k8term.tmp; \
else \
$(INSTALL_SCRIPT) -m 755 $(srcdir)/koi8rxterm $(BINDIR)/$(binary_k8term); \
fi'
2007-06-15 13:34:50 -06:00
@-$(SHELL) -c "if test @XTERM_SYMLINK@ != NONE ; then cd $(BINDIR) && rm -f @XTERM_SYMLINK@ ; fi"
@-$(SHELL) -c "if test @XTERM_SYMLINK@ != NONE ; then cd $(BINDIR) && $(LN_S) $(binary_xterm) @XTERM_SYMLINK@ ; fi"
@-$(SHELL) -c "if test @XTERM_SYMLINK@ != NONE ; then cd $(BINDIR) && echo '... created symbolic link:' && ls -l $(binary_xterm) @XTERM_SYMLINK@ ; fi"
2006-11-26 04:11:12 -07:00
install \
install-man \
install-full :: $(MANDIR)
$(SHELL) $(srcdir)/minstall.sh "$(INSTALL_DATA)" $(srcdir)/xterm.man $(MANDIR)/$(actual_xterm).$(manext) $(appsdir)
$(SHELL) $(srcdir)/minstall.sh "$(INSTALL_DATA)" $(srcdir)/resize.man $(MANDIR)/$(actual_resize).$(manext) $(appsdir)
$(SHELL) $(srcdir)/minstall.sh "$(INSTALL_DATA)" $(srcdir)/uxterm.man $(MANDIR)/$(actual_uxterm).$(manext) $(appsdir)
$(SHELL) $(srcdir)/minstall.sh "$(INSTALL_DATA)" $(srcdir)/koi8rxterm.man $(MANDIR)/$(actual_k8term).$(manext) $(appsdir)
2007-06-15 13:34:50 -06:00
@-$(SHELL) -c "if test @XTERM_SYMLINK@ != NONE ; then cd $(MANDIR) && rm -f @XTERM_SYMLINK@.$(manext) ; fi"
@-$(SHELL) -c "if test @XTERM_SYMLINK@ != NONE ; then cd $(MANDIR) && $(LN_S) $(actual_xterm).$(manext) @XTERM_SYMLINK@.$(manext) ; fi"
@-$(SHELL) -c "if test @XTERM_SYMLINK@ != NONE ; then cd $(MANDIR) && echo '... created symbolic link:' && ls -l $(actual_xterm).$(manext) @XTERM_SYMLINK@.$(manext) ; fi"
2006-11-26 04:11:12 -07:00
@no_appsdir@install \
@no_appsdir@install-app \
@no_appsdir@install-full :: $(APPSDIR)
@no_appsdir@ @echo installing $(APPSDIR)/$(CLASS)
@no_appsdir@ @sed -e s/XTerm/$(CLASS)/ $(srcdir)/XTerm.ad >XTerm.tmp
@no_appsdir@ @$(INSTALL_DATA) XTerm.tmp $(APPSDIR)/$(CLASS)
@no_appsdir@ @echo installing $(APPSDIR)/$(CLASS)-color
@no_appsdir@ @sed -e s/XTerm/$(CLASS)/ $(srcdir)/XTerm-col.ad >XTerm.tmp
@no_appsdir@ @$(INSTALL_DATA) XTerm.tmp $(APPSDIR)/$(CLASS)-color
@no_appsdir@ @echo installing $(APPSDIR)/UXTerm
@no_appsdir@ @sed -e s/XTerm/$(CLASS)/ $(srcdir)/UXTerm.ad >XTerm.tmp
@no_appsdir@ @$(INSTALL_DATA) XTerm.tmp $(APPSDIR)/UXTerm
@no_appsdir@ @echo installing $(APPSDIR)/KOI8RXTerm
@no_appsdir@ @sed -e s/XTerm/$(CLASS)/ $(srcdir)/KOI8RXTerm.ad >XTerm.tmp
@no_appsdir@ @$(INSTALL_DATA) XTerm.tmp $(APPSDIR)/KOI8RXTerm
2006-11-26 04:11:12 -07:00
@no_appsdir@ @rm -f XTerm.tmp
@no_icondir@ @echo "... installed app-defaults"
@no_icondir@install \
@no_icondir@install-icon \
@no_icondir@install-full :: $(ICONDIR)
@no_icondir@ @$(INSTALL_DATA) $(srcdir)/icons/xterm-color_32x32.xpm $(ICONDIR)
@no_icondir@ @$(INSTALL_DATA) $(srcdir)/icons/xterm-color_48x48.xpm $(ICONDIR)
@no_icondir@ @$(INSTALL_DATA) $(srcdir)/icons/xterm_32x32.xpm $(ICONDIR)
@no_icondir@ @$(INSTALL_DATA) $(srcdir)/icons/xterm_48x48.xpm $(ICONDIR)
@no_icondir@ @echo "... installed icons"
2006-11-26 04:11:12 -07:00
install ::
@echo 'Completed installation of executables and documentation.'
@echo 'Use "make install-ti" to install terminfo description.'
TERMINFO_DIR = @TERMINFO_DIR@
SET_TERMINFO = @SET_TERMINFO@
install-full \
install-ti :: $(TERMINFO_DIR)
2007-06-15 13:34:50 -06:00
@$(SHELL) -c "$(SET_TERMINFO) $(srcdir)/run-tic.sh $(srcdir)/terminfo"
2006-11-26 04:11:12 -07:00
@echo 'Completed installation of terminfo description.'
install-full \
install-tc ::
2007-06-15 13:34:50 -06:00
@-$(SHELL) -c "test -f /etc/termcap && echo 'You must install the termcap entry manually by editing /etc/termcap'"
2006-11-26 04:11:12 -07:00
installdirs : $(INSTALL_DIRS)
2007-06-15 13:34:50 -06:00
################################################################################
2006-11-26 04:11:12 -07:00
uninstall \
uninstall-bin \
uninstall-full ::
-$(RM) $(BINDIR)/$(binary_xterm)
-$(RM) $(BINDIR)/$(binary_resize)
-$(RM) $(BINDIR)/$(binary_uxterm)
-$(RM) $(BINDIR)/$(binary_k8term)
2007-06-15 13:34:50 -06:00
@-$(SHELL) -c "if test @XTERM_SYMLINK@ != NONE ; then cd $(BINDIR) && rm -f @XTERM_SYMLINK@; fi"
2006-11-26 04:11:12 -07:00
uninstall \
uninstall-man \
uninstall-full ::
-$(RM) $(MANDIR)/$(actual_xterm).$(manext)
-$(RM) $(MANDIR)/$(actual_resize).$(manext)
-$(RM) $(MANDIR)/$(actual_uxterm).$(manext)
-$(RM) $(MANDIR)/$(actual_k8term).$(manext)
2007-06-15 13:34:50 -06:00
@-$(SHELL) -c "if test @XTERM_SYMLINK@ != NONE ; then cd $(MANDIR) && rm -f @XTERM_SYMLINK@.$(manext); fi"
2006-11-26 04:11:12 -07:00
@no_appsdir@uninstall \
@no_appsdir@uninstall-app \
@no_appsdir@uninstall-full ::
@no_appsdir@ -$(RM) $(APPSDIR)/$(CLASS)
@no_appsdir@ -$(RM) $(APPSDIR)/$(CLASS)-color
@no_appsdir@ -$(RM) $(APPSDIR)/UXTerm
@no_icondir@uninstall \
@no_icondir@uninstall-icon \
@no_icondir@uninstall-full ::
@no_icondir@ -$(RM) $(ICONDIR)/xterm-color_32x32.xpm
@no_icondir@ -$(RM) $(ICONDIR)/xterm_32x32.xpm
@no_icondir@ -$(RM) $(ICONDIR)/xterm-color_48x48.xpm
@no_icondir@ -$(RM) $(ICONDIR)/xterm_48x48.xpm
################################################################################
# Desktop-utils does not provide an uninstall, and is not uniformly available.
@desktop_utils@DESKTOP_FLAGS = @DESKTOP_FLAGS@
@desktop_utils@install-desktop \
@desktop_utils@install-full ::
@desktop_utils@ desktop-file-install $(DESKTOP_FLAGS) xterm.desktop
@desktop_utils@ desktop-file-install $(DESKTOP_FLAGS) uxterm.desktop
2007-06-15 13:34:50 -06:00
################################################################################
2006-11-26 04:11:12 -07:00
mostlyclean :
-$(RM) *$o *.[is] XtermLog.* .pure core *~ *.bak *.BAK *.out *.tmp
clean : mostlyclean
-$(RM) $(PROGRAMS)
distclean : clean
-$(RM) Makefile config.status config.cache config.log xtermcfg.h
2007-06-15 13:34:50 -06:00
-$(RM) *.ps *.pdf *.png
-$(RM) xterm.html xterm.$(manext) xterm.txt
-$(RM) ctlseqs.html ctlseqs.$(manext)
2006-11-26 04:11:12 -07:00
realclean : distclean
2007-06-15 13:34:50 -06:00
-$(RM) tags TAGS
2006-11-26 04:11:12 -07:00
maintainer-clean : realclean
-$(RM) 256colres.h 88colres.h
2007-06-15 13:34:50 -06:00
################################################################################
terminfo.out : terminfo ; tic -a -I -1 terminfo >$@
termcap.out : termcap ; tic -a -C -U termcap >$@
################################################################################
2006-11-26 04:11:12 -07:00
ctlseqs.html : ctlseqs.ms
2007-06-15 13:34:50 -06:00
ctlseqs.pdf : ctlseqs.ps
2006-11-26 04:11:12 -07:00
ctlseqs.ps : ctlseqs.ms
2007-06-15 13:34:50 -06:00
ctlseqs.txt : ctlseqs.ms
################################################################################
xterm.html : xterm.$(manext)
xterm.pdf : xterm.ps
xterm.ps : xterm.$(manext)
xterm.txt : xterm.$(manext)
################################################################################
2006-11-26 04:11:12 -07:00
lint :
$(LINT) $(CPPFLAGS) $(SRCS1)
$(LINT) $(CPPFLAGS) $(SRCS2)
tags :
ctags $(SRCS) $(HDRS)
TAGS :
etags $(SRCS) $(HDRS)
$(TERMINFO_DIR) $(INSTALL_DIRS) :
$(SHELL) ${srcdir}/mkdirs.sh $@
ALWAYS :
depend : $(TABLES)
makedepend -- $(CPPFLAGS) -- $(SRCS)
# DO NOT DELETE THIS LINE -- make depend depends on it.