## #MODEL=fast #MODELEXT=${EPIPHANY_HOME}/bsps/current/${MODEL}.ldf ESXELIB=~/projects/esxelib #MODELEXT=${ESXELIB}/fastesx.ldf MODELEXT=${ESXELIB}/legacyesx.ldf CFLAGSEPI= -DESXEPIPHANY \ -I ${ESXELIB} \ -T ${MODELEXT} \ --specs=nosys.specs CFLAGSHOST= -I ${EPIPHANY_HOME}/tools/host/include \ -I ${ESXELIB} \ -L ${EPIPHANY_HOME}/tools/host/lib \ -g targets: \ e-hello.elf \ hello \ e-hello0.elf \ e-hello1.elf \ e-hello2.elf \ e-hello3.elf \ clean: rm *.o *.elf *.map hello # Epiphany hello e-hello.o: e-hello.cpp e-gcc ${CFLAGSEPI} \ -c -O3 e-hello.cpp e-hello.elf: e-hello.o ${ESXELIB}/esxecore.a \ ${ESXELIB}/fastesx.ldf e-gcc ${CFLAGSEPI} \ -o e-hello.elf \ e-hello.o \ ${ESXELIB}/esxecore.a \ -le-lib -lm -lstdc++ -lsupc++ -lc \ -Wl,-M >e-hello.map e-hello0.elf: e-hello.o e-gcc ${CFLAGSEPI} \ -o e-hello0.elf \ e-hello.o \ ${ESXELIB}/esxecore.a \ -le-lib -lm -lstdc++ -lsupc++ -lc \ -Wl,--defsym=_CORE_ROW_=_FIRST_CORE_ROW_+0 \ -Wl,--defsym=_CORE_COL_=_FIRST_CORE_COL_+0 e-hello1.elf: e-hello.o e-gcc ${CFLAGSEPI} \ -o e-hello1.elf \ e-hello.o \ ${ESXELIB}/esxecore.a \ -le-lib -lm -lstdc++ -lsupc++ -lc \ -Wl,--defsym=_CORE_ROW_=_FIRST_CORE_ROW_+0 \ -Wl,--defsym=_CORE_COL_=_FIRST_CORE_COL_+1 e-hello2.elf: e-hello.o e-gcc ${CFLAGSEPI} \ -o e-hello2.elf \ e-hello.o \ ${ESXELIB}/esxecore.a \ -le-lib -lm -lstdc++ -lsupc++ -lc \ -Wl,--defsym=_CORE_ROW_=_FIRST_CORE_ROW_+1 \ -Wl,--defsym=_CORE_COL_=_FIRST_CORE_COL_+0 e-hello3.elf: e-hello.o e-gcc ${CFLAGSEPI} \ -o e-hello3.elf \ e-hello.o \ ${ESXELIB}/esxecore.a \ -le-lib -lm -lstdc++ -lsupc++ -lc \ -Wl,--defsym=_CORE_ROW_=_FIRST_CORE_ROW_+1 \ -Wl,--defsym=_CORE_COL_=_FIRST_CORE_COL_+1 # Host Test Code hello.o: hello.cpp gcc ${CFLAGSHOST} -c hello.cpp hello: hello.o ${ESXELIB}/esxehost.a gcc ${CFLAGSHOST} -o hello \ hello.o \ ${ESXELIB}/esxehost.a \ -le-hal -le-loader -lstdc++ -lsupc++ -lpthread