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

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

1.31      espie       1: #      $OpenBSD: Makefile,v 1.30 2001/09/16 01:25:50 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.9       smurph     12: .if (${MACHINE_ARCH} == "m88k")
                     13: CFLAGS+=-O0
                     14: .endif
                     15:
1.27      espie      16: SRCS=  arch.c buf.c cmd_exec.c compat.c cond.c dir.c error.c for.c \
                     17:        init.c job.c lowparse.c main.c make.c memory.c parse.c \
                     18:        parsevar.c str.c stats.c suff.c targ.c timestamp.c \
                     19:        var.c varmodifiers.c varname.c
1.26      espie      20: SRCS+= lstAddNew.c lstAppend.c lstConcat.c lstConcatDestroy.c \
                     21:        lstDeQueue.c lstDestroy.c lstDupl.c lstFindFrom.c lstForEachFrom.c \
1.32    ! deraadt    22:        lstInit.c lstInsert.c lstMember.c lstRemove.c lstReplace.c lstSucc.c
1.1       deraadt    23: .PATH: ${.CURDIR}/lst.lib
1.17      espie      24:
                     25:
1.20      espie      26: CLEANFILES+=generate hashconsts.h generate.o regress.o check
                     27:
1.17      espie      28: CLEANFILES+=${LIBOBJS} libohash.a
1.26      espie      29: CLEANFILES+= varhashconsts.h condhashconsts.h generate.o generate
1.17      espie      30:
1.26      espie      31: beforedepend: varhashconsts.h condhashconsts.h
1.17      espie      32: # may need tweaking if you add variable synonyms or change the hash function
1.26      espie      33: MAGICVARSLOTS=77
                     34: MAGICCONDSLOTS=43
1.17      espie      35:
1.26      espie      36: varhashconsts.h: generate
                     37:        ${.OBJDIR}/generate 1 ${MAGICVARSLOTS} >${.TARGET}
1.17      espie      38:
1.26      espie      39: condhashconsts.h: generate
                     40:        ${.OBJDIR}/generate 2 ${MAGICCONDSLOTS} >${.TARGET}
                     41:
1.30      art        42: generate: generate.c stats.c memory.c
                     43:        ${HOSTCC} -o ${.TARGET} ${CFLAGS} ${.ALLSRC} ${LDADD}
1.20      espie      44:
1.27      espie      45: check: regress.o str.o memory.o buf.o
1.20      espie      46:        ${CC} -o ${.TARGET} ${CFLAGS} ${.ALLSRC} ${LDADD}
                     47:
                     48: regress: check
                     49:        ${.OBJDIR}/check
1.17      espie      50:
                     51: # kludge for people who forget to make depend
1.26      espie      52: var.o: varhashconsts.h
1.1       deraadt    53:
                     54: .if make(install)
                     55: SUBDIR+= PSD.doc
                     56: .endif
1.26      espie      57:
                     58: .PHONY:                regress
1.1       deraadt    59:
                     60: .include <bsd.prog.mk>