Makefile.in 1.04 KB
Newer Older
Bob Halley's avatar
Bob Halley committed
1

Bob Halley's avatar
Bob Halley committed
2
3
4
5
srcdir =	@srcdir@
VPATH =		@srcdir@
top_srcdir =	@top_srcdir@

Bob Halley's avatar
Bob Halley committed
6
7
8
9
10
11
12
13
14
@BIND9_VERSION@

CINCLUDES =	-I${srcdir}/../isc/unix/include \
		-I${srcdir}/../isc/pthreads/include \
		-I${srcdir}/../isc/include \
		-I${srcdir}/include
CDEFINES =
CWARNINGS =

Bob Halley's avatar
Bob Halley committed
15
OBJS =		name.o db.o rbt.o rbtdb.o rdata.o rdatalist.o rdataset.o \
16
		result.o version.o rdataslab.o master.o
Bob Halley's avatar
Bob Halley committed
17

Bob Halley's avatar
Bob Halley committed
18
SUBDIRS =	includexo
Mark Andrews's avatar
Mark Andrews committed
19
TARGETS =	include/dns/enumtype.h include/dns/enumclass.h timestamp
Bob Halley's avatar
Bob Halley committed
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

@BIND9_MAKE_RULES@

version.o: version.c
	${CC} ${ALL_CFLAGS} -DVERSION=\"${VERSION}\" -c $<

libdns.a: ${OBJS}
	${AR} cruv $@ ${OBJS}

timestamp: libdns.a
	${RANLIB} libdns.a
	touch timestamp

installdirs:
	if [ ! -d ${libdir} ]; then \
		mkdir ${libdir} ; \
	fi

install:: timestamp installdirs
	${INSTALL_DATA} libdns.a ${libdir}

41
clean distclean::
Bob Halley's avatar
Bob Halley committed
42
	rm -f libdns.a timestamp
Bob Halley's avatar
Bob Halley committed
43
	rm -f gen code.h include/dns/enumtype.h include/dns/enumclass.h
44
45
46

rdata.o: code.h

Mark Andrews's avatar
Mark Andrews committed
47
48
49
50
51
52
include/dns/enumtype.h: gen
	./gen -t > $@

include/dns/enumclass.h: gen
	./gen -c > $@

53
54
55
56
57
code.h:	gen
	./gen > code.h

gen: gen.c
	${CC} ${ALL_CFLAGS} -o $@ $?