summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2004-09-05 02:39:31 +0000
committerDimitri Sokolyuk <demon@dim13.org>2004-09-05 02:39:31 +0000
commit3b9e194e9ea3268aa1383304215af4fc3984370b (patch)
treec76cbcfd0eb9ceb9f0f5cce2641f0bf22a3fee6e /Makefile
mbr boot manager initial import
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..b50225f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
+OC# $Id$
+#
+
+PROG= boot
+SRCS= boot.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>