1 # $NetBSD: Makefile,v 1.11 2003/01/03 15:34:43 lukem Exp $
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
12 .PATH
: ${.CURDIR
}/..
/common
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
28 CLEANFILES
+= ${BASE}1 ${BASE}2
30 ${PROG}: ${BASE}1 ${BASE}2
32 ${AOUT2HUX} -o
${.TARGET
} ${BASE}1 11000 ${BASE}2 22000
34 .
include <bsd.prog.mk
>
37 ${BASE}${i}: ${OBJS} ${LIBDOS}/libdos.a
${LIBIOCS}/libiocs.a
39 ${CC} -o
${.TARGET
} ${LDFLAGS} -Wl
,-Ttext
,${i}${i}000 ${OBJS} ${LDLIBS}
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