Annotation of src/usr.bin/make/Makefile, Revision 1.43
1.43 ! espie 1: # $OpenBSD: Makefile,v 1.42 2007/07/09 21:16:42 deraadt 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.27 espie 18: SRCS= arch.c buf.c cmd_exec.c compat.c cond.c dir.c error.c for.c \
19: init.c job.c lowparse.c main.c make.c memory.c parse.c \
20: parsevar.c str.c stats.c suff.c targ.c timestamp.c \
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.33 espie 24: lstInsert.c lstMember.c lstRemove.c lstReplace.c lstSucc.c
1.1 deraadt 25: .PATH: ${.CURDIR}/lst.lib
1.17 espie 26:
1.20 espie 27: CLEANFILES+=generate hashconsts.h generate.o regress.o check
28:
1.17 espie 29: CLEANFILES+=${LIBOBJS} libohash.a
1.26 espie 30: CLEANFILES+= varhashconsts.h condhashconsts.h generate.o generate
1.17 espie 31:
1.26 espie 32: beforedepend: varhashconsts.h condhashconsts.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}
42:
1.38 espie 43: generate: generate.c stats.c memory.c
1.40 mickey 44: ${HOSTCC} ${LDSTATIC} -o ${.TARGET} ${HOSTCFLAGS} ${.ALLSRC} ${LDADD}
1.20 espie 45:
1.27 espie 46: check: regress.o str.o memory.o buf.o
1.20 espie 47: ${CC} -o ${.TARGET} ${CFLAGS} ${.ALLSRC} ${LDADD}
48:
49: regress: check
50: ${.OBJDIR}/check
1.17 espie 51:
52: # kludge for people who forget to make depend
1.26 espie 53: var.o: varhashconsts.h
1.35 espie 54: cond.o: condhashconsts.h
1.39 espie 55: var.ln: varhashconsts.h
56: cond.ln: condhashconsts.h
1.1 deraadt 57:
58: .if make(install)
59: SUBDIR+= PSD.doc
60: .endif
1.26 espie 61:
62: .PHONY: regress
1.1 deraadt 63:
64: .include <bsd.prog.mk>