view Makefile @ 1:dcd83cefb980

check , ppe_only, show time , function add.
author yutaka@localhost.localdomain
date Tue, 06 Apr 2010 22:52:33 +0900
parents 68a98d68d62a
children 8b4d6bf8c43d
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)

all: $(PPETARGET) $(SPETARGET)

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

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

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