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