Commit d85bc3bf authored by Martin Hofmann's avatar Martin Hofmann

move Makefile and configurations to app directory

parent e0ed3c6b
......@@ -10,40 +10,40 @@ LOAD = $(BUILD)/load
SIM = $(BUILD)/sim
UCOS_SRCS = Micrium/Software/uC-CPU/cpu_core.c \
Micrium/Software/uCOS-III/Source/os_q.c \
Micrium/Software/uCOS-III/Source/os_stat.c \
Micrium/Software/uCOS-III/Source/os_mutex.c \
Micrium/Software/uCOS-III/Source/os_prio.c \
Micrium/Software/uCOS-III/Source/os_sem.c \
Micrium/Software/uCOS-III/Source/os_var.c \
Micrium/Software/uCOS-III/Source/os_core.c \
Micrium/Software/uCOS-III/Source/os_pend_multi.c \
Micrium/Software/uCOS-III/Source/os_dbg.c \
Micrium/Software/uCOS-III/Source/os_tick.c \
Micrium/Software/uCOS-III/Source/os_mem.c \
Micrium/Software/uCOS-III/Source/os_tmr.c \
Micrium/Software/uCOS-III/Source/os_flag.c \
Micrium/Software/uCOS-III/Source/os_msg.c \
Micrium/Software/uCOS-III/Source/os_task.c \
Micrium/Software/uCOS-III/Source/os_time.c \
Micrium/Software/uCOS-III/Source/os_int.c \
Micrium/Software/uCOS-III/Source/os_cfg_app.c \
Micrium/Software/uC-LIB/lib_mem.c \
Micrium/Software/uC-LIB/lib_math.c \
Micrium/Software/uC-LIB/lib_ascii.c \
Micrium/Software/uC-LIB/lib_str.c
ENTR_SRCS = Micrium/Software/Boards/THM/Generic/LCC/entry.s
BSP_SRCS = Micrium/Software/Boards/THM/Generic/BSP/bsp.c \
Micrium/Software/Boards/THM/Generic/BSP/bsp_timer.c
PORT_SRCS = Micrium/Software/uC-CPU/ECO32/LCC/cpu_a.s \
Micrium/Software/uCOS-III/Ports/ECO32/os_cpu_c.c \
Micrium/Software/uCOS-III/Ports/ECO32/LCC/os_cpu_a.s
APP_SRCS = app/app.c
UCOS_SRCS = ../Micrium/Software/uC-CPU/cpu_core.c \
../Micrium/Software/uCOS-III/Source/os_q.c \
../Micrium/Software/uCOS-III/Source/os_stat.c \
../Micrium/Software/uCOS-III/Source/os_mutex.c \
../Micrium/Software/uCOS-III/Source/os_prio.c \
../Micrium/Software/uCOS-III/Source/os_sem.c \
../Micrium/Software/uCOS-III/Source/os_var.c \
../Micrium/Software/uCOS-III/Source/os_core.c \
../Micrium/Software/uCOS-III/Source/os_pend_multi.c \
../Micrium/Software/uCOS-III/Source/os_dbg.c \
../Micrium/Software/uCOS-III/Source/os_tick.c \
../Micrium/Software/uCOS-III/Source/os_mem.c \
../Micrium/Software/uCOS-III/Source/os_tmr.c \
../Micrium/Software/uCOS-III/Source/os_flag.c \
../Micrium/Software/uCOS-III/Source/os_msg.c \
../Micrium/Software/uCOS-III/Source/os_task.c \
../Micrium/Software/uCOS-III/Source/os_time.c \
../Micrium/Software/uCOS-III/Source/os_int.c \
../Micrium/Software/uCOS-III/Source/os_cfg_app.c \
../Micrium/Software/uC-LIB/lib_mem.c \
../Micrium/Software/uC-LIB/lib_math.c \
../Micrium/Software/uC-LIB/lib_ascii.c \
../Micrium/Software/uC-LIB/lib_str.c
ENTR_SRCS = ../Micrium/Software/Boards/THM/Generic/LCC/entry.s
BSP_SRCS = ../Micrium/Software/Boards/THM/Generic/BSP/bsp.c \
../Micrium/Software/Boards/THM/Generic/BSP/bsp_timer.c
PORT_SRCS = ../Micrium/Software/uC-CPU/ECO32/LCC/cpu_a.s \
../Micrium/Software/uCOS-III/Ports/ECO32/os_cpu_c.c \
../Micrium/Software/uCOS-III/Ports/ECO32/LCC/os_cpu_a.s
APP_SRCS = app.c
OBJS = $(addsuffix .o,$(basename $(ENTR_SRCS))) \
$(addsuffix .o,$(basename $(BSP_SRCS))) \
......@@ -51,14 +51,13 @@ OBJS = $(addsuffix .o,$(basename $(ENTR_SRCS))) \
$(addsuffix .o,$(basename $(UCOS_SRCS))) \
$(addsuffix .o,$(basename $(APP_SRCS)))
INC_DIRS = Micrium/Software/uC-CPU \
Micrium/Software/uC-CPU/ECO32/LCC \
Micrium/Software/uCOS-III/Source \
Micrium/Software/uCOS-III/Ports/ECO32/LCC \
Micrium/Software/uC-LIB \
Micrium/Software/Boards/THM/Generic/BSP \
Template \
app
INC_DIRS = ../Micrium/Software/uC-CPU \
../Micrium/Software/uC-CPU/ECO32/LCC \
../Micrium/Software/uCOS-III/Source \
../Micrium/Software/uCOS-III/Ports/ECO32/LCC \
../Micrium/Software/uC-LIB \
../Micrium/Software/Boards/THM/Generic/BSP \
./
INCS = $(addprefix -I,$(INC_DIRS))
......@@ -78,7 +77,7 @@ $(BIN): $(EXE)
$(EXE): $(OBJS)
@echo " LD $@"
@$(LD) $(OBJS) -s app/standalone.lnk -m $(MAP) -o $(EXE)
@$(LD) $(OBJS) -s standalone.lnk -m $(MAP) -o $(EXE)
%.o: %.c
@echo " CC $@"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment