~ubuntu-branches/ubuntu/natty/ncurses/natty

« back to all changes in this revision

Viewing changes to progs/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-05-17 09:00:42 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070517090042-86fgxrr6j5jzagot
Tags: 5.6-0ubuntu1
* New upstream version.
  - Remove patches applied upstream: ncurses.upstream, signed-chars.
  - Update patches: debian-backspace.
* Build-depend on g++-multilib instead of lib{32,64}c*-dev-*.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: Makefile.in,v 1.65 2005/09/25 00:42:08 tom Exp $
 
1
# $Id: Makefile.in,v 1.70 2006/12/17 15:55:48 tom Exp $
2
2
##############################################################################
3
 
# Copyright (c) 1998-2003,2005 Free Software Foundation, Inc.                #
 
3
# Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.                #
4
4
#                                                                            #
5
5
# Permission is hereby granted, free of charge, to any person obtaining a    #
6
6
# copy of this software and associated documentation files (the "Software"), #
27
27
# authorization.                                                             #
28
28
##############################################################################
29
29
#
30
 
# Author: Thomas E. Dickey 1996-2003
 
30
# Author: Thomas E. Dickey 1996-on
31
31
#
32
32
# Makefile for ncurses source code.
33
33
#
70
70
LIBTOOL_UNINSTALL = @LIB_UNINSTALL@
71
71
 
72
72
INSTALL         = @INSTALL@
73
 
INSTALL_PROGRAM = @INSTALL_PROGRAM@
 
73
INSTALL_PROG    = @INSTALL_PROGRAM@
74
74
transform       = @program_transform_name@
75
75
 
76
76
AWK             = @AWK@
93
93
 
94
94
CFLAGS_DEFAULT  = $(CFLAGS_@DFT_UPR_MODEL@)
95
95
 
 
96
REL_VERSION     = @cf_cv_rel_version@
 
97
ABI_VERSION     = @cf_cv_abi_version@
 
98
LOCAL_LIBDIR    = @top_builddir@/lib
 
99
 
96
100
LD              = @LD@
97
101
LINK            = @LINK_PROGS@ $(LIBTOOL_LINK) $(CC)
98
102
LDFLAGS         = @EXTRA_LDFLAGS@ \
114
118
        termsort.c \
115
119
        transform.h
116
120
 
117
 
# tic and toe rely on direct access to the terminfo database
118
 
GET_PROGS = infocmp$x clear$x tput$x tset$x
119
 
PUT_PROGS = @MAKE_TERMINFO@ tic$x toe$x
 
121
# tic relies on direct access to the terminfo database
 
122
GET_PROGS = infocmp$x clear$x tput$x tset$x toe$x
 
123
PUT_PROGS = @MAKE_TERMINFO@ tic$x
120
124
PROGS = $(PUT_PROGS) $(GET_PROGS)
121
125
 
122
 
TESTPROGS = mvcur$x tctest$x hardscroll$x hashmap$x
123
 
 
124
126
# Default library, for linking applications
125
127
DEPS_CURSES = ../lib/@LIB_PREFIX@ncurses@DFT_DEP_SUFFIX@
126
128
 
145
147
 
146
148
TRANSFORM = sed 's/$x$$//'|sed '$(transform)'|sed 's/$$/$x/'
147
149
 
 
150
# transformed names for installing files
148
151
actual_captoinfo = `echo captoinfo$x| $(TRANSFORM)`
149
152
actual_clear     = `echo clear$x|     $(TRANSFORM)`
150
153
actual_infocmp   = `echo infocmp$x|   $(TRANSFORM)`
156
159
actual_tput      = `echo tput$x|      $(TRANSFORM)`
157
160
actual_tset      = `echo tset$x|      $(TRANSFORM)`
158
161
 
 
162
# transformed names for comparing at runtime
 
163
define_captoinfo = `echo captoinfo|   $(TRANSFORM)`
 
164
define_infotocap = `echo infotocap|   $(TRANSFORM)`
 
165
define_init      = `echo init|        $(TRANSFORM)`
 
166
define_reset     = `echo reset|       $(TRANSFORM)`
 
167
 
159
168
transform.h :
160
 
        echo "#define PROG_CAPTOINFO \"$(actual_captoinfo)\"" >$@
161
 
        echo "#define PROG_INFOTOCAP \"$(actual_infotocap)\"" >>$@
162
 
        echo "#define PROG_RESET     \"$(actual_reset)\""     >>$@
163
 
        echo "#define PROG_INIT      \"$(actual_init)\""      >>$@
 
169
        echo "#define PROG_CAPTOINFO \"$(define_captoinfo)\"" >$@
 
170
        echo "#define PROG_INFOTOCAP \"$(define_infotocap)\"" >>$@
 
171
        echo "#define PROG_RESET     \"$(define_reset)\""     >>$@
 
172
        echo "#define PROG_INIT      \"$(define_init)\""      >>$@
164
173
 
165
174
install.progs: $(AUTO_SRC) $(PROGS) $(DESTDIR)$(bindir)
166
 
@MAKE_TERMINFO@ $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) tic$x     $(DESTDIR)$(bindir)/$(actual_tic)
167
 
@MAKE_TERMINFO@ $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) toe$x     $(DESTDIR)$(bindir)/$(actual_toe)
 
175
@MAKE_TERMINFO@ $(LIBTOOL_INSTALL) $(INSTALL_PROG) tic$x     $(DESTDIR)$(bindir)/$(actual_tic)
 
176
@MAKE_TERMINFO@ $(LIBTOOL_INSTALL) $(INSTALL_PROG) toe$x     $(DESTDIR)$(bindir)/$(actual_toe)
168
177
@MAKE_TERMINFO@ @echo "linking $(actual_infotocap) to $(actual_tic)"
169
178
@MAKE_TERMINFO@ -@rm -f $(DESTDIR)$(bindir)/$(actual_infotocap)
170
179
@MAKE_TERMINFO@ (cd $(DESTDIR)$(bindir) && $(LN_S) $(actual_tic) $(actual_infotocap))
171
180
@MAKE_TERMINFO@ @echo "linking $(actual_captoinfo) to $(actual_tic)"
172
181
@MAKE_TERMINFO@ -@rm -f $(DESTDIR)$(bindir)/$(actual_captoinfo)
173
182
@MAKE_TERMINFO@ (cd $(DESTDIR)$(bindir) && $(LN_S) $(actual_tic) $(actual_captoinfo))
174
 
        $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) infocmp$x $(DESTDIR)$(bindir)/$(actual_infocmp)
175
 
        $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) clear$x   $(DESTDIR)$(bindir)/$(actual_clear)
176
 
        $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) tput$x    $(DESTDIR)$(bindir)/$(actual_tput)
177
 
        $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) tset$x    $(DESTDIR)$(bindir)/$(actual_tset)
 
183
        $(LIBTOOL_INSTALL) $(INSTALL_PROG) infocmp$x $(DESTDIR)$(bindir)/$(actual_infocmp)
 
184
        $(LIBTOOL_INSTALL) $(INSTALL_PROG) clear$x   $(DESTDIR)$(bindir)/$(actual_clear)
 
185
        $(LIBTOOL_INSTALL) $(INSTALL_PROG) tput$x    $(DESTDIR)$(bindir)/$(actual_tput)
 
186
        $(LIBTOOL_INSTALL) $(INSTALL_PROG) tset$x    $(DESTDIR)$(bindir)/$(actual_tset)
178
187
        @echo "linking $(actual_reset) to $(actual_tset)"
179
188
        -@rm -f $(DESTDIR)$(bindir)/$(actual_reset)
180
189
        (cd $(DESTDIR)$(bindir) && $(LN_S) $(actual_tset) $(actual_reset))
252
261
 
253
262
mostlyclean ::
254
263
        -rm -f core tags TAGS *~ *.bak *.i *.ln *.atac trace
255
 
        -rm -f $(TESTPROGS)
256
264
 
257
265
clean :: mostlyclean
258
266
        -sh -c "if test -n '$x' ; then $(MAKE) clean x=''; fi"