view Makefile.cell @ 30:14f2ef87f9f2 default tip

remove unnecessary files
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 10 Dec 2010 11:29:41 +0900
parents e66ea5014aa1
children
line wrap: on
line source

include ./Makefile.def

SRCS_TMP = $(wildcard *.cc)
SRCS_EXCLUDE =  # 除外するファイルを書く
SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
OBJS = $(SRCS:.cc=.o)

TASK_DIR  = ppe
TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc)
TASK_SRCS_EXCLUDE = 
TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
TASK_OBJS = $(TASK_SRCS:.cc=.o)

CFLAGS += `sdl-config --cflags` `xml2-config --cflags`

LIBS +=  -lCerium -lCellManager  -lspe2 -lpthread -Wl,--gc-sections 
LIBS   += `sdl-config --libs` -lSDL_image -lGL `xml2-config --libs` 

.SUFFIXES: .cc .o .xml

.cc.o:
	$(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@

TARGET = dandy

all: $(TARGET) speobject

spe-main:
	ln -s ../Engine/spe-main .

$(TARGET): $(OBJS) $(TASK_OBJS)
	$(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)

speobject:
	cd spe; $(MAKE)

link:
	$(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS)

debug: $(TARGET)
	sudo ppu-gdb ./$(TARGET) 

clean:
	rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
	rm -f *~ \#*
	rm -f ppe/*~ ppe/\#*
	cd spe; $(MAKE) clean

-include depend.inc