comparison Makefile @ 5:39d405bc46b7

add fb
author yutaka@localhost.localdomain
date Sat, 10 Apr 2010 16:29:22 +0900
parents c2ce9efe2a52
children
comparison
equal deleted inserted replaced
4:c2ce9efe2a52 5:39d405bc46b7
4 .SUFFIXES:.cc .o .h 4 .SUFFIXES:.cc .o .h
5 5
6 PPECC = g++ 6 PPECC = g++
7 PPELIB = -lspe2 7 PPELIB = -lspe2
8 SPECC = spu-g++ 8 SPECC = spu-g++
9 SPELIB = 9 SPELIB =
10 10
11 INC = -I include 11 INC = -I include
12 12
13 PPESRC = $(shell ls ppe/*.cc) 13 PPESRC = $(shell ls ppe/*.cc)
14 SPESRC = $(shell ls spe/*.cc) 14 SPESRC = $(shell ls spe/*.cc)
20 $(PPECC) $(PPELIB) $(INC) $(PPESRC) $(TASKSRC) -o $@ 20 $(PPECC) $(PPELIB) $(INC) $(PPESRC) $(TASKSRC) -o $@
21 21
22 $(SPETARGET): $(SPEOBJ) 22 $(SPETARGET): $(SPEOBJ)
23 $(SPECC) $(SPELIB) $(INC) $(SPESRC) $(TASKSRC) -o $@ 23 $(SPECC) $(SPELIB) $(INC) $(SPESRC) $(TASKSRC) -o $@
24 24
25 run:
26 sudo ./$(PPETARGET)
27
25 clean: 28 clean:
26 rm -f $(PPETARGET) $(SPETARGET) 29 rm -f $(PPETARGET) $(SPETARGET)
27 rm -f ppe/*.o spe/*.o task/*.o 30 rm -f ppe/*.o spe/*.o task/*.o
28 rm -f ppe/*~ spe/*~ ppe/*.~ spe/*.~ task/*.~ 31 rm -f ppe/*~ spe/*~ ppe/*.~ spe/*.~ task/*.~