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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [OpenRISC_SIM_GCC/] [drivers/] [Makefile] - Rev 636

Go to most recent revision | Compare with Previous | Blame | View Log

include ../Makefile.inc

INCDIR  = -I../arch
CFLAGS  += $(INCDIR) -g

SRC_C = uart.c gpio.c
SRC_S = 

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

all: libdrivers.a

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

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

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

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

Go to most recent revision | 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.