![]() ![]() | ![]() |
File: [local] / src / usr.bin / make / Makefile (download)
Revision 1.26, Thu May 3 13:40:59 2001 UTC (23 years, 1 month ago) by espie
Synch with my current work. Numerous changes: - generate can build several tables - style cleanup - statistics code - use variable names throughout (struct Name) - recursive variables everywhere - faster parser (pass buffer along instead of allocating multiple copies) - correct parser. Handles comments everywhere, and ; correctly - more string intervals - simplified dir.c, less recursion. - extended for loops - sinclude() - finished removing extra junk from Lst_* - handles ${@D} and friends in a simpler way - cleaned up and modular VarModifiers handling. - recognizes some gnu Makefile usages and errors out about them. Additionally, some extra functionality is defined by FEATURES. The set of functionalities is currently hardcoded to OpenBSD defaults, but this may include support for some NetBSD extensions, like ODE modifiers. Backed by miod@ and millert@, who finally got sick of my endless patches... |
# $OpenBSD: Makefile,v 1.26 2001/05/03 13:40:59 espie Exp $ PROG= make CFLAGS+= -I${.OBJDIR} -I${.CURDIR} ${WARNINGS} WARNINGS=-Wall -W -Wno-char-subscripts -Wstrict-prototypes -pedantic #-Wmissing-prototypes CFLAGS+=-DUSE_TIMESPEC .if (${MACHINE_ARCH} == "m88k") CFLAGS+=-O0 .endif SRCS= arch.c buf.c compat.c cond.c dir.c error.c for.c job.c lowparse.c \ main.c make.c parse.c str.c stats.c suff.c targ.c var.c varmodifiers.c #util.c SRCS+= lstAddNew.c lstAppend.c lstConcat.c lstConcatDestroy.c \ lstDeQueue.c lstDestroy.c lstDupl.c lstFindFrom.c lstForEachFrom.c \ lstInit.c lstInsert.c lstMember.c lstRemove.c lstReplace.c lstSucc.c .PATH: ${.CURDIR}/lst.lib CLEANFILES+=generate hashconsts.h generate.o regress.o check CLEANFILES+=${LIBOBJS} libohash.a CLEANFILES+= varhashconsts.h condhashconsts.h generate.o generate beforedepend: varhashconsts.h condhashconsts.h # may need tweaking if you add variable synonyms or change the hash function MAGICVARSLOTS=77 MAGICCONDSLOTS=43 varhashconsts.h: generate ${.OBJDIR}/generate 1 ${MAGICVARSLOTS} >${.TARGET} condhashconsts.h: generate ${.OBJDIR}/generate 2 ${MAGICCONDSLOTS} >${.TARGET} generate: generate.o stats.o error.o ${CC} -o ${.TARGET} ${CFLAGS} ${.ALLSRC} ${LDADD} check: regress.o str.o error.o buf.o ${CC} -o ${.TARGET} ${CFLAGS} ${.ALLSRC} ${LDADD} regress: check ${.OBJDIR}/check # kludge for people who forget to make depend var.o: varhashconsts.h .if make(install) SUBDIR+= PSD.doc .endif .PHONY: regress .include <bsd.prog.mk>