26 lines
447 B
Makefile
26 lines
447 B
Makefile
# $FreeBSD$
|
|
|
|
DEFAULT_VECTOR= bfd_elf32_powerpc_vec
|
|
|
|
SRCS+= \
|
|
cpu-powerpc.c \
|
|
cpu-rs6000.c \
|
|
elf32.c \
|
|
elf32-gen.c \
|
|
elf32-ppc.c \
|
|
elf32-target.h \
|
|
elflink.c \
|
|
ppcboot.c \
|
|
#xcofflink.c
|
|
VECS+= ${DEFAULT_VECTOR} \
|
|
bfd_elf32_powerpcle_vec \
|
|
ppcboot_vec
|
|
|
|
.if ${TARGET_ARCH} == "powerpc"
|
|
CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR}
|
|
.endif
|
|
|
|
CLEANFILES+= elf32-target.h
|
|
elf32-target.h: elfxx-target.h
|
|
sed -e s/NN/32/g ${.ALLSRC} > ${.TARGET}
|