summaryrefslogtreecommitdiff
path: root/usr.bin/make/Makefile
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2001-05-03 13:41:28 +0000
committerMarc Espie <espie@cvs.openbsd.org>2001-05-03 13:41:28 +0000
commit32d5cfe8f4f4bd9647d36fc0f609479f02311103 (patch)
tree06bd5d3e7a2a46bf77a1da707955bfdc16acf068 /usr.bin/make/Makefile
parenta50fea6f0032902e640160d4c42a8c9ce003fc2d (diff)
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...
Diffstat (limited to 'usr.bin/make/Makefile')
-rw-r--r--usr.bin/make/Makefile35
1 files changed, 20 insertions, 15 deletions
diff --git a/usr.bin/make/Makefile b/usr.bin/make/Makefile
index 107a0893eb6..9eee31f2b98 100644
--- a/usr.bin/make/Makefile
+++ b/usr.bin/make/Makefile
@@ -1,7 +1,8 @@
-# $OpenBSD: Makefile,v 1.25 2001/03/02 16:57:26 espie Exp $
+# $OpenBSD: Makefile,v 1.26 2001/05/03 13:40:59 espie Exp $
PROG= make
-CFLAGS+= -I${.OBJDIR} -I${.CURDIR} -Wall -Wno-char-subscripts -Wstrict-prototypes
+CFLAGS+= -I${.OBJDIR} -I${.CURDIR} ${WARNINGS}
+WARNINGS=-Wall -W -Wno-char-subscripts -Wstrict-prototypes -pedantic #-Wmissing-prototypes
CFLAGS+=-DUSE_TIMESPEC
.if (${MACHINE_ARCH} == "m88k")
@@ -9,28 +10,30 @@ 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 suff.c targ.c var.c varmodifiers.c #util.c
-SRCS+= lstAppend.c lstAtEnd.c lstAtFront.c lstClose.c lstConcat.c \
- lstConcatDestroy.c lstDeQueue.c lstDestroy.c lstDupl.c lstEnQueue.c \
- lstFindFrom.c lstForEachFrom.c \
- lstInit.c lstInsert.c lstIsAtEnd.c lstIsEmpty.c \
- lstMember.c lstNext.c lstOpen.c lstRemove.c lstReplace.c lstSucc.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+= hashconsts.h generate.o generate
+CLEANFILES+= varhashconsts.h condhashconsts.h generate.o generate
-beforedepend: hashconsts.h
+beforedepend: varhashconsts.h condhashconsts.h
# may need tweaking if you add variable synonyms or change the hash function
-MAGICSLOTS=34
+MAGICVARSLOTS=77
+MAGICCONDSLOTS=43
-hashconsts.h: generate
- ${.OBJDIR}/generate ${MAGICSLOTS} >${.TARGET}
+varhashconsts.h: generate
+ ${.OBJDIR}/generate 1 ${MAGICVARSLOTS} >${.TARGET}
-generate: generate.o error.o
+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
@@ -40,10 +43,12 @@ regress: check
${.OBJDIR}/check
# kludge for people who forget to make depend
-var.o: hashconsts.h
+var.o: varhashconsts.h
.if make(install)
SUBDIR+= PSD.doc
.endif
+.PHONY: regress
+
.include <bsd.prog.mk>