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

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

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