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

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

1.18    ! espie       1: #      $OpenBSD: Makefile,v 1.17 2000/06/23 16:27:29 espie Exp $
1.1       deraadt     2:
                      3: PROG=  make
1.17      espie       4: CFLAGS+= -I${.OBJDIR} -I${.CURDIR} -Wall -Wno-char-subscripts -Wno-unused -Wstrict-prototypes#-Wmissing-prototypes -Wstrict-prototypes
1.9       smurph      5:
                      6: .if (${MACHINE_ARCH} == "m88k")
                      7: CFLAGS+=-O0
                      8: .endif
                      9:
1.18    ! espie      10: SRCS=  arch.c buf.c compat.c cond.c dir.c error.c for.c hash.c job.c lowparse.c \
        !            11:        main.c make.c parse.c str.c suff.c targ.c var.c #util.c
1.1       deraadt    12: SRCS+= lstAppend.c lstAtEnd.c lstAtFront.c lstClose.c lstConcat.c \
1.16      espie      13:        lstConcatDestroy.c lstDeQueue.c lstDestroy.c lstDupl.c lstEnQueue.c \
                     14:        lstFindFrom.c lstForEachFrom.c \
                     15:        lstInit.c lstInsert.c lstIsAtEnd.c lstIsEmpty.c \
1.1       deraadt    16:        lstMember.c lstNext.c lstOpen.c lstRemove.c lstReplace.c lstSucc.c
                     17: .PATH: ${.CURDIR}/lst.lib
1.17      espie      18:
                     19:
                     20: make: libohash.a
                     21: .PATH:  ${.CURDIR}/ohash
                     22: CFLAGS+=-I${.CURDIR}/ohash
                     23: LDADD=-L${.OBJDIR} -lohash
                     24:
                     25: LIBOBJS= hash_create_entry.o hash_delete.o hash_do.o hash_entries.o \
                     26:     hash_enum.o hash_init.o hash_interval.o \
                     27:     hash_lookup_interval.o hash_lookup_memory.o hash_lookup_string.o \
                     28:     hash_qlookup.o hash_qlookupi.o
                     29:
                     30: libohash.a: ${LIBOBJS}
                     31:        rm -f $@
                     32:        ar cq $@ `lorder ${LIBOBJS}|tsort`
                     33:        ranlib $@
                     34:
                     35: CLEANFILES+=${LIBOBJS} libohash.a
                     36:
                     37: beforedepend: hashconsts.h
                     38: # may need tweaking if you add variable synonyms or change the hash function
                     39: MAGICSLOTS=34
                     40:
                     41: hashconsts.h: generate
                     42:        ${.OBJDIR}/generate ${MAGICSLOTS} >${.TARGET}
                     43:
                     44: generate: generate.o error.o libohash.a
                     45:        ${CC} -o ${.TARGET} ${CFLAGS} ${.ALLSRC} ${LDADD}
                     46:
                     47: # kludge for people who forget to make depend
                     48: ${.CURDIR}/var.c: hashconsts.h
1.1       deraadt    49:
                     50: .if make(install)
                     51: SUBDIR+= PSD.doc
                     52: .endif
                     53:
                     54: .include <bsd.prog.mk>