[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / arch / amiga / stand / bootblock / boot

Annotation of src/sys/arch/amiga/stand/bootblock/boot/Makefile, Revision 1.33

1.33    ! mhitch      1: #      $NetBSD: Makefile,v 1.32 2003/08/24 15:11:18 he Exp $
1.1       is          2:
1.2       is          3: ### what we need:
1.1       is          4:
1.10      is          5: DIR_TOP=       ${.CURDIR}/../../../../..
                      6: DIR_SA =       ${DIR_TOP}/lib/libsa
1.24      mhitch      7: DIR_LIBZ =     ${DIR_TOP}/lib/libz
1.10      is          8: DIR_KERN=      ${DIR_TOP}/lib/libkern
                      9: DIR_KERN_MD=   ${DIR_TOP}/lib/libkern/arch/$(MACHINE_ARCH)
1.1       is         10:
1.24      mhitch     11: .PATH:  $(DIR_SA) ${DIR_LIBZ} $(DIR_KERN) $(DIR_KERN_MD)
1.1       is         12:
1.2       is         13: # prefer our assembler versions over assembler, and assembler over C:
1.1       is         14:
1.2       is         15: .SUFFIXES:
                     16: .SUFFIXES: .out .o .po .so .s .S .c .cc .C .f .y .l .ln .m4 .sh
1.1       is         17:
1.24      mhitch     18: FILES= boot.amiga
1.13      veego      19: BINDIR=/usr/mdec
1.1       is         20:
1.15      is         21: COBJS = main.o console.o xd.o twiddle.o bzero.o gets.o
1.19      is         22: COBJS+=  lseek.o open.o read.o close.o dev.o errno.o
1.27      mhitch     23: COBJS+=  ufs.o ustarfs.o panic.o vers.o files.o
1.30      mhitch     24: COBJS+=  divdi3.o moddi3.o qdivrem.o snprintf.o
1.1       is         25:
1.23      mhitch     26: SOBJS = alloc.o ashrdi3.o ashldi3.o bcopy.o muldi3.o printf.o startit.o
1.24      mhitch     27: SOBJS += strlen.o strcmp.o memcmp.o strerror.o sprintf.o subr_prf.o
1.32      he         28: SOBJS += libstubs.o memcmp.o memmove.o memset.o strncmp.o
1.1       is         29:
1.2       is         30: OBJS=  $(SOBJS) $(COBJS)
1.1       is         31:
1.17      is         32: DEFS = -D_STANDALONE -DINSECURE
1.24      mhitch     33: DEFS += -D__INTERNAL_LIBSA_CREAD
                     34: SOBJS += cread.o
1.31      he         35: SOBJS += crc32.o inflate.o infblock.o infcodes.o inftrees.o # XXX need libz!!!
1.24      mhitch     36: SOBJS += inffast.o infutil.o
1.25      aymeric    37: #DEFS += -DBOOT_ELF32 -DBOOT_AOUT
1.24      mhitch     38: SOBJS += loadfile.o loadfile_aout.o loadfile_elf32.o
                     39:
                     40: NETBSD_VERS!=  sh ${.CURDIR}/../../../../../conf/osrelease.sh
                     41: DEFS+= -DNETBSD_VERS='"${NETBSD_VERS}"'
1.1       is         42:
1.2       is         43: ### main target: ###
1.1       is         44:
1.24      mhitch     45: realall: machine m68k ${FILES}
                     46:
                     47: CLEANFILES += boot.amiga x.out xxstart.o libboot.a vers.c machine m68k
1.1       is         48:
1.18      tron       49: .include <bsd.prog.mk>
                     50:
1.2       is         51: ### special  rules for bootblocks ###
1.1       is         52:
1.24      mhitch     53: INCPATH = -nostdinc -I${DIR_TOP} -I${DIR_TOP}/lib/libsa -I${.CURDIR}
                     54: INCPATH += -I${.CURDIR}/../../.. -I${.OBJDIR}
                     55: INCPATH += -I${.CURDIR}/../aout2bb -I${DESTDIR}/usr/include
1.10      is         56:
1.2       is         57: AFLAGS += -m68030 -l
1.10      is         58: CAFLAGS += -Wa,-l -Wa,-m68030 ${INCPATH}
1.1       is         59:
1.33    ! mhitch     60: COPTIM= -Os -fomit-frame-pointer -fcse-follow-jumps -fcse-skip-blocks  -Wa,-l -m68060 -Wa,-m68030
1.29      thorpej    61: CFLAGS= -ffreestanding ${COPTIM} ${INCPATH} ${DEFS} -Wall #-Wstrict-prototypes
1.1       is         62:
1.2       is         63: .c.o:
1.18      tron       64:        ${CC} ${CFLAGS} -S $< -o $*.s
                     65:        ${TXLT} < $*.s | ${AS} ${AFLAGS} -o $*.o
1.2       is         66:        rm $*.s
1.1       is         67:
1.18      tron       68: .s.o: ; ${CC} ${CAFLAGS} ${COPTS} -x assembler-with-cpp -o $@ -c $<
1.1       is         69:
1.18      tron       70: .S.o: ; ${CC} ${CAFLAGS} ${COPTS} -x assembler-with-cpp -o $@ -c $<
1.1       is         71:
1.24      mhitch     72: boot.amiga: x.out
1.27      mhitch     73:        ${RELOC2BB} -S x.out $@ || ${NM} -u x.out
1.2       is         74:
                     75: x.out: xxstart.o libboot.a
1.18      tron       76:        ${LD} ${LDFLAGS} -r -dc -e _start -o $@ $>
1.22      mhitch     77:        ${SIZE} $@
                     78:        ${NM} -u $@
1.2       is         79:
                     80: xxstart.o: ${.CURDIR}/bbstart.s
1.18      tron       81:        ${CC} ${CAFLAGS} ${COPTS} -x assembler-with-cpp \
1.2       is         82:                -o $@ -c $>
                     83:
1.18      tron       84: libboot.a: ${OBJS}
                     85:        ${AR} r $@ $> && ${RANLIB} $@
1.2       is         86:
1.24      mhitch     87: .PHONY:        vers.c
                     88: vers.c:        ${.CURDIR}/version
                     89:        sh ${DIR_TOP}/conf/newvers_stand.sh -N ${.CURDIR}/version "amiga"
                     90:
                     91: machine:
                     92:        -rm -f $@
                     93:        ln -s ${DIR_TOP}/arch/amiga/include $@
                     94:
                     95: m68k:
                     96:        -rm -f $@
                     97:        ln -s ${DIR_TOP}/arch/m68k/include $@
                     98:
1.10      is         99: # make sure these are built:
1.2       is        100:
1.10      is        101: ${COBJS}: ${TXLT}
1.24      mhitch    102: ${FILES}: ${RELOC2BB}
1.26      aymeric   103:
                    104: .include "${.CURDIR}/../Makefile.booters"

CVSweb <webmaster@jp.NetBSD.org>