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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [nindy-share/] [Makefile] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 106 markom
#Copyright 1992 Free Software Foundation, Inc.
2
 
3
# This file is part of GDB.
4
 
5
# This program is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; either version 2 of the License, or
8
# (at your option) any later version.
9
#
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
# GNU General Public License for more details.
14
#
15
# You should have received a copy of the GNU General Public License
16
# along with this program; if not, write to the Free Software
17
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
 
19
#-----------------------------------------------------------------------------
20
# Makefile for toolib.a -- host code shAred by more than one tool
21
#-----------------------------------------------------------------------------
22
 
23
RANLIB  = ranlib
24
 
25
# The following lines should be uncommented for system V (i386v).
26
#__i386v__#USG = -DUSG
27
#__i386v__#SYSV_INCL = ${IPATH}/sysv.h
28
#__i386v__#RANLIB = echo >/dev/null
29
 
30
# The following line should be uncommented for HP-UX
31
#__hp9000__#USG = -DUSG
32
#__hp9000__#SYSV_INCL = ${IPATH}/sysv.h
33
#__hp9000__#RANLIB = echo >/dev/null
34
 
35
# Essential under System V, harmless elsewhere
36
SHELL = /bin/sh
37
 
38
#'HOST' will be defined in the host-specific makefile by 'make make'
39
 
40
TARG    = toolib.a
41
OPT     = -g
42
IPATH   = ../../include
43
CFLAGS  = ${OPT} ${USG} -I${IPATH} -DHOST=\"${HOST}\"
44
OBJS    = coffstrip.o nindy.o ttybreak.o ttyflush.o Onindy.o
45
 
46
${TARG}: ${OBJS} VERSION
47
        make ver960.o
48
        rm -f ${TARG}
49
        ar cvr ${TARG} ${OBJS} ver960.o
50
        ${RANLIB} ${TARG}
51
 
52
coffstrip.o:    ${IPATH}/b.out.h ${IPATH}/coff.h ${IPATH}/sysv.h
53
nindy.o:        ${IPATH}/block_io.h ${IPATH}/env.h ${IPATH}/sysv.h
54
nindy.o:        ${IPATH}/ttycntl.h ${IPATH}/wait.h
55
ttybreak.o:     ${IPATH}/ttycntl.h
56
ttyflush.o:     ${IPATH}/ttycntl.h
57
Onindy.o:       ${IPATH}/block_io.h ${IPATH}/env.h ${IPATH}/sysv.h
58
Onindy.o:       ${IPATH}/ttycntl.h ${IPATH}/wait.h
59
 
60
 
61
#-----------------------------------------------------------------------------
62
#               'STANDARD' GNU/960 TARGETS BELOW THIS POINT
63
#
64
# 'VERSION' file must be present and contain a string of the form "x.y"
65
#-----------------------------------------------------------------------------
66
 
67
ver960.c: FORCE
68
        rm -f ver960.c
69
        echo "char toolib_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
70
 
71
 
72
# This target should be invoked before building a new release.
73
# 'VERSION' file must be present and contain a string of the form "x.y"
74
#
75
roll:
76
        @V=`cat VERSION`                ; \
77
        MAJ=`sed 's/\..*//' VERSION`    ; \
78
        MIN=`sed 's/.*\.//' VERSION`    ; \
79
        V=$$MAJ.`expr $$MIN + 1`        ; \
80
        rm -f VERSION                   ; \
81
        echo $$V >VERSION               ; \
82
        echo Version $$V
83
 
84
# Dummy target to force execution of dependent targets.
85
#
86
FORCE:
87
 
88
# 'G960BASE' will be defined at invocation
89
#
90
install:
91
        make ${TARG}
92
        mv -f ${TARG} ${G960BASE}/lib
93
 
94
clean:
95
        rm -f ${TARG} *.o core
96
 
97
# Target to uncomment host-specific lines in this makefile.  Such lines must
98
# have the following string beginning in column 1: #____#
99
# Original Makefile is backed up as 'Makefile.old'.
100
#
101
# Invoke with:  make make HOST=xxx
102
#
103
make:
104
        -@if test $(HOST)x = x ; then \
105
                echo 'Specify "make make HOST=???"'; \
106
                exit 1; \
107
        fi ; \
108
        grep -s "^#The next line was generated by 'make make'" Makefile; \
109
        if test $$? = 0 ; then  \
110
                echo "Makefile has already been processed with 'make make'";\
111
                exit 1; \
112
        fi ; \
113
        mv -f Makefile Makefile.old; \
114
        echo "#The next line was generated by 'make make'"       >Makefile ; \
115
        echo "HOST=$(HOST)"                                     >>Makefile ; \
116
        echo                                                    >>Makefile ; \
117
        sed "s/^#__$(HOST)__#//" < Makefile.old			>>Makefile

powered by: WebSVN 2.1.0

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