OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [OpenRISC_SIM_GCC/] [arch/] [Makefile] - Rev 621

Compare with Previous | Blame | View Log

include ../Makefile.inc

CFLAGS  += -DIC=0 -DDC=0 -g

SRC_C = support.c interrupts.c
SRC_S = reset.S

OBJ_C = $(SRC_C:.c=.o)
OBJ_S = $(SRC_S:.S=.o)
OBJS  = $(OBJ_C) $(OBJ_S)

all: libarch.a

libarch.a: $(OBJS)
        @$(AR) cru $@ $(OBJ_C)
        @$(RANLIB) $@
        @echo Complete $@

%.o: %.c
        @echo "    CC $<"
        @$(CC) -c $(CFLAGS) $(INCDIRS) -o $@ $<

%.o: %.S
        @echo "    ASM $<"
        @$(CC) -c $(CFLAGS) $(INCDIRS) -o $@ $<

clean:
        @rm -f *.a *.o

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.