OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [dejagnu/] [example/] [calc/] [Makefile] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# Generated automatically from Makefile.in by configure.
2
# Copyright (C) 92, 93, 94, 95, 96, 97, 98, 1999 Free Software Foundation, Inc.
3
#
4
# This program is free software; you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation; either version 1, or (at your option)
7
# any later version.
8
#
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
# GNU General Public License for more details.
13
#
14
# You should have received a copy of the GNU General Public License
15
# along with this program; if not, write to the Free Software
16
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
#
18
 
19
# target name
20
PROG=   calc
21
 
22
# compiler specifics
23
CC = gcc
24
CFLAGS = -g -I$(srcdir) -I.
25
CALC = calc
26
 
27
# directory specifics
28
srcdir = .
29
prefix = /projects/or32-rtems2
30
exec_prefix = ${prefix}
31
 
32
# testsuite specifics
33
# Setup the testing framework, if you have one
34
# Flags that we pass when building the testsuite.
35
EXPECT = ` \
36
        if [ -f $${rootme}/../../../expect/expect ] ; then \
37
          echo $${rootme}/../../../expect/expect ; \
38
        else echo expect ; fi`
39
 
40
RUNTEST = ` \
41
  if [ -f $${srcdir}/../../../dejagnu/runtest ] ; then \
42
    echo $${srcdir}/../../../dejagnu/runtest ; \
43
  else echo runtest ;  fi`
44
 
45
RUNTESTFLAGS=
46
 
47
##  ---  NOTHING BELOW HERE SHOULD REQUIRE MODIFICATIONS  ---  ##
48
 
49
SRCS=   calc.c
50
 
51
OBJS=   calc.o
52
 
53
all:    ${PROG}
54
 
55
calc.o: calc.c
56
 
57
.c.o:
58
        ${CC} ${CFLAGS} -I$(srcdir) -I. -c $<
59
 
60
${PROG}: ${OBJS} ${DPADD}
61
        ${CC} ${LDFLAGS} ${CFLAGS} -o $@ ${OBJS} ${DPADD} ${LDADD}
62
 
63
check:  site.exp all
64
        rootme=`pwd`; export rootme; \
65
        srcdir=${srcdir} ; export srcdir ; \
66
        EXPECT=${EXPECT} ; export EXPECT ; \
67
        if [ -f $${rootme}/../../expect/expect ] ; then  \
68
           TCL_LIBRARY=$${srcdir}/../../tcl/library ; \
69
           export TCL_LIBRARY ; fi ; \
70
        ${RUNTEST} ${RUNTESTFLAGS} --tool ${PROG} CALC=${PROG} --srcdir ${srcdir}/testsuite
71
 
72
site.exp: ./config.status Makefile
73
        @echo "Making a new config file..."
74
        -@rm -f ./tmp?
75
        @touch site.exp
76
 
77
        -@mv site.exp site.bak
78
        @echo "## these variables are automatically generated by make ##" > ./tmp0
79
        @echo "# Do not edit here. If you wish to override these values" >> ./tmp0
80
        @echo "# add them to the last section" >> ./tmp0
81
        @echo "set tool calc" >> ./tmp0
82
        @echo "set srcdir ${srcdir}" >> ./tmp0
83
        @echo "set objdir `pwd`" >> ./tmp0
84
        @echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
85
        @cat ./tmp0 > site.exp
86
        @cat site.bak | sed \
87
                        -e '1,/^## All variables above are.*##/ d' >> site.exp
88
        -@rm -f ./tmp?
89
 
90
install: ${PROG}
91
 
92
clean mostlyclean:
93
        rm -f a.out [Ee]rrs tags mklog core ${OBJS} ${PROG}
94
 
95
distclean maintainer-clean realclean: clean
96
        rm -f config.status Makefile calc.h calc.log calc.plog calc.psum
97
        rm -f calc.sum site.exp config.log
98
 
99
Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) config.status
100
        @echo "Rebuilding the Makefile..."
101
        $(SHELL) ./config.status
102
 
103
configure: $(srcdir)/configure.in $(srcdir)/Makefile.in $(srcdir)/../../aclocal.m4
104
        @echo "Rebuilding configure..."
105
        @cd ${srcdir} ;\
106
        autoconf --localdir=${srcdir}/../..
107
 
108
config.status:
109
        @echo "Rebuilding config.status..."
110
        $(SHELL) ./config.status --recheck
111
 
112
info:
113
install-info:
114
# Nothing.

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.