2004-05-07 04:04:38 +04:00
|
|
|
# $NetBSD: Makefile.boot,v 1.17 2004/05/07 00:04:38 ross Exp $
|
1996-08-30 21:59:37 +04:00
|
|
|
#
|
1994-03-05 03:34:29 +03:00
|
|
|
# a very simple makefile...
|
1994-04-17 07:09:49 +04:00
|
|
|
#
|
|
|
|
# You only want to use this if you aren't running NetBSD.
|
|
|
|
#
|
|
|
|
# modify MACHINE and MACHINE_ARCH as appropriate for your target architecture
|
|
|
|
#
|
2002-06-11 10:06:18 +04:00
|
|
|
CC=gcc -O -g
|
1996-12-31 20:52:23 +03:00
|
|
|
|
|
|
|
.c.o:
|
|
|
|
${CC} ${CFLAGS} -c $< -o $@
|
|
|
|
|
2002-06-11 10:06:18 +04:00
|
|
|
MACHINE=i386
|
|
|
|
MACHINE_ARCH=i386
|
2000-08-03 19:53:24 +04:00
|
|
|
# tested on HP-UX 10.20
|
2001-11-30 04:29:47 +03:00
|
|
|
#MAKE_MACHINE=hp700
|
|
|
|
#MAKE_MACHINE_ARCH=hppa
|
2004-05-07 03:15:46 +04:00
|
|
|
CFLAGS= -DTARGET_MACHINE=\"${MACHINE}\" \
|
1999-04-03 08:39:10 +04:00
|
|
|
-DTARGET_MACHINE_ARCH=\"${MACHINE_ARCH}\" \
|
2004-05-07 04:04:38 +04:00
|
|
|
-DMAKE_MACHINE=\"${MACHINE}\"
|
1996-08-13 20:40:31 +04:00
|
|
|
LIBS=
|
1994-03-05 03:34:29 +03:00
|
|
|
|
1994-04-10 03:35:25 +04:00
|
|
|
OBJ=arch.o buf.o compat.o cond.o dir.o for.o hash.o job.o main.o make.o \
|
2001-01-18 08:53:05 +03:00
|
|
|
parse.o str.o suff.o targ.o trace.o var.o util.o
|
1994-03-05 03:34:29 +03:00
|
|
|
|
1996-08-13 20:40:31 +04:00
|
|
|
LIBOBJ= lst.lib/lstAppend.o lst.lib/lstAtEnd.o lst.lib/lstAtFront.o \
|
|
|
|
lst.lib/lstClose.o lst.lib/lstConcat.o lst.lib/lstDatum.o \
|
|
|
|
lst.lib/lstDeQueue.o lst.lib/lstDestroy.o lst.lib/lstDupl.o \
|
|
|
|
lst.lib/lstEnQueue.o lst.lib/lstFind.o lst.lib/lstFindFrom.o \
|
|
|
|
lst.lib/lstFirst.o lst.lib/lstForEach.o lst.lib/lstForEachFrom.o \
|
|
|
|
lst.lib/lstInit.o lst.lib/lstInsert.o lst.lib/lstIsAtEnd.o \
|
|
|
|
lst.lib/lstIsEmpty.o lst.lib/lstLast.o lst.lib/lstMember.o \
|
|
|
|
lst.lib/lstNext.o lst.lib/lstOpen.o lst.lib/lstRemove.o \
|
|
|
|
lst.lib/lstReplace.o lst.lib/lstSucc.o
|
|
|
|
|
|
|
|
bmake: ${OBJ} ${LIBOBJ}
|
|
|
|
# @echo 'make of make and make.0 started.'
|
|
|
|
${CC} ${CFLAGS} ${OBJ} ${LIBOBJ} -o bmake ${LIBS}
|
|
|
|
@ls -l $@
|
1994-03-05 03:34:29 +03:00
|
|
|
# nroff -h -man make.1 > make.0
|
|
|
|
# @echo 'make of make and make.0 completed.'
|
1996-08-13 20:40:31 +04:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f ${OBJ} ${LIBOBJ} ${PORTOBJ} bmake
|