11.25Srillig# $NetBSD: Makefile.boot,v 1.25 2022/04/15 13:44:57 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.25Srillig# Add the following definitions to EXTRA_CFLAGS as necessary: 91.3Sglass# 101.25Srillig# -DHAVE_SETENV 111.25Srillig# -DHAVE_SETPGID 121.25Srillig# -DHAVE_SETRLIMIT 131.25Srillig# -DHAVE_STRERROR 141.25Srillig# -DHAVE_STRSEP 151.25Srillig# -DHAVE_VSNPRINTF 161.25Srillig# -DUSE_SELECT 171.22Srillig 181.22SrilligPROG= bmake 191.22SrilligMACHINE= i386 201.22SrilligMACHINE_ARCH= i386 211.22SrilligCC= gcc 221.22SrilligCFLAGS= -O -g 231.22SrilligEXTRA_CFLAGS= 241.22SrilligEXTRA_LIBS= 251.22Srillig 261.24SrilligOBJS= arch.o buf.o compat.o cond.o dir.o for.o hash.o \ 271.22Srillig job.o lst.o main.o make.o make_malloc.o metachar.o parse.o \ 281.23Srillig str.o suff.o targ.o trace.o var.o util.o 291.8Schristos 301.8Schristos.c.o: 311.22Srillig ${CC} ${CPPFLAGS} ${CFLAGS} ${EXTRA_CFLAGS} -c $< -o $@ 321.8Schristos 331.22SrilligCPPFLAGS= \ 341.22Srillig -DTARGET_MACHINE=\"${MACHINE}\" \ 351.10Sgwr -DTARGET_MACHINE_ARCH=\"${MACHINE_ARCH}\" \ 361.17Sross -DMAKE_MACHINE=\"${MACHINE}\" 371.1Scgd 381.22Srillig${PROG}: ${OBJS} 391.22Srillig# @echo 'make of ${PROG} and make.0 started.' 401.22Srillig ${CC} ${CFLAGS} ${OBJS} -o $@ ${EXTRA_LIBS} 411.6Schristos @ls -l $@ 421.1Scgd# nroff -h -man make.1 > make.0 431.22Srillig# @echo 'make of ${PROG} and make.0 completed.' 441.6Schristos 451.6Schristosclean: 461.22Srillig rm -f ${OBJS} ${PROG} 47