Makefile revision 1.2
1# $NetBSD: Makefile,v 1.2 1998/07/07 00:16:34 dbj Exp $ 2 3S= ${.CURDIR}/../../../.. 4 5### find out what to use for libkern 6KERN_AS= library 7.include "${S}/lib/libkern/Makefile.inc" 8#LIBKERN= ${KERNLIB} 9 10### find out what to use for libz 11Z_AS= library 12.include "${S}/lib/libz/Makefile.inc" 13#LIBZ= ${ZLIB} 14 15### find out what to use for libsa 16SA_AS= library 17#SAMISCMAKEFLAGS= SA_USE_CREAD=yes 18.include "${S}/lib/libsa/Makefile.inc" 19#LIBSA= ${SALIB} 20 21RELOC= 4380000 22 23# XXX make defs arch-indep. 24INCLUDES+= -I${.CURDIR} -I${.CURDIR}/obj.${MACHINE} -I${S}/arch -I${S} -I${S}/lib/libsa -I${S}/lib/libkern 25DEFS+= -D_STANDALONE -DMC68040 -DSUPPORT_BOOTP -DSUPPORT_DHCP -DDEBUG # -DEN_DEBUG -DNETIF_DEBUG # -DSD_DEBUG -DSCSI_DEBUG 26SAMISCCPPFLAGS= -DSUPPORT_DHCP -DSUPPORT_BOOTP -DINSECURE # -DBOOTP_DEBUG -DETHER_DEBUG -DNET_DEBUG # -DNETIF_DEBUG -DNFS_DEBUG -DARP_DEBUG 27#COPTS+= -Wall -Wno-main 28COPTS+= -Wall 29CFLAGS+= -nostdinc ${INCLUDES} ${DEFS} 30LIBCRT0= 31 32PROG= boot 33SRCS= boot.c machdep.c conf.c devopen.c rtc.c sd.c scsi.c en.c dev_net.c 34# @@@ dev_net.c should really be in libsa, but it doesn't 35# declare ip_convertaddr correctly, so I put it here _temporarily_. 36 37NOMAN= 1 38BINDIR= /usr/mdec 39#LIBS= ${SALIB} ${KERNLIB} ${ZLIB} 40LIBS= ${SALIB} ${KERNLIB} 41#OBJS+= dev_net.o 42 43${PROG}: links srt0.o ${OBJS} vers.o ${LIBS} 44 ${LD} -N -Ttext ${RELOC} -e start srt0.o ${OBJS} ${LIBS} vers.o -o $@ 45 @${SIZE} $@ 46 47# this looks useful to me ... let's see when it will be an official part 48# of libsa 49#dev_net.o : ${S}/lib/libsa/dev_net.c 50# ${COMPILE.c} -DSUPPORT_BOOTP ${.IMPSRC} 51 52# startup 53 54srt0.o: ${.CURDIR}/srt0.s 55 ${CC} -m68040 ${INCPATH} ${DEFS} -c ${.CURDIR}/srt0.s 56 57vers.c: newvers 58newvers: 59 sh ${.CURDIR}/newvers.sh 60 ${CC} ${CFLAGS} -c vers.c 61 62#installboot: ${.CURDIR}/installboot.sh 63# @rm -f installboot 64# cp -p ${.CURDIR}/installboot.sh installboot 65 66# utilities 67 68links: 69 rm -f machine 70 ln -s ${S}/arch/${MACHINE}/include machine 71 rm -f ${MACHINE_ARCH} 72 ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH} 73 rm -f limits.h 74 ln -s machine/limits.h limits.h 75 76clean: 77 rm -f *.o errs core make.out 78 rm -f a.out boot cat ls 79 rm -f machine ${MACHINE_ARCH} limits.h 80 81.include <bsd.prog.mk> 82