2010-02-16 15:41:33 +01:00
|
|
|
# $NetBSD: Makefile.boot,v 1.19 2009/01/24 11:59:39 dsl Exp $
|
|
|
|
#
|
|
|
|
# a very simple makefile...
|
|
|
|
#
|
|
|
|
# You only want to use this if you aren't running NetBSD.
|
|
|
|
#
|
|
|
|
# modify MACHINE and MACHINE_ARCH as appropriate for your target architecture
|
|
|
|
#
|
|
|
|
#CC=gcc -O -g
|
|
|
|
CC=cc
|
|
|
|
CFLAGS=-g -Wall -DHAVE_SETENV -DHAVE_STRERROR -DHAVE_STRDUP -DHAVE_STRFTIME -DHAVE_VSNPRINTF -DUSE_SELECT -D_POSIX_SOURCE -D_MINIX
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-02-16 15:41:33 +01:00
|
|
|
.c.o:
|
|
|
|
${CC} ${CFLAGS} -c $< -o $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-02-16 15:41:33 +01:00
|
|
|
MACHINE=i386
|
|
|
|
MACHINE_ARCH=i386
|
|
|
|
# tested on HP-UX 10.20
|
|
|
|
#MAKE_MACHINE=hp700
|
|
|
|
#MAKE_MACHINE_ARCH=hppa
|
|
|
|
CFLAGS+= -DTARGET_MACHINE=\"${MACHINE}\" \
|
|
|
|
-DTARGET_MACHINE_ARCH=\"${MACHINE_ARCH}\" \
|
|
|
|
-DMAKE_MACHINE=\"${MACHINE}\"
|
|
|
|
LIBS=
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-02-16 15:41:33 +01:00
|
|
|
OBJ=arch.o buf.o compat.o cond.o dir.o for.o hash.o job.o main.o make.o \
|
|
|
|
make_malloc.o parse.o str.o strlist.o suff.o targ.o trace.o var.o util.o
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-02-16 15:41:33 +01: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 lst.lib/lstPrev.o
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-02-16 15:41:33 +01:00
|
|
|
all: make
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-02-16 15:41:33 +01:00
|
|
|
make: ${OBJ} ${LIBOBJ}
|
|
|
|
# @echo 'make of make and make.0 started.'
|
|
|
|
${CC} ${CFLAGS} ${OBJ} ${LIBOBJ} -o make ${LIBS}
|
|
|
|
@ls -l $@
|
|
|
|
# nroff -h -man make.1 > make.0
|
|
|
|
# @echo 'make of make and make.0 completed.'
|
|
|
|
|
|
|
|
install: /usr/bin/make
|
|
|
|
|
|
|
|
/usr/bin/make: make
|
2005-08-18 13:36:36 +02:00
|
|
|
install -c -o bin make $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
clean:
|
2010-02-16 15:41:33 +01:00
|
|
|
rm -f ${OBJ} ${LIBOBJ} ${PORTOBJ} make
|