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

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

1.42    ! deraadt     1: #      $OpenBSD: Makefile,v 1.41 2007/07/08 17:44:20 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.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.41      espie      27: a:
                     28:        echo "Bindir is ${BINDIR}"
1.17      espie      29:
1.20      espie      30: CLEANFILES+=generate hashconsts.h generate.o regress.o check
                     31:
1.17      espie      32: CLEANFILES+=${LIBOBJS} libohash.a
1.26      espie      33: CLEANFILES+= varhashconsts.h condhashconsts.h generate.o generate
1.17      espie      34:
1.26      espie      35: beforedepend: varhashconsts.h condhashconsts.h
1.17      espie      36: # may need tweaking if you add variable synonyms or change the hash function
1.26      espie      37: MAGICVARSLOTS=77
1.35      espie      38: MAGICCONDSLOTS=65
1.17      espie      39:
1.26      espie      40: varhashconsts.h: generate
                     41:        ${.OBJDIR}/generate 1 ${MAGICVARSLOTS} >${.TARGET}
1.17      espie      42:
1.26      espie      43: condhashconsts.h: generate
                     44:        ${.OBJDIR}/generate 2 ${MAGICCONDSLOTS} >${.TARGET}
                     45:
1.38      espie      46: generate: generate.c stats.c memory.c
1.40      mickey     47:        ${HOSTCC} ${LDSTATIC} -o ${.TARGET} ${HOSTCFLAGS} ${.ALLSRC} ${LDADD}
1.20      espie      48:
1.27      espie      49: check: regress.o str.o memory.o buf.o
1.20      espie      50:        ${CC} -o ${.TARGET} ${CFLAGS} ${.ALLSRC} ${LDADD}
                     51:
                     52: regress: check
                     53:        ${.OBJDIR}/check
1.17      espie      54:
                     55: # kludge for people who forget to make depend
1.26      espie      56: var.o: varhashconsts.h
1.35      espie      57: cond.o: condhashconsts.h
1.39      espie      58: var.ln: varhashconsts.h
                     59: cond.ln: condhashconsts.h
1.1       deraadt    60:
                     61: .if make(install)
                     62: SUBDIR+= PSD.doc
                     63: .endif
1.26      espie      64:
                     65: .PHONY:                regress
1.1       deraadt    66:
                     67: .include <bsd.prog.mk>