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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [string/] [Makefile] - Blame information for rev 1775

Go to most recent revision | 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
SSRC=string.c
14
SOBJ=strlen.o strcat.o strcpy.o strcmp.o strncat.o strncpy.o strncmp.o  \
15
    strchr.o strrchr.o strdup.o memcpy.o memccpy.o memchr.o memset.o    \
16
    memcmp.o memmove.o movedata.o
17
 
18
OBJ=$(SOBJ) strpbrk.o strsep.o strstr.o strtok.o strcspn.o      \
19
    strspn.o strcasecmp.o strncasecmp.o
20
 
21
CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS)
22
 
23
all: $(LIBC)
24
        @$(RM) $(OBJ)
25
 
26
$(LIBC): $(LIBC)($(OBJ))
27
 
28
$(LIBC)($(SOBJ)): $(SSRC)
29
        $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
30
        $(AR) $(ARFLAGS) $@ $*.o
31
 
32
transfer:
33
        -@rm -f ../include/string.h
34
        cp -p string.h ../include/.
35
 
36
clean:
37
        rm -f *.o

powered by: WebSVN 2.1.0

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