Annotation of sys/arch/vax/boot/boot/Makefile, Revision 1.1.1.1
1.1 nbrk 1: # $OpenBSD: Makefile,v 1.6 2005/07/30 16:36:09 millert Exp $
2: # $NetBSD: Makefile,v 1.27 2002/04/07 07:00:25 matt Exp $
3:
4: S!= cd ${.CURDIR}/../../../../; pwd
5: NOMAN= # defined
6:
7: .include <bsd.own.mk>
8:
9: PROG= boot
10: WARNS?= 1
11: DEVS= hp.c ctu.c ra.c mfm.c if_qe.c if_le.c if_ze.c if_de.c if_ni.c
12: SRCS= srt0.S boot.c devopen.c conf.c autoconf.c netio.c rom.c romread.S \
13: urem.s udiv.s consio.c consio2.S str.S ${DEVS} findcpu.c
14:
15: CLEANFILES+=${PROG} ${PROG}.sym ${PROG}.mop
16: CPPFLAGS+=-DSUPPORT_BOOTPARAMS -DSUPPORT_DHCP -D_STANDALONE \
17: -DNO_MID_CHECK
18: #CPPFLAGS+=-DBOOTP_DEBUG -DNETIF_DEBUG -DETHER_DEBUG -DNFS_DEBUG -DDEV_DEBUG \
19: # -DRPC_DEBUG -DRARP_DEBUG -DPARANOID
20:
21: BINDIR=/usr/mdec
22:
23: #SA_AS= library
24: #SAMISCMAKEFLAGS=SA_USE_CREAD=yes SA_INCLUDE_NET=yes SA_USE_LOADFILE=yes
25: SA_ZLIB= yes
26: SAREL=
27: .include "${S}/lib/libsa/Makefile.inc"
28: LIBSA= ${SALIB}
29:
30: Z_AS= library
31: CFLAGS+=-I${S}/lib/libsa
32: .include "${S}/lib/libz/Makefile.inc"
33: LIBZ= ${ZLIB}
34:
35: #KERN_AS=library
36: #.include "${S}/lib/libkern/Makefile.inc"
37: #LIBKERN=${KERNLIB}
38:
39: # Only need these from libkern
40: .PATH: ${S}/lib/libkern
41: SRCS+= moddi3.c negdi2.c
42:
43: .if ${MACHINE} == "vax"
44: .PHONY: machine-links
45: beforedepend: machine-links
46: machine-links:
47: @rm -f machine && ln -s ${S}/arch/${MACHINE}/include machine
48: @rm -f ${MACHINE_ARCH} && ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH}
49: .NOPATH: machine ${MACHINE_ARCH}
50: CLEANFILES+= machine ${MACHINE_ARCH}
51: .endif
52:
53: #.if ${OBJECT_FMT} == "ELF"
54: #START=start
55: #.else
56: START=nisse
57: #.endif
58:
59: ${PROG}: machine-links ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
60: ${LD} -N -Ttext ${RELOC} -e ${START} -o ${PROG}.sym -Llib/sa -L. ${OBJS} \
61: ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN}
62: /usr/sbin/mopa.out ${PROG}.sym ${PROG}.mop
63: /bin/cp ${PROG}.sym ${PROG}
64: /usr/bin/strip ${PROG}
65: /usr/bin/size ${PROG}
66:
67: clean::
68: rm -f a.out [Ee]rrs mklog core *.core ${PROG} ${OBJS} ${LOBJS} \
69: ${CLEANFILES}
70:
71: #install:
72: # ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 555 \
73: # ${PROG} ${DESTDIR}${MDEC_DIR}/${PROG}
74:
75: .include <bsd.prog.mk>
CVSweb