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

« back to all changes in this revision

Viewing changes to ncurses/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.96 2005/05/07 18:57:05 tom Exp $
 
1
# $Id: Makefile.in,v 1.101 2006/10/14 19:08:11 tom Exp $
2
2
##############################################################################
3
 
# Copyright (c) 1998-2004,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-2002
 
30
# Author: Thomas E. Dickey 1996-on
31
31
#
32
32
# Makefile for ncurses source code.
33
33
#
74
74
 
75
75
INSTALL         = @INSTALL@
76
76
INSTALL_LIB     = @INSTALL@ @INSTALL_LIB@
77
 
INSTALL_PROG    = @INSTALL_PROG@
 
77
INSTALL_PROG    = @INSTALL_PROGRAM@
78
78
INSTALL_DATA    = @INSTALL_DATA@
79
79
 
80
80
AR              = @AR@
141
141
TERMINFO_CAPS   = $(top_srcdir)/include/@TERMINFO_CAPS@
142
142
 
143
143
AUTO_SRC = \
144
 
        ../include/nomacros.h \
145
 
        codes.c \
146
 
        comp_captab.c \
147
 
        expanded.c \
148
 
        fallback.c \
 
144
        ./codes.c \
 
145
        ./comp_captab.c \
 
146
        ./expanded.c \
 
147
        ./fallback.c \
 
148
        ./lib_gen.c \
 
149
        ./lib_keyname.c \
 
150
        ./link_test.c \
 
151
        ./names.c \
 
152
        ./unctrl.c \
149
153
        init_keytry.h \
150
154
        keys.list \
151
 
        lib_gen.c \
152
 
        lib_keyname.c \
153
 
        link_test.c \
154
 
        names.c \
155
 
        unctrl.c
 
155
        names-stamp
156
156
 
157
157
TEST_DEPS       = ../lib/@LIB_PREFIX@ncurses@DFT_DEP_SUFFIX@
158
158
TEST_ARGS       = -L../lib -lncurses@DFT_ARG_SUFFIX@
183
183
 
184
184
../lib : ; mkdir $@
185
185
 
186
 
fallback.c : $(tinfo)/MKfallback.sh
 
186
./fallback.c : $(tinfo)/MKfallback.sh
187
187
        sh $(tinfo)/MKfallback.sh @TERMINFO@ @TERMINFO_SRC@ $(FALLBACK_LIST) >$@
188
188
 
189
 
lib_gen.c : $(base)/MKlib_gen.sh ../include/curses.h
 
189
./lib_gen.c : $(base)/MKlib_gen.sh ../include/curses.h
190
190
        sh $(base)/MKlib_gen.sh "$(CPP) $(CPPFLAGS)" "$(AWK)" generated <../include/curses.h >$@
191
191
 
192
 
../include/nomacros.h : $(base)/MKlib_gen.sh ../include/curses.h
193
 
        sh $(base)/MKlib_gen.sh "$(CPP) $(CPPFLAGS)" "$(AWK)" generated <../include/curses.h | \
194
 
                fgrep undef >$@
195
 
 
196
192
init_keytry.h: make_keys$(BUILD_EXEEXT) keys.list
197
193
        ./make_keys$(BUILD_EXEEXT) keys.list > $@
198
194
 
201
197
 
202
198
make_keys$(BUILD_EXEEXT) : \
203
199
                $(tinfo)/make_keys.c \
204
 
                names.c
 
200
                names-stamp
205
201
        $(BUILD_CC) -o $@ $(BUILD_CCFLAGS) $(tinfo)/make_keys.c $(BUILD_LDFLAGS) $(BUILD_LIBS)
206
202
 
207
203
make_hash$(BUILD_EXEEXT) : \
209
205
                ../include/hashsize.h
210
206
        $(BUILD_CC) -o $@ $(BUILD_CCFLAGS) -DMAIN_PROGRAM $(tinfo)/comp_hash.c $(BUILD_LDFLAGS) $(BUILD_LIBS)
211
207
 
212
 
expanded.c : $(serial)/MKexpanded.sh
 
208
./expanded.c : $(serial)/MKexpanded.sh
213
209
        sh $(serial)/MKexpanded.sh "$(CPP)" $(CPPFLAGS) > $@
214
210
 
215
 
comp_captab.c: \
 
211
./comp_captab.c: \
216
212
                make_hash$(BUILD_EXEEXT) \
217
213
                ../include/hashsize.h \
218
214
                $(tinfo)/MKcaptab.awk
219
215
        sh $(tinfo)/MKcaptab.awk $(AWK) $(srcdir)/../include/@TERMINFO_CAPS@ > $@
220
216
 
221
 
lib_keyname.c: keys.list $(base)/MKkeyname.awk
 
217
./lib_keyname.c: keys.list $(base)/MKkeyname.awk
222
218
        $(AWK) -f $(base)/MKkeyname.awk keys.list > $@
223
219
 
224
 
names.c codes.c: $(tinfo)/MKnames.awk
 
220
names-stamp: $(tinfo)/MKnames.awk
225
221
        $(AWK) -f $(tinfo)/MKnames.awk $(srcdir)/../include/@TERMINFO_CAPS@
226
222
        cat namehdr boolnames boolfnames numnames numfnames strnames strfnames nameftr >names.c
227
223
        cat namehdr boolcodes numcodes strcodes codeftr >codes.c
228
224
        -rm -f namehdr nameftr codeftr boolnames boolfnames boolcodes numnames numfnames numcodes strnames strfnames strcodes
229
 
 
230
 
unctrl.c: $(base)/MKunctrl.awk
 
225
        @echo >$@
 
226
 
 
227
./names.c: names-stamp
 
228
        @echo made $@
 
229
 
 
230
./codes.c: names-stamp
 
231
        @echo made $@
 
232
 
 
233
./unctrl.c: $(base)/MKunctrl.awk
231
234
        echo | $(AWK) -f $(base)/MKunctrl.awk >$@
232
235
 
233
236
tags:
260
263
# These rules build test-programs for the modules that have test-drivers
261
264
test_progs : $(TEST_PROGS)
262
265
 
263
 
link_test.c : $(base)/MKlib_gen.sh ../include/curses.h
 
266
./link_test.c : $(base)/MKlib_gen.sh ../include/curses.h
264
267
        sh $(base)/MKlib_gen.sh "$(CPP) $(CPPFLAGS)" "$(AWK)" implemented <../include/curses.h >$@
265
268
 
266
269
captoinfo$x : $(tinfo)/captoinfo.c $(TEST_DEPS)
276
279
                ../@DFT_OBJ_SUBDIR@/dump_entry$o
277
280
        @ECHO_LINK@ $(CC) -o $@ $(CFLAGS_DEFAULT) -DNCURSES_TEST -I$(serial)/../../progs $(serial)/lib_mvcur.c ../@DFT_OBJ_SUBDIR@/dump_entry$o $(TEST_LDFLAGS)
278
281
 
279
 
link_test$x : link_test.c $(TEST_DEPS) \
 
282
link_test$x : ./link_test.c $(TEST_DEPS) \
280
283
                ../@DFT_OBJ_SUBDIR@/link_test$o
281
284
        @ECHO_LINK@ $(CC) -o $@ $(CFLAGS_DEFAULT) ../@DFT_OBJ_SUBDIR@/link_test$o $(TEST_LDFLAGS)
282
285