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] - Blame information for rev 799

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

Line No. Rev Author Line
1 584 jeremybenn
include ../Makefile.inc
2
 
3
INCDIR  = -I../arch
4 621 filepang
CFLAGS  += $(INCDIR) -g
5 584 jeremybenn
 
6 623 filepang
SRC_C = uart.c gpio.c
7 620 jeremybenn
SRC_S =
8
 
9
OBJ_C = $(SRC_C:.c=.o)
10
OBJ_S = $(SRC_S:.S=.o)
11
OBJS  = $(OBJ_C) $(OBJ_S)
12
 
13 584 jeremybenn
all: libdrivers.a
14
 
15 620 jeremybenn
libdrivers.a: $(OBJS)
16
        @$(AR) cru $@ $(OBJS)
17 584 jeremybenn
        @$(RANLIB) $@
18
        @echo Complete $@
19
 
20
%.o: %.c
21
        @echo "    CC $<"
22
        @$(CC) -c $(CFLAGS) $(INCDIRS) -o $@ $<
23
 
24
%.o: %.S
25
        @echo "    CC $<"
26
        @$(CC) -c $(CFLAGS) $(INCDIRS) -o $@ $<
27
 
28
clean:
29
        @rm -f *.a *.o

powered by: WebSVN 2.1.0

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