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/] [Makefile] - Diff between revs 620 and 649

Show entire file | Details | Blame | View Log

Rev 620 Rev 649
Line 13... Line 13...
        $(RTOS_SOURCE_DIR)/portable/MemMang/heap_2.c
        $(RTOS_SOURCE_DIR)/portable/MemMang/heap_2.c
 
 
APP_SOURCE_DIR  = ../Common/Minimal
APP_SOURCE_DIR  = ../Common/Minimal
 
 
APP_SRC = \
APP_SRC = \
 
        $(APP_SOURCE_DIR)/dynamic.c \
        $(APP_SOURCE_DIR)/integer.c \
        $(APP_SOURCE_DIR)/integer.c \
 
        $(APP_SOURCE_DIR)/blocktim.c \
 
        $(APP_SOURCE_DIR)/BlockQ.c \
        $(APP_SOURCE_DIR)/flash.c \
        $(APP_SOURCE_DIR)/flash.c \
        $(APP_SOURCE_DIR)/PollQ.c \
        $(APP_SOURCE_DIR)/comtest.c
        $(APP_SOURCE_DIR)/comtest.c \
 
        $(APP_SOURCE_DIR)/flop.c \
 
        $(APP_SOURCE_DIR)/semtest.c \
 
        $(APP_SOURCE_DIR)/dynamic.c \
 
        $(APP_SOURCE_DIR)/BlockQ.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
DEMO_SRC = main.c serial/serial.c ParTest/ParTest.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../Common/include \
                  -I$(RTOS_SOURCE_DIR)/portable/GCC/OpenRISC
                  -I$(RTOS_SOURCE_DIR)/portable/GCC/OpenRISC
 
 
Line 65... Line 63...
        @echo "    ASM $<"
        @echo "    ASM $<"
        @$(CC) -c $(CFLAGS) -o $@ $<
        @$(CC) -c $(CFLAGS) -o $@ $<
 
 
all: $(PROG).or32
all: $(PROG).or32
 
 
$(PROG).or32 : $(PORT_ASM_OBJ) $(PORT_OBJ) $(RTOS_OBJ) $(DEMO_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) $(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
        @echo Complete $@
        @echo Complete $@
 
 
arch: force_true
arch: force_true
        @(cd $@; make)
        @(cd $@; make)
Line 90... Line 88...
 
 
force_true:
force_true:
        @true
        @true
 
 
#-------------------------------------------------------------
#-------------------------------------------------------------
sim:
sim: $(PROG).or32
        or32-elf-sim --nosrv -f sim.cfg $(PROG).or32
        or32-elf-sim --nosrv -f sim.cfg $(PROG).or32
 
 
debug:
debug: $(PROG).or32
        xterm -e or32-elf-sim -f sim.cfg --srv=9999 &
        xterm -e or32-elf-sim -f sim.cfg --srv=9999 &
        xterm -e or32-elf-gdb $(PROG).or32 &
        xterm -e or32-elf-gdb $(PROG).or32 &
 
 
 
 

powered by: WebSVN 2.1.0

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