Annotation of src/usr.bin/make/Makefile, Revision 1.45
1.45 ! espie 1: # $OpenBSD: Makefile,v 1.44 2007/09/16 10:14:26 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.44 espie 18: SRCS= arch.c buf.c cmd_exec.c compat.c cond.c dir.c direxpand.c \
19: error.c for.c \
1.27 espie 20: init.c job.c lowparse.c main.c make.c memory.c parse.c \
21: parsevar.c str.c stats.c suff.c targ.c timestamp.c \
22: var.c varmodifiers.c varname.c
1.26 espie 23: SRCS+= lstAddNew.c lstAppend.c lstConcat.c lstConcatDestroy.c \
24: lstDeQueue.c lstDestroy.c lstDupl.c lstFindFrom.c lstForEachFrom.c \
1.33 espie 25: lstInsert.c lstMember.c lstRemove.c lstReplace.c lstSucc.c
1.1 deraadt 26: .PATH: ${.CURDIR}/lst.lib
1.17 espie 27:
1.20 espie 28: CLEANFILES+=generate hashconsts.h generate.o regress.o check
29:
1.17 espie 30: CLEANFILES+=${LIBOBJS} libohash.a
1.45 ! espie 31: CLEANFILES+= varhashconsts.h condhashconsts.h nodehashconsts.h
! 32: CLEANFILES+= generate.o generate
1.17 espie 33:
1.26 espie 34: beforedepend: varhashconsts.h condhashconsts.h
1.17 espie 35: # may need tweaking if you add variable synonyms or change the hash function
1.26 espie 36: MAGICVARSLOTS=77
1.35 espie 37: MAGICCONDSLOTS=65
1.17 espie 38:
1.26 espie 39: varhashconsts.h: generate
40: ${.OBJDIR}/generate 1 ${MAGICVARSLOTS} >${.TARGET}
1.17 espie 41:
1.26 espie 42: condhashconsts.h: generate
43: ${.OBJDIR}/generate 2 ${MAGICCONDSLOTS} >${.TARGET}
1.45 ! espie 44:
! 45: nodehashconsts.h: generate
! 46: ${.OBJDIR}/generate 3 0 >${.TARGET}
1.26 espie 47:
1.38 espie 48: generate: generate.c stats.c memory.c
1.40 mickey 49: ${HOSTCC} ${LDSTATIC} -o ${.TARGET} ${HOSTCFLAGS} ${.ALLSRC} ${LDADD}
1.20 espie 50:
1.27 espie 51: check: regress.o str.o memory.o buf.o
1.20 espie 52: ${CC} -o ${.TARGET} ${CFLAGS} ${.ALLSRC} ${LDADD}
53:
54: regress: check
55: ${.OBJDIR}/check
1.17 espie 56:
57: # kludge for people who forget to make depend
1.26 espie 58: var.o: varhashconsts.h
1.35 espie 59: cond.o: condhashconsts.h
1.39 espie 60: var.ln: varhashconsts.h
61: cond.ln: condhashconsts.h
1.1 deraadt 62:
63: .if make(install)
64: SUBDIR+= PSD.doc
65: .endif
1.26 espie 66:
67: .PHONY: regress
1.1 deraadt 68:
69: .include <bsd.prog.mk>