1 # $NetBSD: Makefile.boot,v 1.19 2009/01/24 11:59:39 dsl Exp $
3 # a very simple makefile...
5 # You only want to use this if you aren't running NetBSD.
7 # modify MACHINE and MACHINE_ARCH as appropriate for your target architecture
11 CFLAGS=-g -Wall -DHAVE_SETENV -DHAVE_STRERROR -DHAVE_STRDUP -DHAVE_STRFTIME -DHAVE_VSNPRINTF -DUSE_SELECT -D_POSIX_SOURCE
14 ${CC} ${CFLAGS} -c $< -o $@
18 # tested on HP-UX 10.20
20 #MAKE_MACHINE_ARCH=hppa
21 CFLAGS+= -DTARGET_MACHINE=\"${MACHINE}\" \
22 -DTARGET_MACHINE_ARCH=\"${MACHINE_ARCH}\" \
23 -DMAKE_MACHINE=\"${MACHINE}\"
26 OBJ=arch.o buf.o compat.o cond.o dir.o for.o hash.o job.o main.o make.o \
27 make_malloc.o parse.o str.o strlist.o suff.o targ.o trace.o var.o util.o
29 LIBOBJ= lst.lib/lstAppend.o lst.lib/lstAtEnd.o lst.lib/lstAtFront.o \
30 lst.lib/lstClose.o lst.lib/lstConcat.o lst.lib/lstDatum.o \
31 lst.lib/lstDeQueue.o lst.lib/lstDestroy.o lst.lib/lstDupl.o \
32 lst.lib/lstEnQueue.o lst.lib/lstFind.o lst.lib/lstFindFrom.o \
33 lst.lib/lstFirst.o lst.lib/lstForEach.o lst.lib/lstForEachFrom.o \
34 lst.lib/lstInit.o lst.lib/lstInsert.o lst.lib/lstIsAtEnd.o \
35 lst.lib/lstIsEmpty.o lst.lib/lstLast.o lst.lib/lstMember.o \
36 lst.lib/lstNext.o lst.lib/lstOpen.o lst.lib/lstRemove.o \
37 lst.lib/lstReplace.o lst.lib/lstSucc.o lst.lib/lstPrev.o
39 bmake: ${OBJ} ${LIBOBJ}
40 # @echo 'make of make and make.0 started.'
41 ${CC} ${CFLAGS} ${OBJ} ${LIBOBJ} -o bmake ${LIBS}
43 # nroff -h -man make.1 > make.0
44 # @echo 'make of make and make.0 completed.'
47 rm -f ${OBJ} ${LIBOBJ} ${PORTOBJ} bmake