Annotation of src/usr.bin/make/Makefile, Revision 1.52
1.52 ! schwarze 1: # $OpenBSD: Makefile,v 1.51 2010/04/25 13:59: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 \
7: -Wmissing-prototypes
1.9 smurph 8:
1.40 mickey 9: CDEFS+=-DUSE_TIMESPEC
10: CDEFS+=-DHAS_BOOL_H
11: CDEFS+=-DHAS_PATHS_H
12: CDEFS+=-DHAS_EXTENDED_GETCWD
13: #CDEFS+=-DHAS_STATS
14:
15: CFLAGS+=${CDEFS}
16: HOSTCFLAGS+=${CDEFS}
1.9 smurph 17:
1.47 espie 18: SRCS= arch.c buf.c cmd_exec.c compat.c cond.c dir.c direxpand.c engine.c \
19: error.c 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.26 espie 22: SRCS+= lstAddNew.c lstAppend.c lstConcat.c lstConcatDestroy.c \
23: lstDeQueue.c lstDestroy.c lstDupl.c lstFindFrom.c lstForEachFrom.c \
1.49 espie 24: lstInsert.c lstMember.c lstRemove.c lstReplace.c lstRequeue.c lstSucc.c
1.1 deraadt 25: .PATH: ${.CURDIR}/lst.lib
1.17 espie 26:
1.48 miod 27: CLEANFILES+=generate generate.o regress.o check
1.20 espie 28:
1.17 espie 29: CLEANFILES+=${LIBOBJS} libohash.a
1.48 miod 30: CLEANFILES+= varhashconsts.h condhashconsts.h nodehashconsts.h
1.17 espie 31:
1.47 espie 32: beforedepend: varhashconsts.h condhashconsts.h nodehashconsts.h
1.17 espie 33: # may need tweaking if you add variable synonyms or change the hash function
1.26 espie 34: MAGICVARSLOTS=77
1.35 espie 35: MAGICCONDSLOTS=65
1.17 espie 36:
1.26 espie 37: varhashconsts.h: generate
38: ${.OBJDIR}/generate 1 ${MAGICVARSLOTS} >${.TARGET}
1.17 espie 39:
1.26 espie 40: condhashconsts.h: generate
41: ${.OBJDIR}/generate 2 ${MAGICCONDSLOTS} >${.TARGET}
1.45 espie 42:
43: nodehashconsts.h: generate
44: ${.OBJDIR}/generate 3 0 >${.TARGET}
1.26 espie 45:
1.38 espie 46: generate: generate.c stats.c memory.c
1.40 mickey 47: ${HOSTCC} ${LDSTATIC} -o ${.TARGET} ${HOSTCFLAGS} ${.ALLSRC} ${LDADD}
1.20 espie 48:
1.27 espie 49: check: regress.o str.o memory.o buf.o
1.20 espie 50: ${CC} -o ${.TARGET} ${CFLAGS} ${.ALLSRC} ${LDADD}
51:
52: regress: check
1.51 espie 53: ${.OBJDIR}/check
1.17 espie 54:
55: # kludge for people who forget to make depend
1.26 espie 56: var.o: varhashconsts.h
1.35 espie 57: cond.o: condhashconsts.h
1.47 espie 58: targ.o parse.o: nodehashconsts.h
1.39 espie 59: var.ln: varhashconsts.h
60: cond.ln: condhashconsts.h
1.47 espie 61: targ.ln parse.ln: nodehashconsts.h
1.26 espie 62:
63: .PHONY: regress
1.1 deraadt 64:
65: .include <bsd.prog.mk>