summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2008-05-23 02:48:03 +0000
committerDimitri Sokolyuk <demon@dim13.org>2008-05-23 02:48:03 +0000
commitf1c0dc7e14109cd1b7d0bebdc114e005352f1dae (patch)
tree79572096eb58b0ee82382d17c83e2d0f78450426 /Makefile
parentf1e0ff8f952ad82eb337a523c78568983c84c5f7 (diff)
reboot with CRT turn off effect, GAS version, standallone
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
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 <bsd.prog.mk>