view Makefile @ 4:c2ce9efe2a52

fix
author yutaka@localhost.localdomain
date Wed, 07 Apr 2010 17:47:12 +0900
parents 8b4d6bf8c43d
children 39d405bc46b7
line wrap: on
line source

PPETARGET = main
SPETARGET = spe-main

.SUFFIXES:.cc .o .h

PPECC  = g++
PPELIB = -lspe2
SPECC  = spu-g++
SPELIB =

INC = -I include

PPESRC  = $(shell ls ppe/*.cc)
SPESRC  = $(shell ls spe/*.cc)
TASKSRC = $(shell ls task/*.cc)

all: $(PPETARGET) $(SPETARGET)

$(PPETARGET): $(PPEOBJ)
	$(PPECC) $(PPELIB) $(INC) $(PPESRC) $(TASKSRC) -o $@

$(SPETARGET): $(SPEOBJ)
	$(SPECC) $(SPELIB) $(INC) $(SPESRC) $(TASKSRC) -o $@

clean:
	rm -f $(PPETARGET) $(SPETARGET)
	rm -f ppe/*.o spe/*.o task/*.o
	rm -f ppe/*~ spe/*~ ppe/*.~ spe/*.~ task/*.~