blob: 97f1d18c85139ff9340d6970879c8f6a4afadf89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# $OpenBSD: Makefile,v 1.36 2002/07/25 18:40:24 art Exp $
PROG= make
CFLAGS+= -I${.OBJDIR} -I${.CURDIR}
CDIAGFLAGS=-Wall -W -Wno-char-subscripts -Wstrict-prototypes -pedantic \
-Wmissing-prototypes
CFLAGS+=-DUSE_TIMESPEC
CFLAGS+=-DHAS_BOOL_H
CFLAGS+=-DHAS_PATHS_H
CFLAGS+=-DHAS_EXTENDED_GETCWD
#CFLAGS+=-DHAS_STATS
SRCS= arch.c buf.c cmd_exec.c compat.c cond.c dir.c error.c for.c \
init.c job.c lowparse.c main.c make.c memory.c parse.c \
parsevar.c str.c stats.c suff.c targ.c timestamp.c \
var.c varmodifiers.c varname.c
SRCS+= lstAddNew.c lstAppend.c lstConcat.c lstConcatDestroy.c \
lstDeQueue.c lstDestroy.c lstDupl.c lstFindFrom.c lstForEachFrom.c \
lstInsert.c lstMember.c lstRemove.c lstReplace.c lstSucc.c
.PATH: ${.CURDIR}/lst.lib
CLEANFILES+=generate hashconsts.h generate.o regress.o check
CLEANFILES+=${LIBOBJS} libohash.a
CLEANFILES+= varhashconsts.h condhashconsts.h generate.o generate
beforedepend: varhashconsts.h condhashconsts.h
# may need tweaking if you add variable synonyms or change the hash function
MAGICVARSLOTS=77
MAGICCONDSLOTS=65
varhashconsts.h: generate
${.OBJDIR}/generate 1 ${MAGICVARSLOTS} >${.TARGET}
condhashconsts.h: generate
${.OBJDIR}/generate 2 ${MAGICCONDSLOTS} >${.TARGET}
generate: generate.c stats.c memory.c
${HOSTCC} ${LDSTATIC} -o ${.TARGET} ${CFLAGS} ${.ALLSRC} ${LDADD}
check: regress.o str.o memory.o buf.o
${CC} -o ${.TARGET} ${CFLAGS} ${.ALLSRC} ${LDADD}
regress: check
${.OBJDIR}/check
# kludge for people who forget to make depend
var.o: varhashconsts.h
cond.o: condhashconsts.h
.if make(install)
SUBDIR+= PSD.doc
.endif
.PHONY: regress
.include <bsd.prog.mk>
|