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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [regexp/] [Makefile] - Rev 1765

Compare with Previous | Blame | View Log


LIBC=../libc.a

CC=or32-elf-gcc
AR=or32-elf-ar
RANLIB=or32-elf-ranlib

CCFLAGS= -O2  -msoft-float -I../include

OBJ=regexp.o regsub.o
LSRC=regexp.c regsub.c regerror.c

CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS)

all: $(LIBC)
        @$(RM) $(OBJ)

$(LIBC): $(LIBC)($(OBJ))

transfer:
        -@rm -f ../include/regexp.h ../include/regmagic.h
        cp -p regexp.h regmagic.h ../include/.

$(LIBC)(regexp.o):      regexp.c regexp.h regmagic.h
        $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
        $(AR) $(ARFLAGS) $@ $*.o

$(LIBC)(regsub.o):      regsub.c regexp.h regmagic.h
        $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
        $(AR) $(ARFLAGS) $@ $*.o

clean:
        rm -f libc.a *.o core mon.out timer.t.h dMakefile dtr try timer

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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