KERN_DIR = kernel

KERN_MAIN_SRCS = $(KERN_DIR)/main.cc
KERN_MAIN_OBJS = $(KERN_MAIN_SRCS:.cc=.o)

KERN_PPE_DIR  = $(KERN_DIR)/ppe
KERN_PPE_SRCS = $(wildcard $(KERN_PPE_DIR)/*.cc)
KERN_PPE_OBJS = $(KERN_PPE_SRCS:.cc=.o)

KERN_SCHED_DIR  = $(KERN_DIR)/schedule
KERN_SCHED_SRCS = $(wildcard $(KERN_SCHED_DIR)/*.cc)
KERN_SCHED_OBJS = $(KERN_SCHED_SRCS:.cc=.o)

KERN_SYSTASK_DIR  = $(KERN_DIR)/sys_task
KERN_SYSTASK_SRCS = $(wildcard $(KERN_SYSTASK_DIR)/*.cc)
KERN_SYSTASK_OBJS = $(KERN_SYSTASK_SRCS:.cc=.o)

KERN_MEM_DIR  = $(KERN_DIR)/memory
KERN_MEM_SRCS = $(wildcard $(KERN_MEM_DIR)/*.cc)
KERN_MEM_OBJS = $(KERN_MEM_SRCS:.cc=.o)

IMPL_FIFO_DIR  = Fifo
IMPL_FIFO_SRCS = $(wildcard $(IMPL_FIFO_DIR)/*.cc)
IMPL_FIFO_OBJS = $(IMPL_FIFO_SRCS:.cc=.o)

IMPL_CELL_DIR  = Cell
IMPL_CELL_SRCS = $(IMPL_FIFO_SRCS) $(wildcard $(IMPL_CELL_DIR)/*.cc)
IMPL_CELL_OBJS = $(IMPL_CELL_SRCS:.cc=.o)

ABIBIT = 32

OPT = -g -O9 -DMAIL_QUEUE
# -DEARLY_TOUCH
# -g -DTASK_LIST_MAIL -O9

CC     = g++   
CFLAGS = -Wall `sdl-config --cflags` -m$(ABIBIT)   $(OPT)
LIBS   =  -m$(ABIBIT)

INCLUDE = -I../include/TaskManager
