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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [uclinux/] [uC-libc/] [misc/] [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 -fno-builtin -I../include
12
 
13
MSRC=aliases.c
14
MOBJ=abs.o remove.o creat.o bcopy.o bzero.o
15
# raise.o bcmp.o index.o rindex.o
16
 
17
 
18
ESRC=atexit.c
19
EOBJ=on_exit.o atexit.o __do_exit.o exit.o
20
 
21
GOBJ=atoi.o atol.o ltoa.o ltostr.o \
22
     ctype.o qsort.o bsearch.o rand.o lsearch.o getopt.o \
23
     itoa.o strtol.o crypt.o sleep.o mkstemp.o mktemp.o
24
 
25
UOBJ=getenv.o putenv.o popen.o system.o getcwd.o setenv.o \
26
     execl.o execv.o execlp.o execvp.o execvep.o
27
 
28
 
29
OBJ=$(MOBJ) $(EOBJ) $(GOBJ) $(UOBJ)
30
 
31
## No ELKS strtod() until BCC does 16 bit FP...
32
#ifneq ($(LIB_CPU),i86)
33
#OBJ+=strtod.o
34
#endif
35
 
36
CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS)
37
 
38
all: $(LIBC)
39
        @$(RM) $(OBJ)
40
 
41
$(LIBC): $(LIBC)($(OBJ))
42
 
43
$(LIBC)($(MOBJ)): $(MSRC)
44
        $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
45
        $(AR) $(ARFLAGS) $@ $*.o
46
 
47
$(LIBC)($(EOBJ)): $(ESRC)
48
        $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
49
        $(AR) $(ARFLAGS) $@ $*.o
50
 
51
clean:
52
        rm -f *.o libc.a
53
 
54
$(LIBC)(strtol.o): strtol.c
55
        $(CC) -c -ansi $(ARCH) $(CCFLAGS) $(DEFS) $*.c
56
        $(AR) $(ARFLAGS) $@ $*.o
57
 
58
$(LIBC)(strtod.o): strtod.c
59
        $(CC) -c -ansi $(ARCH) $(CCFLAGS) $(DEFS) $*.c
60
        $(AR) $(ARFLAGS) $@ $*.o
61
 
62
$(LIBC)(crypt.o): crypt.c
63
        $(CC) -c -ansi $(ARCH) $(CCFLAGS) $(DEFS) $*.c
64
        $(AR) $(ARFLAGS) $@ $*.o

powered by: WebSVN 2.1.0

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