Home | History | Annotate | Line # | Download | only in bootxxx
Makefile revision 1.3.2.4
      1  1.3.2.4  nathanw #	$NetBSD: Makefile,v 1.3.2.4 2002/06/20 03:38:20 nathanw Exp $
      2  1.3.2.2  nathanw 
      3  1.3.2.2  nathanw NOMAN=	# defined
      4  1.3.2.2  nathanw 
      5  1.3.2.2  nathanw # for OBJECT_FMT
      6  1.3.2.2  nathanw .include <bsd.own.mk>
      7  1.3.2.2  nathanw 
      8  1.3.2.2  nathanw PROG=	boot.atari
      9  1.3.2.2  nathanw #
     10  1.3.2.2  nathanw # Warning: bootxxx.c should be the first source!
     11  1.3.2.2  nathanw #
     12  1.3.2.2  nathanw SRCS=	bootxxx.c aout.c bsdstart.s elf.c filesystem.c sysinfo.c
     13  1.3.2.2  nathanw 
     14  1.3.2.2  nathanw STRIPFLAG=
     15  1.3.2.2  nathanw BINDIR=	/usr/mdec
     16  1.3.2.2  nathanw BINMODE=${NONBINMODE}
     17  1.3.2.2  nathanw 
     18  1.3.2.2  nathanw LIBCRT0=
     19  1.3.2.2  nathanw 
     20  1.3.2.2  nathanw DEFS=	-D_STANDALONE  -DHEAP_VARIABLE
     21  1.3.2.2  nathanw INCL=	-I. -I${S_LIBTOS} -I${S_MACHSA} -I${S_KERN} -I${S_SA} -I${S}
     22  1.3.2.2  nathanw 
     23  1.3.2.2  nathanw CPPFLAGS+=	${DEFS} ${INCL}
     24  1.3.2.2  nathanw CFLAGS+=	-fomit-frame-pointer -Wall -fno-function-cse -fstrength-reduce
     25  1.3.2.2  nathanw .if ${OBJECT_FMT} == "ELF"
     26  1.3.2.2  nathanw LDFLAGS=	-static -nostdlib -Wl,-x,-N,-e,bootxxx,-Ttext,${LOADADDR3}
     27  1.3.2.2  nathanw .else
     28  1.3.2.2  nathanw LDFLAGS=	-static -nostdlib -Wl,-N,-Ttext,${LOADADDR3}
     29  1.3.2.2  nathanw .endif
     30  1.3.2.2  nathanw 
     31  1.3.2.2  nathanw # logically src/sys
     32  1.3.2.2  nathanw S=${.CURDIR}/../../../..
     33  1.3.2.2  nathanw S_SA=${S}/lib/libsa
     34  1.3.2.2  nathanw S_KERN=${S}/lib/libkern
     35  1.3.2.2  nathanw S_MACHSA=${S}/arch/atari/stand/libsa
     36  1.3.2.2  nathanw S_LIBTOS=${S}/arch/atari/stand/tostools/libtos
     37  1.3.2.2  nathanw 
     38  1.3.2.3  nathanw S_MACHSAOBJ!=	cd ${S_MACHSA} && ${PRINTOBJDIR}
     39  1.3.2.3  nathanw 
     40  1.3.2.3  nathanw LIBSA=${S_MACHSAOBJ}/libsa.a
     41  1.3.2.2  nathanw 
     42  1.3.2.2  nathanw DPADD=	${LIBSA}
     43  1.3.2.2  nathanw LDADD=	${LIBSA}
     44  1.3.2.2  nathanw 
     45  1.3.2.2  nathanw beforeinstall:
     46  1.3.2.2  nathanw 	${OBJCOPY} -O binary ${PROG} ${PROG}X
     47  1.3.2.2  nathanw 	@mv -f ${PROG} ${PROG}XX
     48  1.3.2.2  nathanw 	@mv -f ${PROG}X ${PROG};
     49  1.3.2.2  nathanw 
     50  1.3.2.2  nathanw afterinstall:
     51  1.3.2.4  nathanw 	${INSTALL_FILE} -o root -g wheel -m 644 \
     52  1.3.2.4  nathanw 		${DESTDIR}${BINDIR}/${PROG} ${DESTDIR}/
     53  1.3.2.2  nathanw 	@mv -f ${PROG}XX ${PROG}
     54  1.3.2.2  nathanw 
     55  1.3.2.2  nathanw .s.o:
     56  1.3.2.2  nathanw 	${CPP} ${CPPFLAGS} ${.IMPSRC} | ${AS} ${ASFLAGS} -o ${.TARGET}
     57  1.3.2.2  nathanw 
     58  1.3.2.2  nathanw .c.o:
     59  1.3.2.2  nathanw 	${CC} ${CFLAGS} ${CPPFLAGS} -c ${.IMPSRC} -o ${.TARGET}
     60  1.3.2.2  nathanw 
     61  1.3.2.2  nathanw ${PROG}:
     62  1.3.2.2  nathanw 	${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDADD}
     63  1.3.2.2  nathanw 
     64  1.3.2.2  nathanw ${PROG}: ../xxboot/LOADADDR
     65  1.3.2.2  nathanw 
     66  1.3.2.2  nathanw .PATH: ${S_LIBTOS}
     67  1.3.2.2  nathanw 
     68  1.3.2.2  nathanw .include "../xxboot/LOADADDR"
     69  1.3.2.2  nathanw .include <bsd.prog.mk>
     70