Home | History | Annotate | Line # | Download | only in loadbsd
Makefile revision 1.1
      1  1.1  itohy #	$NetBSD: Makefile,v 1.1 1998/09/01 19:55:32 itohy Exp $
      2  1.1  itohy 
      3  1.1  itohy BASE=	loadbsd
      4  1.1  itohy PROG=	${BASE}.x	# Human68k ".x" executable
      5  1.1  itohy STRIPFLAG=		# not an a.out
      6  1.1  itohy BINMODE=444		# not to be run on NetBSD
      7  1.1  itohy SRCS=	start.S loadbsd.c xprintf.c trampoline.S
      8  1.1  itohy MAN=	${BASE}.8
      9  1.1  itohy 
     10  1.1  itohy BINDIR=		/usr/mdec
     11  1.1  itohy MANSUBDIR=	/${MACHINE}
     12  1.1  itohy 
     13  1.1  itohy .PATH:	${.CURDIR}/../common
     14  1.1  itohy 
     15  1.1  itohy AOUT2HUX!=cd ${.CURDIR}/../aout2hux; echo `${MAKE} print-objdir`/aout2hux
     16  1.1  itohy LIBDOS!=cd ${.CURDIR}/../libdos; ${MAKE} print-objdir
     17  1.1  itohy LIBIOCS!=cd ${.CURDIR}/../libiocs; ${MAKE} print-objdir
     18  1.1  itohy 
     19  1.1  itohy CPPFLAGS=	-W -Wall -O -fomit-frame-pointer
     20  1.1  itohy CPPFLAGS+=	-m68000 -Wa,-mc68000
     21  1.1  itohy CPPFLAGS+=	-I${.CURDIR}/../libdos -I${.CURDIR}/../libiocs
     22  1.1  itohy LDFLAGS=	-nostdlib -static -N
     23  1.1  itohy LDLIBS=		-L${LIBDOS} -ldos -L${LIBIOCS} -liocs -lc
     24  1.1  itohy DPADD+=		${AOUT2HUX}
     25  1.1  itohy 
     26  1.1  itohy CLEANFILES+=	${BASE}1 ${BASE}2
     27  1.1  itohy 
     28  1.1  itohy ${PROG}: ${BASE}1 ${BASE}2
     29  1.1  itohy 	${AOUT2HUX} -o ${.TARGET} ${BASE}1 11000 ${BASE}2 22000
     30  1.1  itohy 
     31  1.1  itohy .include <bsd.prog.mk>
     32  1.1  itohy 
     33  1.1  itohy .for i in 1 2
     34  1.1  itohy ${BASE}${i}:	${OBJS} ${LIBDOS}/libdos.a ${LIBIOCS}/libiocs.a
     35  1.1  itohy 	${CC} -o ${.TARGET} ${LDFLAGS} -Wl,-T${i}${i}000 ${OBJS} ${LDLIBS}
     36  1.1  itohy .endfor
     37