2005-04-21 16:53:53 +02:00
|
|
|
# Makefile for the boot monitor package.
|
|
|
|
|
2010-05-19 15:24:15 +02:00
|
|
|
# XXX: Can only be built with ACK currently
|
|
|
|
CC:=${CC:C/^gcc/cc/}
|
|
|
|
COMPILER_TYPE:=ack
|
|
|
|
|
2010-06-22 17:45:53 +02:00
|
|
|
PROGS= bootblock cdbootblock boot masterboot \
|
|
|
|
jumpboot installboot edparams dosboot mkfile
|
2010-05-12 18:28:54 +02:00
|
|
|
|
|
|
|
SRCS.bootblock= bootblock.s
|
|
|
|
CPPFLAGS.bootblock.s= ${I86CPPFLAGS}
|
|
|
|
LDFLAGS.bootblock= ${I86LDFLAGS}
|
|
|
|
BINDIR.bootblock= /usr/mdec
|
|
|
|
MAN.bootblock=
|
|
|
|
|
|
|
|
SRCS.cdbootblock= cdbootblock.s
|
|
|
|
CPPFLAGS.cdbootblock.s= ${I86CPPFLAGS} -DCDBOOT
|
|
|
|
LDFLAGS.cdbootblock= ${I86LDFLAGS}
|
|
|
|
BINDIR.cdbootblock= /usr/mdec
|
|
|
|
MAN.cdbootblock=
|
|
|
|
|
2010-06-22 17:45:53 +02:00
|
|
|
SRCS.boot= boothead.s boot.c bootimage.c rawfs86.c
|
2010-05-12 18:28:54 +02:00
|
|
|
CPPFLAGS.boothead.s= ${I86CPPFLAGS}
|
|
|
|
CPPFLAGS.boot.c= ${I86CPPFLAGS}
|
|
|
|
CPPFLAGS.bootimage.c= ${I86CPPFLAGS}
|
|
|
|
CPPFLAGS.rawfs86.c= ${I86CPPFLAGS}
|
2010-06-22 17:45:53 +02:00
|
|
|
LDFLAGS.boot= ${I86LDFLAGS}
|
|
|
|
DPADD.boot= ${LIBSYS}
|
|
|
|
LDADD.boot= -lsys
|
|
|
|
BINDIR.boot= /usr/mdec
|
2010-05-12 18:28:54 +02:00
|
|
|
MAN.boot=
|
|
|
|
|
|
|
|
SRCS.masterboot= masterboot.s
|
|
|
|
CPPFLAGS.masterboot.s= ${I86CPPFLAGS}
|
|
|
|
LDFLAGS.masterboot= ${I86LDFLAGS}
|
|
|
|
BINDIR.masterboot= /usr/mdec
|
|
|
|
MAN.masterboot=
|
|
|
|
|
|
|
|
SRCS.jumpboot= jumpboot.s
|
|
|
|
CPPFLAGS.jumpboot.s= ${I86CPPFLAGS}
|
|
|
|
LDFLAGS.jumpboot= ${I86LDFLAGS}
|
|
|
|
BINDIR.jumpboot= /usr/mdec
|
|
|
|
MAN.jumpboot=
|
|
|
|
|
|
|
|
SRCS.installboot= installboot.c rawfs.c
|
|
|
|
BINDIR.installboot= /usr/bin
|
|
|
|
MAN.installboot=
|
|
|
|
|
|
|
|
SRCS.edparams= edparams.c rawfs.c
|
|
|
|
CPPFLAGS.edparams.c= -DUNIX
|
|
|
|
BINDIR.edparams= /usr/bin
|
|
|
|
MAN.edparams=
|
|
|
|
|
2010-06-22 17:45:53 +02:00
|
|
|
SRCS.dosboot= doshead.s dosboot.o bootimage.o rawfs86.o
|
|
|
|
CPPFLAGS.dosboot.c= -DDOS $(I86CPPFLAGS)
|
|
|
|
LDADD.dosboot= ${I86LDFLAGS} -lsys
|
|
|
|
BINDIR.dosboot= /usr/mdec
|
|
|
|
CPPFLAGS.doshead.s= -mi386
|
|
|
|
MAN.dosboot=
|
|
|
|
|
|
|
|
SRCS.mkfile= mkfhead.s mkfile.c
|
|
|
|
CPPFLAGS.mkfile.s= ${I86CPPFLAGS}
|
|
|
|
LDADD.mkfile= ${I86LDFLAGS} -lsys
|
|
|
|
BINDIR.mkfile= /usr/mdec
|
|
|
|
MAN.mkfile=
|
|
|
|
|
2010-05-12 18:28:54 +02:00
|
|
|
rawfs86.c: rawfs.c
|
2005-04-21 16:53:53 +02:00
|
|
|
ln -f rawfs.c rawfs86.c
|
|
|
|
|
2010-05-12 18:28:54 +02:00
|
|
|
edparams.c: boot.c
|
2005-04-21 16:53:53 +02:00
|
|
|
ln -f boot.c edparams.c
|
|
|
|
|
2010-06-22 17:45:53 +02:00
|
|
|
dosboot.c: boot.c
|
|
|
|
ln -f boot.c dosboot.c
|
|
|
|
|
2010-05-12 18:28:54 +02:00
|
|
|
cdbootblock.s: bootblock.s
|
|
|
|
ln -f bootblock.s cdbootblock.s
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-06-22 17:45:53 +02:00
|
|
|
mkfile.com: mkfile
|
|
|
|
|
|
|
|
boot.com: dosboot
|
|
|
|
./a.out2com dosboot boot.com
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-05-12 18:28:54 +02:00
|
|
|
CPPFLAGS= -I${MINIXSRCDIR}
|
|
|
|
AFLAGS= -I${MINIXSRCDIR}
|
|
|
|
I86CPPFLAGS= -mi86 -Was-ncc
|
|
|
|
I86LDFLAGS= -mi86 -Was-ncc -.o -com
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-05-12 18:28:54 +02:00
|
|
|
STRIPFLAG= -s
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-06-22 17:45:53 +02:00
|
|
|
CLEANFILES+= rawfs86.c edparams.c cdbootblock.s dosboot.c
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-05-12 18:28:54 +02:00
|
|
|
.include <minix.prog.mk>
|