URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 199 |
Rev 1765 |
# Copyright (C) 1995,1996 Robert de Bath
|
# Copyright (C) 1995,1996 Robert de Bath
|
# This file is part of the Linux-8086 C library and is distributed
|
# This file is part of the Linux-8086 C library and is distributed
|
# under the GNU Library General Public License.
|
# under the GNU Library General Public License.
|
|
|
LIBC=../libc.a
|
LIBC=../libc.a
|
|
|
CC=or32-elf-gcc
|
CC=or32-elf-gcc
|
AR=or32-elf-ar
|
AR=or32-elf-ar
|
RANLIB=or32-elf-ranlib
|
RANLIB=or32-elf-ranlib
|
|
|
CCFLAGS= -O2 -msoft-float -fno-builtin -I../include
|
CCFLAGS= -O2 -msoft-float -fno-builtin -I../include
|
|
|
ASRC=addr.c
|
ASRC=addr.c
|
AOBJ=inet_aton.o inet_addr.o inet_ntoa.o
|
AOBJ=inet_aton.o inet_addr.o inet_ntoa.o
|
# raise.o bcmp.o index.o rindex.o
|
# raise.o bcmp.o index.o rindex.o
|
|
|
#UOBJ= getenv.o putenv.o popen.o system.o getcwd.o execl.o execv.o execlp.o execvp.o
|
#UOBJ= getenv.o putenv.o popen.o system.o getcwd.o execl.o execv.o execlp.o execvp.o
|
#setenv.o
|
#setenv.o
|
|
|
|
|
OBJ=$(AOBJ)
|
OBJ=$(AOBJ)
|
|
|
CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS)
|
CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS)
|
|
|
all: $(LIBC)
|
all: $(LIBC)
|
@$(RM) $(OBJ)
|
@$(RM) $(OBJ)
|
|
|
$(LIBC): $(LIBC)($(OBJ))
|
$(LIBC): $(LIBC)($(OBJ))
|
|
|
$(LIBC)($(AOBJ)): $(ASRC)
|
$(LIBC)($(AOBJ)): $(ASRC)
|
$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
|
$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
|
$(AR) $(ARFLAGS) $@ $*.o
|
$(AR) $(ARFLAGS) $@ $*.o
|
|
|
clean:
|
clean:
|
rm -f *.o libc.a
|
rm -f *.o libc.a
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.