[2/5] Makefile

R Sharada sharada at in.ibm.com
Thu Apr 14 00:13:01 EST 2005



CC=/usr/local/ppc64-4.0/bin/gcc
CFLAGS=-m64 --static -ffreestanding
#CFLAGS=-m32 --static -ffreestanding
BACKUP=../cpy/

kexec.cpio.gz: kexec.cpio
	gzip -c9 $< > $@
	gzip -l $@

kexec.cpio: loadem v2wrap fs2dt
	ls -1d $^ | cpio -C4 -ovHnewc > $@

loadem: loadem.c kexec-syscall.h

fs2dt: fs2dt.c

v2wrap.o: v2wrap.S

v2wrap.elf: v2wrap.o
	ld -Ttext=0 -e 0 -o v2wrap.elf v2wrap.o

v2wrap: v2wrap.elf
	objcopy -O binary v2wrap.elf v2wrap

clean:
	sed -ne 's/^\([^=:#]*\):.*/\1/p' Makefile | xargs rm -f

backup: clean
	ls | cpio -ovHnewc > $(BACKUP)tools.`date +%Y%m%d%H%M`



More information about the Linuxppc64-dev mailing list