summaryrefslogtreecommitdiff
path: root/sys/arch/wgrisc/stand/Makefile
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>1997-05-11 16:17:57 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>1997-05-11 16:17:57 +0000
commit7ca343aa7ca2c7d3146dd87dd7845b6d261fa505 (patch)
tree701a6a6de8038a80d9d7f880b4a5827a60b30802 /sys/arch/wgrisc/stand/Makefile
parent03246f32eb4aa4c396840499bbfb8d22619ab092 (diff)
Boot block for the wgrisc!
Diffstat (limited to 'sys/arch/wgrisc/stand/Makefile')
-rw-r--r--sys/arch/wgrisc/stand/Makefile37
1 files changed, 9 insertions, 28 deletions
diff --git a/sys/arch/wgrisc/stand/Makefile b/sys/arch/wgrisc/stand/Makefile
index a7dd6383200..9cef7d5d895 100644
--- a/sys/arch/wgrisc/stand/Makefile
+++ b/sys/arch/wgrisc/stand/Makefile
@@ -9,28 +9,23 @@ STAND= ../../stand
RELOC= 80200000
S= ../../..
+INCLUDES= -I. -I$S/arch -I$S -I$S/lib/libsa
+CPPFLAGS= ${INCLUDES} ${IDENT} -D_KERNEL -Dwgrisc
+CDIAGFLAGS= -Werror -Wall -Wno-uninitialized -Wno-format
+
DEFS= -DSTANDALONE -DDEBUG
-CFLAGS= -O2 ${INCPATH} ${DEFS}
+CFLAGS= ${DEBUG} -O2 ${CDIAGFLAGS} -mno-abicalls -mips1 -mcpu=r3000
AFLAGS= -O2 ${INCPATH} ${DEFS} -DLOCORE
-.PATH: ${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}
-.PATH: ${S}/stand ${S}/lib/libsa
-
-#INCPATH=-I. -I/sys
-INCPATH=-I${.CURDIR} -I${.CURDIR}/../.. -I${S} -I${S}/lib/libsa
-
### find out what to use for libkern
.include "$S/lib/libkern/Makefile.inc"
LIBKERN= ${KERNLIB}
-#KERNLIB= ${.CURDIR}/../compile/libkern.a
.include "$S/lib/libsa/Makefile.inc"
-LIBSA= ${SA_LIB}
# not yet: need to write libsa/Makefile.inc first
-LIBS= ${.OBJDIR}/libdrive.a ${.CURDIR}/libsa/libsa.a ${KERNLIB}
-#LIBS= libdrive.a libsa/libsa.a ../../libkern/obj/libkern.a
+LIBS= ${KERNLIB} ${SALIB}
DRIVERS= rz.c
SRCS= ${DRIVERS}
@@ -50,31 +45,21 @@ boot: ${LIBS}
#libsa/libsa.a::
# cd libsa; make
-${.OBJDIR}/libdrive.a: conf.o ${DRIVERS:.c=.o}
+${.OBJDIR}/libdrive.a: ${DRIVERS:.c=.o}
ar crv $@ $?
ranlib $@
# depend on DEFS
-#before other deps on bootconf.o
-bootconf.o: conf.o
- rm -f bootconf.c
- ln -s ${.CURDIR}/conf.c bootconf.c
- ${CC} -c ${CFLAGS} -DBOOT bootconf.c
- rm -f bootconf.c
-
# bootable from real disks
-boot: start.o boot.o bootconf.o filesystem.o ${LIBS}
- /usr/gnu/ld -N -Ttext ${RELOC} -e __start start.o boot.o bootconf.o filesystem.o ${LIBS} -o boot.elf
+boot: start.o boot.o filesystem.o ${LIBS}
+ ld -N -Ttext ${RELOC} -e __start start.o boot.o filesystem.o ${LIBS} -o boot.elf
elf2ecoff boot.elf boot
start.o: ${.CURDIR}/start.S
-# ${CPP} -E ${CFLAGS:M-[ID]*} -DLOCORE ${AINC} ${.IMPSRC} | \
-# ${AS} -o ${.TARGET}
-
mkboot: ${.CURDIR}/mkboot.c
${CC} ${CFLAGS} -o mkboot ${.CURDIR}/mkboot.c
@@ -88,9 +73,5 @@ clean::
install:
-depend: ${SRCS}
- mkdep ${INCPATH} ${DEFS} ${SRCS}
- cd libsa; make depend
-
.include <bsd.dep.mk>
.include <bsd.obj.mk>