view loadagent/Makefile @ 3:45bf8af5f061

libprintf brought in from older PPC/m68k code, but fucking GCC refuses to compile <varargs.h> - need to convert to Anshit C <stdarg.h>
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 29 Apr 2013 07:00:22 +0000
parents ddda170fa6f4
children 4a7a325ed1b6
line wrap: on
line source

CC=	arm-elf-gcc
CFLAGS=	-Os -fno-builtin
LD=	arm-elf-ld

OBJS=	crt0.o main.o serio.o serwait.o

TC_LIBS=`${CC} -print-file-name=libc.a` \
	`${CC} -print-file-name=libgcc.a`

all:	loadagent.elf

loadagent.elf:	${OBJS} loadagent.lds
	${LD} -N -T loadagent.lds -o $@ ${OBJS} \
		--start-group ${TC_LIBS} --end-group

clean:
	rm -f *.o *errs *core *.elf *.bin *.srec