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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [uclinux/] [uC-libc/] [stdio2/] [Makefile] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
# Copyright (C) 1995,1996 Robert de Bath 
2
# This file is part of the Linux-8086 C library and is distributed
3
# under the GNU Library General Public License.
4
 
5
LIBC=../libc.a
6
 
7
CC=or32-elf-gcc
8
AR=or32-elf-ar
9
RANLIB=or32-elf-ranlib
10
 
11
CCFLAGS= -O2  -msoft-float -I../include
12
 
13
ASRC=stdio.c
14
AOBJ=_stdio_init.o fputc.o fgetc.o fflush.o fgets.o gets.o fputs.o      \
15
     puts.o fread.o fwrite.o fopen.o fclose.o fseek.o rewind.o ftell.o  \
16
     setbuffer.o setvbuf.o ungetc.o
17
 
18
PSRC=printf.c
19
POBJ=printf.o sprintf.o fprintf.o vprintf.o vsprintf.o vfprintf.o
20
 
21
SSRC=scanf.c
22
SOBJ=scanf.o sscanf.o fscanf.o vscanf.o vsscanf.o vfscanf.o
23
 
24
OBJ= $(AOBJ) $(POBJ) $(SOBJ) dputs.o
25
 
26
CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS)
27
 
28
all: $(LIBC)
29
        @$(RM) $(OBJ)
30
 
31
$(LIBC): $(LIBC)($(OBJ))
32
 
33
$(LIBC)($(AOBJ)): $(ASRC)
34
        $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
35
        $(AR) $(ARFLAGS) $@ $*.o
36
 
37
$(LIBC)($(POBJ)): $(PSRC)
38
        $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
39
        $(AR) $(ARFLAGS) $@ $*.o
40
 
41
$(LIBC)($(SOBJ)): $(SSRC)
42
        $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
43
        $(AR) $(ARFLAGS) $@ $*.o
44
 
45
transfer:
46
        -@rm -f ../include/stdio.h
47
        cp -p stdio.h ../include/.
48
 
49
clean:
50
        rm -f *.o libc.a
51
 
52
$(LIBC)($(OBJ)): stdio.h
53
 

powered by: WebSVN 2.1.0

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