Annotation of src/usr.bin/make/Makefile, Revision 1.21
1.21 ! espie 1: # $OpenBSD: Makefile,v 1.20 2000/07/17 23:01:20 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 \
1.21 ! espie 11: main.c make.c parse.c str.c suff.c targ.c var.c varmodifiers.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:
1.20 espie 35: CLEANFILES+=generate hashconsts.h generate.o regress.o check
36:
1.17 espie 37: CLEANFILES+=${LIBOBJS} libohash.a
1.19 espie 38: CLEANFILES+= hashconsts.h generate.o generate
1.17 espie 39:
40: beforedepend: hashconsts.h
41: # may need tweaking if you add variable synonyms or change the hash function
42: MAGICSLOTS=34
43:
44: hashconsts.h: generate
45: ${.OBJDIR}/generate ${MAGICSLOTS} >${.TARGET}
46:
47: generate: generate.o error.o libohash.a
48: ${CC} -o ${.TARGET} ${CFLAGS} ${.ALLSRC} ${LDADD}
1.20 espie 49:
50: check: regress.o str.o error.o buf.o libohash.a
51: ${CC} -o ${.TARGET} ${CFLAGS} ${.ALLSRC} ${LDADD}
52:
53: regress: check
54: ${.OBJDIR}/check
1.17 espie 55:
56: # kludge for people who forget to make depend
1.19 espie 57: var.o: hashconsts.h
1.1 deraadt 58:
59: .if make(install)
60: SUBDIR+= PSD.doc
61: .endif
62:
63: .include <bsd.prog.mk>