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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [nindy-share/] [Makefile] - Diff between revs 107 and 1765

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 107 Rev 1765
#Copyright 1992 Free Software Foundation, Inc.
#Copyright 1992 Free Software Foundation, Inc.
# This file is part of GDB.
# This file is part of GDB.
# This program is free software; you can redistribute it and/or modify
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# (at your option) any later version.
#
#
# This program is distributed in the hope that it will be useful,
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# GNU General Public License for more details.
#
#
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Makefile for toolib.a -- host code shAred by more than one tool
# Makefile for toolib.a -- host code shAred by more than one tool
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
RANLIB  = ranlib
RANLIB  = ranlib
# The following lines should be uncommented for system V (i386v).
# The following lines should be uncommented for system V (i386v).
#__i386v__#USG = -DUSG
#__i386v__#USG = -DUSG
#__i386v__#SYSV_INCL = ${IPATH}/sysv.h
#__i386v__#SYSV_INCL = ${IPATH}/sysv.h
#__i386v__#RANLIB = echo >/dev/null
#__i386v__#RANLIB = echo >/dev/null
# The following line should be uncommented for HP-UX
# The following line should be uncommented for HP-UX
#__hp9000__#USG = -DUSG
#__hp9000__#USG = -DUSG
#__hp9000__#SYSV_INCL = ${IPATH}/sysv.h
#__hp9000__#SYSV_INCL = ${IPATH}/sysv.h
#__hp9000__#RANLIB = echo >/dev/null
#__hp9000__#RANLIB = echo >/dev/null
# Essential under System V, harmless elsewhere
# Essential under System V, harmless elsewhere
SHELL = /bin/sh
SHELL = /bin/sh
#'HOST' will be defined in the host-specific makefile by 'make make'
#'HOST' will be defined in the host-specific makefile by 'make make'
TARG    = toolib.a
TARG    = toolib.a
OPT     = -g
OPT     = -g
IPATH   = ../../include
IPATH   = ../../include
CFLAGS  = ${OPT} ${USG} -I${IPATH} -DHOST=\"${HOST}\"
CFLAGS  = ${OPT} ${USG} -I${IPATH} -DHOST=\"${HOST}\"
OBJS    = coffstrip.o nindy.o ttybreak.o ttyflush.o Onindy.o
OBJS    = coffstrip.o nindy.o ttybreak.o ttyflush.o Onindy.o
${TARG}: ${OBJS} VERSION
${TARG}: ${OBJS} VERSION
        make ver960.o
        make ver960.o
        rm -f ${TARG}
        rm -f ${TARG}
        ar cvr ${TARG} ${OBJS} ver960.o
        ar cvr ${TARG} ${OBJS} ver960.o
        ${RANLIB} ${TARG}
        ${RANLIB} ${TARG}
coffstrip.o:    ${IPATH}/b.out.h ${IPATH}/coff.h ${IPATH}/sysv.h
coffstrip.o:    ${IPATH}/b.out.h ${IPATH}/coff.h ${IPATH}/sysv.h
nindy.o:        ${IPATH}/block_io.h ${IPATH}/env.h ${IPATH}/sysv.h
nindy.o:        ${IPATH}/block_io.h ${IPATH}/env.h ${IPATH}/sysv.h
nindy.o:        ${IPATH}/ttycntl.h ${IPATH}/wait.h
nindy.o:        ${IPATH}/ttycntl.h ${IPATH}/wait.h
ttybreak.o:     ${IPATH}/ttycntl.h
ttybreak.o:     ${IPATH}/ttycntl.h
ttyflush.o:     ${IPATH}/ttycntl.h
ttyflush.o:     ${IPATH}/ttycntl.h
Onindy.o:       ${IPATH}/block_io.h ${IPATH}/env.h ${IPATH}/sysv.h
Onindy.o:       ${IPATH}/block_io.h ${IPATH}/env.h ${IPATH}/sysv.h
Onindy.o:       ${IPATH}/ttycntl.h ${IPATH}/wait.h
Onindy.o:       ${IPATH}/ttycntl.h ${IPATH}/wait.h
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
#               'STANDARD' GNU/960 TARGETS BELOW THIS POINT
#               'STANDARD' GNU/960 TARGETS BELOW THIS POINT
#
#
# 'VERSION' file must be present and contain a string of the form "x.y"
# 'VERSION' file must be present and contain a string of the form "x.y"
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
ver960.c: FORCE
ver960.c: FORCE
        rm -f ver960.c
        rm -f ver960.c
        echo "char toolib_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
        echo "char toolib_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
# This target should be invoked before building a new release.
# This target should be invoked before building a new release.
# 'VERSION' file must be present and contain a string of the form "x.y"
# 'VERSION' file must be present and contain a string of the form "x.y"
#
#
roll:
roll:
        @V=`cat VERSION`                ; \
        @V=`cat VERSION`                ; \
        MAJ=`sed 's/\..*//' VERSION`    ; \
        MAJ=`sed 's/\..*//' VERSION`    ; \
        MIN=`sed 's/.*\.//' VERSION`    ; \
        MIN=`sed 's/.*\.//' VERSION`    ; \
        V=$$MAJ.`expr $$MIN + 1`        ; \
        V=$$MAJ.`expr $$MIN + 1`        ; \
        rm -f VERSION                   ; \
        rm -f VERSION                   ; \
        echo $$V >VERSION               ; \
        echo $$V >VERSION               ; \
        echo Version $$V
        echo Version $$V
# Dummy target to force execution of dependent targets.
# Dummy target to force execution of dependent targets.
#
#
FORCE:
FORCE:
# 'G960BASE' will be defined at invocation
# 'G960BASE' will be defined at invocation
#
#
install:
install:
        make ${TARG}
        make ${TARG}
        mv -f ${TARG} ${G960BASE}/lib
        mv -f ${TARG} ${G960BASE}/lib
clean:
clean:
        rm -f ${TARG} *.o core
        rm -f ${TARG} *.o core
# Target to uncomment host-specific lines in this makefile.  Such lines must
# Target to uncomment host-specific lines in this makefile.  Such lines must
# have the following string beginning in column 1: #____#
# have the following string beginning in column 1: #____#
# Original Makefile is backed up as 'Makefile.old'.
# Original Makefile is backed up as 'Makefile.old'.
#
#
# Invoke with:  make make HOST=xxx
# Invoke with:  make make HOST=xxx
#
#
make:
make:
        -@if test $(HOST)x = x ; then \
        -@if test $(HOST)x = x ; then \
                echo 'Specify "make make HOST=???"'; \
                echo 'Specify "make make HOST=???"'; \
                exit 1; \
                exit 1; \
        fi ; \
        fi ; \
        grep -s "^#The next line was generated by 'make make'" Makefile; \
        grep -s "^#The next line was generated by 'make make'" Makefile; \
        if test $$? = 0 ; then  \
        if test $$? = 0 ; then  \
                echo "Makefile has already been processed with 'make make'";\
                echo "Makefile has already been processed with 'make make'";\
                exit 1; \
                exit 1; \
        fi ; \
        fi ; \
        mv -f Makefile Makefile.old; \
        mv -f Makefile Makefile.old; \
        echo "#The next line was generated by 'make make'"       >Makefile ; \
        echo "#The next line was generated by 'make make'"       >Makefile ; \
        echo "HOST=$(HOST)"                                     >>Makefile ; \
        echo "HOST=$(HOST)"                                     >>Makefile ; \
        echo                                                    >>Makefile ; \
        echo                                                    >>Makefile ; \
        sed "s/^#__$(HOST)__#//" < Makefile.old			>>Makefile
        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.