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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [stdlib/] [Makefile.in] - Rev 39

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

# Makefile for newlib/libc/stdlib.
# Copyright (c) 1994 Cygnus Support.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that the above copyright notice and this paragraph are
# duplicated in all such forms and that any documentation,
# advertising materials, and other materials related to such
# distribution and use acknowledge that the software was developed
# at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
# endorse or promote products derived from this software without
# specific prior written permission.
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

srcdir = .

SHELL = /bin/sh

TOP = ../..
SRCTOP = ../..
TARGETDOC = ../targetdep.tex

#### Host, target, and site specific Makefile fragments come in here.
###

OFILES= __adjust.o      \
        __exp10.o       \
        __ten_mu.o      \
        abort.o         \
        abs.o           \
        assert.o        \
        atexit.o        \
        atof.o          \
        atoff.o         \
        atoi.o          \
        atol.o          \
        bsearch.o       \
        calloc.o        \
        callocr.o       \
        cfreer.o        \
        div.o           \
        dtoa.o          \
        dtoastub.o      \
        ecvtbuf.o       \
        efgcvt.o        \
        environ.o       \
        eprintf.o       \
        exit.o          \
        freer.o         \
        getenv.o        \
        getopt.o        \
        labs.o          \
        ldiv.o          \
        malign.o        \
        malignr.o       \
        mallinfor.o     \
        malloc.o        \
        mallocr.o       \
        malloptr.o      \
        mallstatsr.o    \
        mblen.o         \
        mbstowcs.o      \
        mbstowcs_r.o    \
        mbtowc.o        \
        mbtowc_r.o      \
        mlock.o         \
        mprec.o         \
        msize.o         \
        msizer.o        \
        mstats.o        \
        mtrim.o         \
        putenv.o        \
        pvallocr.o      \
        qsort.o         \
        rand.o          \
        rand_r.o        \
        realloc.o       \
        reallocr.o      \
        setenv.o        \
        strdup.o        \
        strtod.o        \
        strtol.o        \
        strtoul.o       \
        system.o        \
        valloc.o        \
        vallocr.o       \
        wcstombs.o      \
        wcstombs_r.o    \
        wctomb.o        \
        wctomb_r.o      


CHEWOUT_FILES=\
        abort.def       \
        abs.def         \
        assert.def      \
        atexit.def      \
        atof.def        \
        ecvtbuf.def     \
        atoi.def        \
        bsearch.def     \
        calloc.def      \
        div.def         \
        efgcvt.def      \
        exit.def        \
        getenv.def      \
        labs.def        \
        ldiv.def        \
        malloc.def      \
        mallocr.def     \
        mbtowc.def      \
        mlock.def       \
        mstats.def      \
        qsort.def       \
        rand.def        \
        strtod.def      \
        strtol.def      \
        strtoul.def     \
        system.def      \
        wctomb.def      

all: lib.a
lib.a: $(OFILES)
        rm -f $@
        $(AR) $(AR_FLAGS) $@ $(OFILES)

MALLOC_CFLAGS = -DINTERNAL_NEWLIB $(CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) $(NEWLIB_CFLAGS) $(INCLUDES)

mallocr.o: mallocr.c
        $(CC) -DDEFINE_MALLOC $(MALLOC_CFLAGS) -c $(srcdir)/mallocr.c -o $@

freer.o: mallocr.c
        $(CC) -DDEFINE_FREE $(MALLOC_CFLAGS) -c $(srcdir)/mallocr.c -o $@

reallocr.o: mallocr.c
        $(CC) -DDEFINE_REALLOC $(MALLOC_CFLAGS) -c $(srcdir)/mallocr.c -o $@

callocr.o: mallocr.c
        $(CC) -DDEFINE_CALLOC $(MALLOC_CFLAGS) -c $(srcdir)/mallocr.c -o $@

cfreer.o: mallocr.c
        $(CC) -DDEFINE_CFREE $(MALLOC_CFLAGS) -c $(srcdir)/mallocr.c -o $@

malignr.o: mallocr.c
        $(CC) -DDEFINE_MEMALIGN $(MALLOC_CFLAGS) -c $(srcdir)/mallocr.c -o $@

vallocr.o: mallocr.c
        $(CC) -DDEFINE_VALLOC $(MALLOC_CFLAGS) -c $(srcdir)/mallocr.c -o $@

pvallocr.o: mallocr.c
        $(CC) -DDEFINE_PVALLOC $(MALLOC_CFLAGS) -c $(srcdir)/mallocr.c -o $@

mallinfor.o: mallocr.c
        $(CC) -DDEFINE_MALLINFO $(MALLOC_CFLAGS) -c $(srcdir)/mallocr.c -o $@

mallstatsr.o: mallocr.c
        $(CC) -DDEFINE_MALLOC_STATS $(MALLOC_CFLAGS) -c $(srcdir)/mallocr.c -o $@

msizer.o: mallocr.c
        $(CC) -DDEFINE_MALLOC_USABLE_SIZE $(MALLOC_CFLAGS) -c $(srcdir)/mallocr.c -o $@

malloptr.o: mallocr.c
        $(CC) -DDEFINE_MALLOPT $(MALLOC_CFLAGS) -c $(srcdir)/mallocr.c -o $@

doc: $(CHEWOUT_FILES)
        cat $(srcdir)/stdlib.tex >> $(TARGETDOC)

clean mostlyclean:
        $(RM) $(OFILES) $(CHEWOUT_FILES) *~ *.ref *.def *.o.* lib.a

distclean maintainer-clean realclean: clean
        rm -f Makefile config.status

Makefile: Makefile.in $(host_makefile_frag) $(target_makefile_frag)
        $(SHELL) config.status

# to support SunOS VPATH
__adjust.o: __adjust.c
__exp10.o: __exp10.c
__ten_mu.o: __ten_mu.c
abort.o: abort.c
abs.o: abs.c
assert.o: assert.c
atexit.o: atexit.c
atof.o: atof.c
atoff.o: atoff.c
atoi.o: atoi.c
atol.o: atol.c
bsearch.o: bsearch.c
calloc.o: calloc.c
div.o: div.c
dtoa.o: dtoa.c mprec.h
dtoastub.o: dtoastub.c
ecvtbuf.o: ecvtbuf.c mprec.h
efgcvt.o: efgcvt.c
environ.o: environ.c
eprintf.o: eprintf.c
exit.o: exit.c
getenv.o: getenv.c
getopt.o: getopt.c
labs.o: labs.c
ldiv.o: ldiv.c
malign.o: malign.c
malloc.o: malloc.c
mblen.o: mblen.c
mbstowcs.o: mbstowcs.c
mbstowcs_r.o: mbstowcs_r.c
mbtowc.o: mbtowc.c
mbtowc_r.o: mbtowc_r.c mbctype.h
mlock.o: mlock.c
mprec.o: mprec.c mprec.h
msize.o: msize.c
mstats.o: mstats.c
mtrim.o: mtrim.c
putenv.o: putenv.c
qsort.o: qsort.c
rand.o: rand.c
rand_r.o : rand_r.c
realloc.o: realloc.c
setenv.o: setenv.c
strdup.o: strdup.c
strtod.o: strtod.c mprec.h
strtol.o: strtol.c
strtoul.o: strtoul.c
system.o: system.c
valloc.o: valloc.c
wcstombs.o: wcstombs.c
wcstombs_r.o: wcstombs_r.c
wctomb.o: wctomb.c
wctomb_r.o: wctomb_r.c mbctype.h

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

powered by: WebSVN 2.1.0

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