Annotation of src/usr.bin/make/Makefile, Revision 1.65
1.65 ! espie 1: # $OpenBSD: Makefile,v 1.64 2020/01/13 15:41:53 espie Exp $
1.1 deraadt 2:
3: PROG= make
1.29 espie 4: CFLAGS+= -I${.OBJDIR} -I${.CURDIR}
1.40 mickey 5: HOSTCFLAGS+= -I${.OBJDIR} -I${.CURDIR}
1.29 espie 6: CDIAGFLAGS=-Wall -W -Wno-char-subscripts -Wstrict-prototypes -pedantic \
1.59 espie 7: -Wmissing-prototypes -Wdeclaration-after-statement -std=c99
1.9 smurph 8:
1.65 ! espie 9: CDEFS+=-DMAKE_BSIZE=256 -DDEFMAXJOBS=4
1.40 mickey 10: #CDEFS+=-DHAS_STATS
11:
1.58 espie 12: DPADD += ${LIBUTIL}
13: LDADD += -lutil
1.40 mickey 14: CFLAGS+=${CDEFS}
15: HOSTCFLAGS+=${CDEFS}
1.9 smurph 16:
1.53 espie 17: SRCS= arch.c buf.c cmd_exec.c compat.c cond.c dir.c direxpand.c dump.c \
1.64 espie 18: engine.c enginechoice.c error.c expandchildren.c \
1.63 espie 19: for.c init.c job.c lowparse.c main.c make.c memory.c parse.c \
1.50 espie 20: parsevar.c str.c stats.c suff.c targ.c targequiv.c timestamp.c \
1.27 espie 21: var.c varmodifiers.c varname.c
1.58 espie 22:
23: .include "${.CURDIR}/lst.lib/Makefile.inc"
1.17 espie 24:
1.48 miod 25: CLEANFILES+=generate generate.o regress.o check
1.20 espie 26:
1.48 miod 27: CLEANFILES+= varhashconsts.h condhashconsts.h nodehashconsts.h
1.17 espie 28:
29: # may need tweaking if you add variable synonyms or change the hash function
1.61 natano 30: MAGICVARSLOTS=82
1.35 espie 31: MAGICCONDSLOTS=65
1.17 espie 32:
1.26 espie 33: varhashconsts.h: generate
1.57 espie 34: ${.OBJDIR}/generate 1 ${MAGICVARSLOTS} >$@.tmp && mv $@.tmp $@
1.17 espie 35:
1.26 espie 36: condhashconsts.h: generate
1.57 espie 37: ${.OBJDIR}/generate 2 ${MAGICCONDSLOTS} >$@.tmp && mv $@.tmp $@
1.45 espie 38:
39: nodehashconsts.h: generate
1.57 espie 40: ${.OBJDIR}/generate 3 0 >$@.tmp && mv $@.tmp $@
1.26 espie 41:
1.58 espie 42: generate: generate.c stats.c memory.c ${DPADD}
43: ${HOSTCC} ${HOSTCFLAGS} ${LDSTATIC} -o ${.TARGET} ${.ALLSRC} ${LDFLAGS} ${LDADD}
44:
45: CHECKOBJS = regress.o str.o memory.o buf.o
1.20 espie 46:
1.58 espie 47: check: ${CHECKOBJS} ${DPADD}
48: ${CC} -o ${.TARGET} ${CFLAGS} ${CHECKOBJS} ${LDADD}
1.20 espie 49:
50: regress: check
1.51 espie 51: ${.OBJDIR}/check
1.17 espie 52:
1.26 espie 53: var.o: varhashconsts.h
1.35 espie 54: cond.o: condhashconsts.h
1.47 espie 55: targ.o parse.o: nodehashconsts.h
1.26 espie 56:
57: .PHONY: regress
1.1 deraadt 58:
59: .include <bsd.prog.mk>