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

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

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