From f1c0dc7e14109cd1b7d0bebdc114e005352f1dae Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Fri, 23 May 2008 02:48:03 +0000 Subject: reboot with CRT turn off effect, GAS version, standallone --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..81a22c8 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +# $Id$ + +PROG= reboot +SRCS= reboot.S +AFLAGS+=-I${.CURDIR} +LD= ld +LDFLAGS=-nostdlib -Ttext 0 -x -N -s -Bstatic -e start +NOMAN= + +INSTALL_STRIP= +SADIR=${.CURDIR}/.. +S= ${.CURDIR}/../../../.. + +${PROG}: $(OBJS) $(DPADD) + $(LD) $(LDFLAGS) -o $(PROG) $(OBJS) $(LDADD) + @size $(PROG) + @if [ -x ${.OBJDIR}/${PROG} ]; then \ + objcopy -O binary ${PROG} ${.OBJDIR}/.tmp;\ + mv -f ${.OBJDIR}/.tmp ${.OBJDIR}/${PROG}; \ + ls -l ${.OBJDIR}/${PROG}; \ + fi + +.include -- cgit v1.2.3