view TaskManager/Makefile.def @ 1439:20e935f170c1 draft

add Makefile for gpu
author Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
date Sat, 07 Apr 2012 11:43:05 +0900
parents e838c90ba498
children 840dee241530
line wrap: on
line source

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)

IMPL_GPU_DIR  = Gpu
IMPL_GPU_SRCS = $(wildcard $(IMPL_GPU_DIR)/*.cc)
IMPL_GPU_OBJS = $(IMPL_GPU_SRCS:.cc=.o)

ABIBIT = 64

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




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

INCLUDE = -I../include/TaskManager