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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [libc/] [stdio/] [Makefile] - Blame information for rev 1766

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

Line No. Rev Author Line
1 1325 phoenix
# Makefile for uClibc
2
#
3
# Copyright (C) 2000 by Lineo, inc.
4
# Copyright (C) 2000,2001 Erik Andersen 
5
#
6
# This program is free software; you can redistribute it and/or modify it under
7
# the terms of the GNU Library General Public License as published by the Free
8
# Software Foundation; either version 2 of the License, or (at your option) any
9
# later version.
10
#
11
# This program is distributed in the hope that it will be useful, but WITHOUT
12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13
# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more
14
# details.
15
#
16
# You should have received a copy of the GNU Library General Public License
17
# along with this program; if not, write to the Free Software Foundation, Inc.,
18
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
#
20
# Derived in part from the Linux-8086 C library, the GNU C Library, and several
21
# other sundry sources.  Files within this library are copyright by their
22
# respective copyright holders.
23
 
24
TOPDIR=../../
25
include $(TOPDIR)Rules.mak
26
 
27
# Note: The *64.o objects are empty when compiled without large file support.
28
#
29
 
30
# Note: Use the libpthreads of: flockfile.o ftrylockfile.o funlockfile.o
31
#       Also, maybe move __fsetlocking.o as well?
32
 
33
MSRC = stdio.c
34
MOBJ = fclose.o fflush.o fopen.o freopen.o perror.o remove.o \
35
        setbuf.o setvbuf.o fgetc.o fgets.o fputc.o fputs.o \
36
        getc.o getchar.o gets.o putc.o putchar.o puts.o \
37
        ungetc.o fread.o fwrite.o fgetpos.o fseek.o fsetpos.o ftell.o \
38
        rewind.o clearerr.o feof.o ferror.o \
39
        fileno.o fdopen.o getw.o putw.o setbuffer.o setlinebuf.o fcloseall.o \
40
        fopen64.o freopen64.o ftello64.o fseeko64.o fsetpos64.o fgetpos64.o \
41
        __fbufsize.o __freading.o __fwriting.o __freadable.o __fwritable.o \
42
        __flbf.o __fpurge.o __fpending.o _flushlbf.o \
43
         fopencookie.o fmemopen.o open_memstream.o \
44
        __fsetlocking.o flockfile.o ftrylockfile.o funlockfile.o \
45
        _stdio_fopen.o _stdio_fread.o _stdio_fwrite.o _stdio_adjpos.o \
46
        _stdio_lseek.o _stdio_init.o \
47
        _stdio_fsfopen.o _stdio_fdout.o _uintmaxtostr.o _stdio_strerror_r.o \
48
        getdelim.o getline.o ctermid.o
49
 
50
MSRC2= printf.c
51
MOBJ2=  vsnprintf.o vdprintf.o vasprintf.o vprintf.o vsprintf.o \
52
        fprintf.o  snprintf.o  dprintf.o  asprintf.o  printf.o  sprintf.o \
53
        _store_inttype.o _load_inttype.o
54
 
55
MSRC3=scanf.c
56
MOBJ3=scanf.o sscanf.o fscanf.o vscanf.o vsscanf.o vfscanf.o \
57
        __scan_cookie.o __psfs_parse_spec.o __psfs_do_numeric.o
58
 
59
ifeq ($(UCLIBC_HAS_WCHAR),y)
60
        MOBJ += _wstdio_fwrite.o
61
        MOBJ2 += fwprintf.o wprintf.o swprintf.o vwprintf.o vswprintf.o \
62
                vfwprintf.o
63
        MOBJ3 += wscanf.o swscanf.o fwscanf.o vwscanf.o vswscanf.o vfwscanf.o
64
endif
65
 
66
ifneq ($(USE_OLD_VFPRINTF),y)
67
        MOBJ2 += _ppfs_init.o _ppfs_prepargs.o _ppfs_setargs.o \
68
                 _ppfs_parsespec.o vfprintf.o \
69
                 register_printf_function.o parse_printf_format.o
70
endif
71
 
72
ifeq ($(UCLIBC_HAS_FLOATS),y)
73
        MOBJ2 += _fpmaxtostr.o
74
endif
75
 
76
CSRC=popen.c tmpfile.c tmpnam.c tmpnam_r.c tempnam.c
77
ifeq ($(USE_OLD_VFPRINTF),y)
78
        CSRC += old_vfprintf.c
79
endif
80
COBJS=$(patsubst %.c,%.o, $(CSRC))
81
 
82
OBJS=$(MOBJ) $(MOBJ2) $(MOBJ3) $(COBJS)
83
 
84
all: $(OBJS) $(LIBC)
85
 
86
$(LIBC): ar-target
87
 
88
ar-target: $(OBJS)
89
        $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
90
 
91
$(MOBJ): $(MSRC)
92
        $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
93
        $(STRIPTOOL) -x -R .note -R .comment $*.o
94
 
95
$(MOBJ2): $(MSRC2)
96
        $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
97
        $(STRIPTOOL) -x -R .note -R .comment $*.o
98
 
99
$(MOBJ3): $(MSRC3)
100
        $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
101
        $(STRIPTOOL) -x -R .note -R .comment $*.o
102
 
103
$(COBJS): %.o : %.c
104
        $(CC) $(CFLAGS) -c $< -o $@
105
        $(STRIPTOOL) -x -R .note -R .comment $*.o
106
 
107
$(OBJ): Makefile
108
 
109
clean:
110
        $(RM) *.[oa] *~ core
111
 

powered by: WebSVN 2.1.0

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