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

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

1.35    ! espie       1: #      $OpenBSD: Makefile,v 1.34 2002/04/22 21:45:01 miod 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:
                     23:
1.20      espie      24: CLEANFILES+=generate hashconsts.h generate.o regress.o check
                     25:
1.17      espie      26: CLEANFILES+=${LIBOBJS} libohash.a
1.26      espie      27: CLEANFILES+= varhashconsts.h condhashconsts.h generate.o generate
1.17      espie      28:
1.26      espie      29: beforedepend: varhashconsts.h condhashconsts.h
1.17      espie      30: # may need tweaking if you add variable synonyms or change the hash function
1.26      espie      31: MAGICVARSLOTS=77
1.35    ! espie      32: MAGICCONDSLOTS=65
1.17      espie      33:
1.26      espie      34: varhashconsts.h: generate
                     35:        ${.OBJDIR}/generate 1 ${MAGICVARSLOTS} >${.TARGET}
1.17      espie      36:
1.26      espie      37: condhashconsts.h: generate
                     38:        ${.OBJDIR}/generate 2 ${MAGICCONDSLOTS} >${.TARGET}
                     39:
1.30      art        40: generate: generate.c stats.c memory.c
                     41:        ${HOSTCC} -o ${.TARGET} ${CFLAGS} ${.ALLSRC} ${LDADD}
1.20      espie      42:
1.27      espie      43: check: regress.o str.o memory.o buf.o
1.20      espie      44:        ${CC} -o ${.TARGET} ${CFLAGS} ${.ALLSRC} ${LDADD}
                     45:
                     46: regress: check
                     47:        ${.OBJDIR}/check
1.17      espie      48:
                     49: # kludge for people who forget to make depend
1.26      espie      50: var.o: varhashconsts.h
1.35    ! espie      51: cond.o: condhashconsts.h
1.1       deraadt    52:
                     53: .if make(install)
                     54: SUBDIR+= PSD.doc
                     55: .endif
1.26      espie      56:
                     57: .PHONY:                regress
1.1       deraadt    58:
                     59: .include <bsd.prog.mk>