[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / src / usr.bin / make

Annotation of src/usr.bin/make/Makefile, Revision 1.34

1.34    ! miod        1: #      $OpenBSD: Makefile,v 1.33 2001/11/11 12:35:02 espie Exp $
1.1       deraadt     2:
                      3: PROG=  make
1.29      espie       4: CFLAGS+= -I${.OBJDIR} -I${.CURDIR}
                      5: CDIAGFLAGS=-Wall -W -Wno-char-subscripts -Wstrict-prototypes -pedantic \
                      6:        -Wmissing-prototypes
1.9       smurph      7:
1.24      espie       8: CFLAGS+=-DUSE_TIMESPEC
1.27      espie       9: CFLAGS+=-DHAS_BOOL_H
                     10: CFLAGS+=-DHAS_PATHS_H
1.28      espie      11: CFLAGS+=-DHAS_EXTENDED_GETCWD
1.9       smurph     12:
1.27      espie      13: SRCS=  arch.c buf.c cmd_exec.c compat.c cond.c dir.c error.c for.c \
                     14:        init.c job.c lowparse.c main.c make.c memory.c parse.c \
                     15:        parsevar.c str.c stats.c suff.c targ.c timestamp.c \
                     16:        var.c varmodifiers.c varname.c
1.26      espie      17: SRCS+= lstAddNew.c lstAppend.c lstConcat.c lstConcatDestroy.c \
                     18:        lstDeQueue.c lstDestroy.c lstDupl.c lstFindFrom.c lstForEachFrom.c \
1.33      espie      19:        lstInsert.c lstMember.c lstRemove.c lstReplace.c lstSucc.c
1.1       deraadt    20: .PATH: ${.CURDIR}/lst.lib
1.17      espie      21:
                     22:
1.20      espie      23: CLEANFILES+=generate hashconsts.h generate.o regress.o check
                     24:
1.17      espie      25: CLEANFILES+=${LIBOBJS} libohash.a
1.26      espie      26: CLEANFILES+= varhashconsts.h condhashconsts.h generate.o generate
1.17      espie      27:
1.26      espie      28: beforedepend: varhashconsts.h condhashconsts.h
1.17      espie      29: # may need tweaking if you add variable synonyms or change the hash function
1.26      espie      30: MAGICVARSLOTS=77
                     31: MAGICCONDSLOTS=43
1.17      espie      32:
1.26      espie      33: varhashconsts.h: generate
                     34:        ${.OBJDIR}/generate 1 ${MAGICVARSLOTS} >${.TARGET}
1.17      espie      35:
1.26      espie      36: condhashconsts.h: generate
                     37:        ${.OBJDIR}/generate 2 ${MAGICCONDSLOTS} >${.TARGET}
                     38:
1.30      art        39: generate: generate.c stats.c memory.c
                     40:        ${HOSTCC} -o ${.TARGET} ${CFLAGS} ${.ALLSRC} ${LDADD}
1.20      espie      41:
1.27      espie      42: check: regress.o str.o memory.o buf.o
1.20      espie      43:        ${CC} -o ${.TARGET} ${CFLAGS} ${.ALLSRC} ${LDADD}
                     44:
                     45: regress: check
                     46:        ${.OBJDIR}/check
1.17      espie      47:
                     48: # kludge for people who forget to make depend
1.26      espie      49: var.o: varhashconsts.h
1.1       deraadt    50:
                     51: .if make(install)
                     52: SUBDIR+= PSD.doc
                     53: .endif
1.26      espie      54:
                     55: .PHONY:                regress
1.1       deraadt    56:
                     57: .include <bsd.prog.mk>