1*0a6a1f1dSLionel Sambuc# $NetBSD: Makefile.boot,v 1.21 2014/02/24 07:23:44 skrll Exp $ 22e2caf59SThomas Veerman# 32e2caf59SThomas Veerman# a very simple makefile... 42e2caf59SThomas Veerman# 52e2caf59SThomas Veerman# You only want to use this if you aren't running NetBSD. 62e2caf59SThomas Veerman# 72e2caf59SThomas Veerman# modify MACHINE and MACHINE_ARCH as appropriate for your target architecture 82e2caf59SThomas Veerman# 92e2caf59SThomas VeermanCC=gcc -O -g 102e2caf59SThomas Veerman 112e2caf59SThomas Veerman.c.o: 122e2caf59SThomas Veerman ${CC} ${CFLAGS} -c $< -o $@ 132e2caf59SThomas Veerman 142e2caf59SThomas VeermanMACHINE=i386 152e2caf59SThomas VeermanMACHINE_ARCH=i386 162e2caf59SThomas Veerman# tested on HP-UX 10.20 17*0a6a1f1dSLionel Sambuc#MAKE_MACHINE=hppa 182e2caf59SThomas Veerman#MAKE_MACHINE_ARCH=hppa 192e2caf59SThomas VeermanCFLAGS= -DTARGET_MACHINE=\"${MACHINE}\" \ 202e2caf59SThomas Veerman -DTARGET_MACHINE_ARCH=\"${MACHINE_ARCH}\" \ 212e2caf59SThomas Veerman -DMAKE_MACHINE=\"${MACHINE}\" 222e2caf59SThomas VeermanLIBS= 232e2caf59SThomas Veerman 242e2caf59SThomas VeermanOBJ=arch.o buf.o compat.o cond.o dir.o for.o hash.o job.o main.o make.o \ 252e2caf59SThomas Veerman make_malloc.o parse.o str.o strlist.o suff.o targ.o trace.o var.o util.o 262e2caf59SThomas Veerman 272e2caf59SThomas VeermanLIBOBJ= lst.lib/lstAppend.o lst.lib/lstAtEnd.o lst.lib/lstAtFront.o \ 282e2caf59SThomas Veerman lst.lib/lstClose.o lst.lib/lstConcat.o lst.lib/lstDatum.o \ 292e2caf59SThomas Veerman lst.lib/lstDeQueue.o lst.lib/lstDestroy.o lst.lib/lstDupl.o \ 302e2caf59SThomas Veerman lst.lib/lstEnQueue.o lst.lib/lstFind.o lst.lib/lstFindFrom.o \ 312e2caf59SThomas Veerman lst.lib/lstFirst.o lst.lib/lstForEach.o lst.lib/lstForEachFrom.o \ 322e2caf59SThomas Veerman lst.lib/lstInit.o lst.lib/lstInsert.o lst.lib/lstIsAtEnd.o \ 332e2caf59SThomas Veerman lst.lib/lstIsEmpty.o lst.lib/lstLast.o lst.lib/lstMember.o \ 342e2caf59SThomas Veerman lst.lib/lstNext.o lst.lib/lstOpen.o lst.lib/lstRemove.o \ 352e2caf59SThomas Veerman lst.lib/lstReplace.o lst.lib/lstSucc.o lst.lib/lstPrev.o 362e2caf59SThomas Veerman 372e2caf59SThomas Veermanbmake: ${OBJ} ${LIBOBJ} 382e2caf59SThomas Veerman# @echo 'make of make and make.0 started.' 392e2caf59SThomas Veerman ${CC} ${CFLAGS} ${OBJ} ${LIBOBJ} -o bmake ${LIBS} 402e2caf59SThomas Veerman @ls -l $@ 412e2caf59SThomas Veerman# nroff -h -man make.1 > make.0 422e2caf59SThomas Veerman# @echo 'make of make and make.0 completed.' 432e2caf59SThomas Veerman 442e2caf59SThomas Veermanclean: 452e2caf59SThomas Veerman rm -f ${OBJ} ${LIBOBJ} ${PORTOBJ} bmake 46