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

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

1.37    ! mickey      1: #      $OpenBSD: Makefile,v 1.36 2002/07/25 18:40:24 art 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.35      espie      12: #CFLAGS+=-DHAS_STATS
1.9       smurph     13:
1.27      espie      14: SRCS=  arch.c buf.c cmd_exec.c compat.c cond.c dir.c error.c for.c \
                     15:        init.c job.c lowparse.c main.c make.c memory.c parse.c \
                     16:        parsevar.c str.c stats.c suff.c targ.c timestamp.c \
                     17:        var.c varmodifiers.c varname.c
1.26      espie      18: SRCS+= lstAddNew.c lstAppend.c lstConcat.c lstConcatDestroy.c \
                     19:        lstDeQueue.c lstDestroy.c lstDupl.c lstFindFrom.c lstForEachFrom.c \
1.33      espie      20:        lstInsert.c lstMember.c lstRemove.c lstReplace.c lstSucc.c
1.1       deraadt    21: .PATH: ${.CURDIR}/lst.lib
1.17      espie      22:
1.37    ! mickey     23: # Use this for bootstrapping
        !            24: #.PATH: ${.CURDIR}/../../lib/libc/ohash
        !            25: #CFLAGS+=-I${.CURDIR}/../../lib/libc/ohash
        !            26: #HSRCS+=       ohash_create_entry.c ohash_delete.c ohash_do.c ohash_entries.c \
        !            27: #      ohash_enum.c ohash_init.c ohash_interval.c \
        !            28: #      ohash_lookup_interval.c ohash_lookup_memory.c \
        !            29: #      ohash_qlookup.c ohash_qlookupi.c
        !            30: #SRCS+=        ${HSRCS}
1.17      espie      31:
1.20      espie      32: CLEANFILES+=generate hashconsts.h generate.o regress.o check
                     33:
1.17      espie      34: CLEANFILES+=${LIBOBJS} libohash.a
1.26      espie      35: CLEANFILES+= varhashconsts.h condhashconsts.h generate.o generate
1.17      espie      36:
1.26      espie      37: beforedepend: varhashconsts.h condhashconsts.h
1.17      espie      38: # may need tweaking if you add variable synonyms or change the hash function
1.26      espie      39: MAGICVARSLOTS=77
1.35      espie      40: MAGICCONDSLOTS=65
1.17      espie      41:
1.26      espie      42: varhashconsts.h: generate
                     43:        ${.OBJDIR}/generate 1 ${MAGICVARSLOTS} >${.TARGET}
1.17      espie      44:
1.26      espie      45: condhashconsts.h: generate
                     46:        ${.OBJDIR}/generate 2 ${MAGICCONDSLOTS} >${.TARGET}
                     47:
1.37    ! mickey     48: generate: generate.c stats.c memory.c ${HSRCS}
1.36      art        49:        ${HOSTCC} ${LDSTATIC} -o ${.TARGET} ${CFLAGS} ${.ALLSRC} ${LDADD}
1.20      espie      50:
1.27      espie      51: check: regress.o str.o memory.o buf.o
1.20      espie      52:        ${CC} -o ${.TARGET} ${CFLAGS} ${.ALLSRC} ${LDADD}
                     53:
                     54: regress: check
                     55:        ${.OBJDIR}/check
1.17      espie      56:
                     57: # kludge for people who forget to make depend
1.26      espie      58: var.o: varhashconsts.h
1.35      espie      59: cond.o: 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>