Cross Reference: Makefile
xref: /src/sys/arch/x68k/stand/loadbsd/Makefile
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/sys/arch/x68k/stand/loadbsd/
Makefile revision 1.2
11.2Sitohy#	$NetBSD: Makefile,v 1.2 1998/11/20 10:59:22 itohy Exp $
21.1Sitohy
31.1SitohyBASE=	loadbsd
41.1SitohyPROG=	${BASE}.x	# Human68k ".x" executable
51.1SitohySTRIPFLAG=		# not an a.out
61.1SitohyBINMODE=444		# not to be run on NetBSD
71.1SitohySRCS=	start.S loadbsd.c xprintf.c trampoline.S
81.1Sitohy
91.2SitohyNOMAN=	noman
101.1SitohyBINDIR=		/usr/mdec
111.1Sitohy
121.1Sitohy.PATH:	${.CURDIR}/../common
131.1Sitohy
141.2SitohyAOUT2HUX!=cd ${.CURDIR}/../aout2hux && echo `${MAKE} print-objdir`/aout2hux
151.2SitohyLIBDOS!=cd ${.CURDIR}/../libdos && ${MAKE} print-objdir
161.2SitohyLIBIOCS!=cd ${.CURDIR}/../libiocs && ${MAKE} print-objdir
171.1Sitohy
181.1SitohyCPPFLAGS=	-W -Wall -O -fomit-frame-pointer
191.1SitohyCPPFLAGS+=	-m68000 -Wa,-mc68000
201.1SitohyCPPFLAGS+=	-I${.CURDIR}/../libdos -I${.CURDIR}/../libiocs
211.1SitohyLDFLAGS=	-nostdlib -static -N
221.2SitohyLDLIBS=		-L${LIBDOS} -ldos -L${LIBIOCS} -liocs -L${DESTDIR}/usr/lib -lc
231.1SitohyDPADD+=		${AOUT2HUX}
241.1Sitohy
251.1SitohyCLEANFILES+=	${BASE}1 ${BASE}2
261.1Sitohy
271.1Sitohy${PROG}: ${BASE}1 ${BASE}2
281.1Sitohy	${AOUT2HUX} -o ${.TARGET} ${BASE}1 11000 ${BASE}2 22000
291.1Sitohy
301.1Sitohy.include <bsd.prog.mk>
311.1Sitohy
321.1Sitohy.for i in 1 2
331.1Sitohy${BASE}${i}:	${OBJS} ${LIBDOS}/libdos.a ${LIBIOCS}/libiocs.a
341.1Sitohy	${CC} -o ${.TARGET} ${LDFLAGS} -Wl,-T${i}${i}000 ${OBJS} ${LDLIBS}
351.1Sitohy.endfor
36

Indexes created Thu Nov 27 23:09:41 GMT 2025