Makefile.boot revision 1.24
11.24Srillig# $NetBSD: Makefile.boot,v 1.24 2021/12/12 11:02:23 rillig Exp $ 21.7Sthorpej# 31.22Srillig# A very simple makefile... 41.3Sglass# 51.3Sglass# You only want to use this if you aren't running NetBSD. 61.3Sglass# 71.22Srillig# Modify MACHINE and MACHINE_ARCH as appropriate for your target architecture. 81.24Srillig# See config.h and the various #ifdef directives for further configuration, in 91.24Srillig# particular in util.c. 101.3Sglass# 111.22Srillig 121.22SrilligPROG= bmake 131.22SrilligMACHINE= i386 141.22SrilligMACHINE_ARCH= i386 151.22SrilligCC= gcc 161.22SrilligCFLAGS= -O -g 171.22SrilligEXTRA_CFLAGS= 181.22SrilligEXTRA_LIBS= 191.22Srillig 201.24SrilligOBJS= arch.o buf.o compat.o cond.o dir.o for.o hash.o \ 211.22Srillig job.o lst.o main.o make.o make_malloc.o metachar.o parse.o \ 221.23Srillig str.o suff.o targ.o trace.o var.o util.o 231.8Schristos 241.8Schristos.c.o: 251.22Srillig ${CC} ${CPPFLAGS} ${CFLAGS} ${EXTRA_CFLAGS} -c $< -o $@ 261.8Schristos 271.22SrilligCPPFLAGS= \ 281.22Srillig -DTARGET_MACHINE=\"${MACHINE}\" \ 291.10Sgwr -DTARGET_MACHINE_ARCH=\"${MACHINE_ARCH}\" \ 301.17Sross -DMAKE_MACHINE=\"${MACHINE}\" 311.1Scgd 321.22Srillig${PROG}: ${OBJS} 331.22Srillig# @echo 'make of ${PROG} and make.0 started.' 341.22Srillig ${CC} ${CFLAGS} ${OBJS} -o $@ ${EXTRA_LIBS} 351.6Schristos @ls -l $@ 361.1Scgd# nroff -h -man make.1 > make.0 371.22Srillig# @echo 'make of ${PROG} and make.0 completed.' 381.6Schristos 391.6Schristosclean: 401.22Srillig rm -f ${OBJS} ${PROG} 41