Fix up mix of man(7)/mdoc(7).
[netbsd-mini2440.git] / sys / arch / x68k / stand / loadbsd / Makefile
blob89e5aa6cc0e3315d7ab50f821998e5e99d9b81fb
1 # $NetBSD: Makefile,v 1.11 2003/01/03 15:34:43 lukem Exp $
3 BASE= loadbsd
4 PROG= ${BASE}.x # Human68k ".x" executable
5 STRIPFLAG= # not an a.out
6 BINMODE=444 # not to be run on NetBSD
7 SRCS= start.S loadbsd.c xprintf.c trampoline.S
9 NOMAN= # defined
10 BINDIR= /usr/mdec
12 .PATH: ${.CURDIR}/../common
14 .include <bsd.own.mk>
16 AOUT2HUXDIR!= cd ${.CURDIR}/../aout2hux && ${PRINTOBJDIR}
17 AOUT2HUX= ${AOUT2HUXDIR}/aout2hux
18 LIBDOS!= cd ${.CURDIR}/../libdos && ${PRINTOBJDIR}
19 LIBIOCS!= cd ${.CURDIR}/../libiocs && ${PRINTOBJDIR}
21 CPPFLAGS= -W -Wall -O -fomit-frame-pointer
22 CPPFLAGS+= -m68000 -Wa,-mc68000
23 CPPFLAGS+= -I${.CURDIR}/../libdos -I${.CURDIR}/../libiocs
24 LDFLAGS= -nostdlib -static -N
25 LDLIBS= -L${LIBDOS} -ldos -L${LIBIOCS} -liocs -L${DESTDIR}/usr/lib -lc
26 DPADD+= ${AOUT2HUX}
28 CLEANFILES+= ${BASE}1 ${BASE}2
30 ${PROG}: ${BASE}1 ${BASE}2
31 ${_MKTARGET_LINK}
32 ${AOUT2HUX} -o ${.TARGET} ${BASE}1 11000 ${BASE}2 22000
34 .include <bsd.prog.mk>
36 .for i in 1 2
37 ${BASE}${i}: ${OBJS} ${LIBDOS}/libdos.a ${LIBIOCS}/libiocs.a
38 ${_MKTARGET_LINK}
39 ${CC} -o ${.TARGET} ${LDFLAGS} -Wl,-Ttext,${i}${i}000 ${OBJS} ${LDLIBS}
40 .endfor
42 release: check_RELEASEDIR
43 ${HOST_INSTALL_FILE} -m ${NONBINMODE} ${PROG} \
44 ${RELEASEDIR}/${MACHINE}/installation/misc
45 ${HOST_INSTALL_FILE} -m ${NONBINMODE} \
46 ${DESTDIR}/usr/share/man/cat8/x68k/loadbsd.0 \
47 ${RELEASEDIR}/${MACHINE}/installation/misc