Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame^] | 1 | # $Id: Makefile.in,v 1.115 2015/08/05 23:15:41 tom Exp $ |
| 2 | ############################################################################## |
| 3 | # Copyright (c) 1998-2014,2015 Free Software Foundation, Inc. # |
| 4 | # # |
| 5 | # Permission is hereby granted, free of charge, to any person obtaining a # |
| 6 | # copy of this software and associated documentation files (the "Software"), # |
| 7 | # to deal in the Software without restriction, including without limitation # |
| 8 | # the rights to use, copy, modify, merge, publish, distribute, distribute # |
| 9 | # with modifications, sublicense, and/or sell copies of the Software, and to # |
| 10 | # permit persons to whom the Software is furnished to do so, subject to the # |
| 11 | # following conditions: # |
| 12 | # # |
| 13 | # The above copyright notice and this permission notice shall be included in # |
| 14 | # all copies or substantial portions of the Software. # |
| 15 | # # |
| 16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # |
| 17 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # |
| 18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL # |
| 19 | # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # |
| 20 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # |
| 21 | # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # |
| 22 | # DEALINGS IN THE SOFTWARE. # |
| 23 | # # |
| 24 | # Except as contained in this notice, the name(s) of the above copyright # |
| 25 | # holders shall not be used in advertising or otherwise to promote the sale, # |
| 26 | # use or other dealings in this Software without prior written # |
| 27 | # authorization. # |
| 28 | ############################################################################## |
| 29 | # |
| 30 | # Author: Thomas E. Dickey 1996-on |
| 31 | # |
| 32 | # Makefile for ncurses tests. |
| 33 | |
| 34 | # turn off _all_ suffix rules; we'll generate our own |
| 35 | .SUFFIXES: |
| 36 | |
| 37 | SHELL = @SHELL@ |
| 38 | VPATH = @srcdir@ |
| 39 | |
| 40 | @SET_MAKE@ |
| 41 | |
| 42 | destdir = |
| 43 | x = @EXEEXT@ |
| 44 | o = .@OBJEXT@ |
| 45 | |
| 46 | MODEL = ../@DFT_OBJ_SUBDIR@ |
| 47 | top_srcdir = @top_srcdir@ |
| 48 | srcdir = @srcdir@ |
| 49 | prefix = @prefix@ |
| 50 | exec_prefix = @exec_prefix@ |
| 51 | datarootdir = @datarootdir@ |
| 52 | |
| 53 | bindir = @bindir@ |
| 54 | libdir = @libdir@ |
| 55 | includedir = @includedir@ |
| 56 | includesubdir = @includesubdir@ |
| 57 | |
| 58 | BINDIR = $(DESTDIR)$(bindir) |
| 59 | LIBDIR = $(DESTDIR)$(libdir) |
| 60 | INCLUDEDIR = $(DESTDIR)$(includedir)$(includesubdir) |
| 61 | |
| 62 | PACKAGE = @PACKAGE@ |
| 63 | |
| 64 | LIBTOOL = @LIBTOOL@ |
| 65 | LIBTOOL_OPTS = @LIBTOOL_OPTS@ |
| 66 | LIBTOOL_CLEAN = @LIB_CLEAN@ |
| 67 | LIBTOOL_COMPILE = @LIB_COMPILE@ |
| 68 | LIBTOOL_LINK = @LIB_LINK@ |
| 69 | |
| 70 | INSTALL = @INSTALL@ |
| 71 | INSTALL_PROG = @INSTALL_PROGRAM@ |
| 72 | transform = @program_transform_name@ |
| 73 | TRANSFORM = sed 's/$x$$//'|sed '$(transform)'|sed 's/$$/$x/' |
| 74 | |
| 75 | CTAGS = @CTAGS@ |
| 76 | ETAGS = @ETAGS@ |
| 77 | |
| 78 | CC = @CC@ |
| 79 | CPP = @CPP@ |
| 80 | |
| 81 | CFLAGS = @CFLAGS@ @EXTRA_CFLAGS@ |
| 82 | CPPFLAGS = -I. -I$(srcdir) -I../test -DHAVE_CONFIG_H @CPPFLAGS@ |
| 83 | |
| 84 | CCFLAGS = $(CPPFLAGS) $(CFLAGS) |
| 85 | |
| 86 | CFLAGS_LIBTOOL = $(CCFLAGS) |
| 87 | CFLAGS_NORMAL = $(CCFLAGS) |
| 88 | CFLAGS_DEBUG = $(CCFLAGS) @CC_G_OPT@ -DTRACE |
| 89 | CFLAGS_PROFILE = $(CCFLAGS) -pg |
| 90 | CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@ |
| 91 | |
| 92 | CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@) |
| 93 | |
| 94 | REL_VERSION = @cf_cv_rel_version@ |
| 95 | ABI_VERSION = @cf_cv_abi_version@ |
| 96 | LOCAL_LIBDIR = @top_builddir@/lib |
| 97 | LOCAL_LIBS = @TEST_DEPS@ |
| 98 | MATH_LIB = @MATH_LIB@ |
| 99 | TEST_LIBS = @TEST_LIBS@ |
| 100 | |
| 101 | LD = @LD@ |
| 102 | LINK = @LINK_TESTS@ $(LIBTOOL_LINK) $(CFLAGS) |
| 103 | |
| 104 | LDFLAGS = @LD_MODEL@ @LOCAL_LDFLAGS@ @LDFLAGS@ |
| 105 | |
| 106 | LDFLAGS_LIBTOOL = $(LDFLAGS) $(CFLAGS_LIBTOOL) |
| 107 | LDFLAGS_NORMAL = $(LDFLAGS) $(CFLAGS_NORMAL) |
| 108 | LDFLAGS_DEBUG = $(LDFLAGS) $(CFLAGS_DEBUG) |
| 109 | LDFLAGS_PROFILE = $(LDFLAGS) $(CFLAGS_PROFILE) |
| 110 | LDFLAGS_SHARED = $(LDFLAGS) $(CFLAGS_SHARED) @LD_SHARED_OPTS@ |
| 111 | |
| 112 | TEST_ARGS = @LDFLAGS_STATIC@ @TEST_ARGS@ @LDFLAGS_SHARED@ |
| 113 | |
| 114 | # use these for linking with all of the libraries |
| 115 | LIBS_DEFAULT = $(TEST_ARGS) @LIBS@ $(TEST_LIBS) $(MATH_LIB) |
| 116 | LDFLAGS_DEFAULT = $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_DEFAULT) |
| 117 | |
| 118 | # use these for linking with the (n)curses library and possibly pthreads |
| 119 | LIBS_THREADS = `echo "$(TEST_ARGS) @LIBS@" | sed -e 's/-lform.*-lpanel[^ ]*//'` $(TEST_LIBS) $(MATH_LIB) @PTHREAD@ |
| 120 | LDFLAGS_THREADS = $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_THREADS) |
| 121 | |
| 122 | # use these for linking with the (n)curses library |
| 123 | LIBS_CURSES = `echo "$(TEST_ARGS) @LIBS@" | sed -e 's/-lform.*-lpanel[^ ]*//'` $(TEST_LIBS) $(MATH_LIB) |
| 124 | LDFLAGS_CURSES = $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_CURSES) |
| 125 | |
| 126 | # use these for linking with the tinfo library if we have it, or curses library if not |
| 127 | LIBS_TINFO = @LDFLAGS_STATIC@ @TINFO_LIBS@ @LDFLAGS_SHARED@ @LIBS@ $(TEST_LIBS) $(MATH_LIB) |
| 128 | LDFLAGS_TINFO = @TINFO_LDFLAGS@ $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_TINFO) |
| 129 | |
| 130 | LINT = @LINT@ |
| 131 | LINT_OPTS = @LINT_OPTS@ |
| 132 | LINT_LIBS = -lform -lmenu -lpanel -lncurses @LIBS@ |
| 133 | |
| 134 | HEADER_DEPS = \ |
| 135 | ../include/curses.h \ |
| 136 | ../include/term.h |
| 137 | |
| 138 | # The rest is generated from the "programs" and "modules" files... |