Mercurial > hg > Members > kono > Cerium
view example/get_segment/spe/Makefile @ 439:95c0457a7d31
still overlay...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 25 Sep 2009 00:46:50 +0900 |
parents | fd44dbd049aa |
children | 7bae2117f239 |
line wrap: on
line source
include ../Makefile.def TARGET = ../spe-main SRCS = spe-main.o # SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) SPEOBJS = $(SRCS:.cc=.o) OVLOBJS = Hello.o Hello1.o LoadEntry.o CC = spu-g++ INCLUDE = -I../${CERIUM}/include/TaskManager -I. -I.. CFLAGS = $(INCLUDE) -O2 -g -Wall -fno-exceptions -fno-rtti#-DDEBUG # CFLAGS = -DNO_OVERLAY=1 $(CFLAGS) LIBS = -L../${CERIUM}/TaskManager -lspemanager -Wl,--gc-sections SPELIBS = -Wl,-T,$(LDSCRIPT) -Wl,-N $(LIBS) LDSCRIPT = ld.script LDSCRIPT_ORIG = ld.script.orig LDSCRIPT_ED = ld.script.ed all: $(TARGET) .SUFFIXES: .cc .o $(SPEOBJS): %.o : %.cc $(CC) $(CFLAGS) -c $< -o $@ $(OVLOBJS): %.o : %.cc $(CC) $(CFLAGS) -c $< -S -o $(<:.cc=.s) perl fixpic.pl $(<:.cc=.s) | $(CC) $(SPECFLAGS) -x assembler -c -o $@ - $(LDSCRIPT): $(LDSCRIPT_ED) cp $(LDSCRIPT_ORIG) $(LDSCRIPT) ed $(LDSCRIPT) < $(LDSCRIPT_ED) > /dev/null 2>&1 $(TARGET): $(SPEOBJS) $(OVLOBJS) $(LDSCRIPT) $(CC) -o $@ $(SPEOBJS) $(SPELIBS) clean: rm -f $(TARGET) $(SPEOBJS) $(OVLOBJS) rm -f *~ \#*