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

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

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