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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [OpenRISC_SIM_GCC/] [Makefile] - Diff between revs 668 and 800

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 668 Rev 800
Line 23... Line 23...
        $(APP_SOURCE_DIR)/comtest.c
        $(APP_SOURCE_DIR)/comtest.c
 
 
PORT_SRC = $(RTOS_SOURCE_DIR)/portable/GCC/OpenRISC/port.c
PORT_SRC = $(RTOS_SOURCE_DIR)/portable/GCC/OpenRISC/port.c
PORT_ASM = $(RTOS_SOURCE_DIR)/portable/GCC/OpenRISC/portasm.S
PORT_ASM = $(RTOS_SOURCE_DIR)/portable/GCC/OpenRISC/portasm.S
 
 
DEMO_SRC = main.c serial/serial.c ParTest/ParTest.c
DEMO_SRC = main.c serial/serial.c ParTest/ParTest.c dma/or32_dma.c
ARCH_ASM = ./arch/reset.S
ARCH_ASM = ./arch/reset.S
 
 
INC             = -I. -I../../Source/include -I./arch -I./drivers -I../Common/include \
INC             = -I. -I../../Source/include -I./arch -I./drivers -I./dma \
 
                  -I../Common/include \
                  -I$(RTOS_SOURCE_DIR)/portable/GCC/OpenRISC
                  -I$(RTOS_SOURCE_DIR)/portable/GCC/OpenRISC
 
 
CFLAGS  = $(WARNINGS) $(INC) \
CFLAGS  += $(WARNINGS) $(INC) $(DEBUG) \
                -I../Common/include $(DEBUG) \
 
                -D__GCC_OpenRISC__ \
                -D__GCC_OpenRISC__ \
                -fomit-frame-pointer -fno-strict-aliasing -fno-builtin
                -fomit-frame-pointer -fno-strict-aliasing -fno-builtin
 
 
GCCVER  = $(shell $(CC) --version | grep gcc | cut -d" " -f9)
GCCVER  = $(shell $(CC) --version | grep gcc | cut -d" " -f9)
CCPATH  = /home/dmw/works/or32/tools/or32-new
CCPATH  = /home/dmw/works/or32/tools/or32-new
Line 62... Line 62...
%.o: %.S
%.o: %.S
        @echo "    ASM $<"
        @echo "    ASM $<"
        @$(CC) -c $(CFLAGS) -o $@ $<
        @$(CC) -c $(CFLAGS) -o $@ $<
 
 
all: $(PROG).or32
all: $(PROG).or32
 
        @$(SIZE) $(PORT_ASM_OBJ) $(PORT_OBJ) $(RTOS_OBJ) $(DEMO_OBJ) $(APP_OBJ) $(PROG).or32
 
 
$(PROG).or32 : $(PORT_ASM_OBJ) $(PORT_OBJ) $(RTOS_OBJ) $(DEMO_OBJ) $(APP_OBJ) Makefile arch drivers
$(PROG).or32 : $(PORT_ASM_OBJ) $(PORT_OBJ) $(RTOS_OBJ) $(DEMO_OBJ) $(APP_OBJ) Makefile arch drivers
        @echo Link....
        @echo Link....
        @$(LD) -o $@ $(LDFLAGS) --start-group $(ARCH_ASM_OBJ) $(PORT_ASM_OBJ) $(PORT_OBJ) $(RTOS_OBJ) $(DEMO_OBJ) $(APP_OBJ) $(LIBS) --end-group
        @$(LD) -o $@ $(LDFLAGS) --start-group $(ARCH_ASM_OBJ) $(PORT_ASM_OBJ) $(PORT_OBJ) $(RTOS_OBJ) $(DEMO_OBJ) $(APP_OBJ) $(LIBS) --end-group
        @$(OBJDUMP) -S $(PROG).or32 >> $(PROG).asm
        @$(OBJDUMP) -S $(PROG).or32 >> $(PROG).asm
Line 76... Line 77...
 
 
drivers: force_true
drivers: force_true
        @(cd $@; make)
        @(cd $@; make)
 
 
clean :
clean :
        @rm -f $(PORT_ASM_OBJ) $(PORT_OBJ) $(RTOS_OBJ) $(DEMO_OBJ) $(APP_OBJ)
        @rm -f $(RTOS_OBJ) $(DEMO_OBJ) $(PORT_OBJ) $(PORT_ASM_OBJ)
        @rm -f rtosdemo.or32
        @rm -f rtosdemo.or32
        @rm -f rtosdemo.map
        @rm -f rtosdemo.map
        @rm -f rtosdemo.asm
        @rm -f rtosdemo.asm
        @rm -f eth0.tx
        @rm -f eth0.tx
        @(cd arch;make --no-print-directory clean)
        @(cd arch;make --no-print-directory clean)

powered by: WebSVN 2.1.0

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