File: Makefile.in

package info (click to toggle)
hesiod 3.0.2-20
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 716 kB
  • ctags: 111
  • sloc: ansic: 1,269; sh: 236; makefile: 142
file content (102 lines) | stat: -rw-r--r-- 3,243 bytes parent folder | download | duplicates (5)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# $Id: Makefile.in,v 1.4.2.1 1997/01/03 21:02:55 ghudson Exp $

SHELL=/bin/sh
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
RANLIB=@RANLIB@
VPATH=@srcdir@
srcdir=@srcdir@
top_srcdir=@top_srcdir@
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
libdir=@libdir@
includedir=@includedir@
mandir=@mandir@
sysconfdir=@sysconfdir@
lbindir=@lbindir@

CC=@CC@
CPPFLAGS=@CPPFLAGS@
CFLAGS=@CFLAGS@
LDFLAGS=@LDFLAGS@
LIBS=@LIBS@
ALL_CFLAGS=-I. -DSYSCONFDIR=\"${sysconfdir}\" ${CPPFLAGS} ${CFLAGS}
OBJS=hesiod.o hesmailhost.o hespwnam.o hesservbyname.o hescompat.o
PICOBJS=$(OBJS:.o=.po)

all: libhesiod.so libhesiod.a hesinfo hestest

libhesiod.a: ${OBJS}
	ar cru $@ ${OBJS}
	${RANLIB} $@

libhesiod.so: ${PICOBJS}
	${CC} -shared -Wl,-soname,libhesiod.so.0 $(LIBS) -o $@ ${PICOBJS}

hesinfo: hesinfo.o libhesiod.so
	${CC} ${LDFLAGS} -o $@ hesinfo.o -L. -lhesiod ${LIBS}

hestest: hestest.o libhesiod.a
	${CC} ${LDFLAGS} -o $@ hestest.o -L. -lhesiod ${LIBS}

${OBJS} ${PICOBJS}: hesiod.h resscan.h

.SUFFIXES: .c .o .po

.c.o:
	${CC} -c ${ALL_CFLAGS} $<

.c.po:
	${CC} -c -o $@ -fPIC ${ALL_CFLAGS} $<

check:
	HESIOD_CONFIG=${srcdir}/hesiod.config.sample \
		./hestest ${srcdir}/hestest.conf

install:
	${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
	${top_srcdir}/mkinstalldirs ${DESTDIR}${lbindir}
	${top_srcdir}/mkinstalldirs ${DESTDIR}${includedir}
	${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
	${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man3
	${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man5
	${INSTALL} -c -m 644 libhesiod.a ${DESTDIR}${libdir}
	${RANLIB} ${DESTDIR}${libdir}/libhesiod.a
	chmod u-w ${DESTDIR}${libdir}/libhesiod.a
	${INSTALL} -c -m 644 libhesiod.so ${DESTDIR}${libdir}/libhesiod.so.0
	ln -s libhesiod.so.0 ${DESTDIR}${libdir}/libhesiod.so
	${INSTALL_PROGRAM} -c -m 555 hesinfo ${DESTDIR}${lbindir}
	${INSTALL} -c -m 444 ${srcdir}/hesiod.h ${DESTDIR}${includedir}
	${INSTALL} -c -m 444 ${srcdir}/hesinfo.1 ${DESTDIR}${mandir}/man1
	${INSTALL} -c -m 444 ${srcdir}/hesiod.3 ${DESTDIR}${mandir}/man3
	${INSTALL} -c -m 444 ${srcdir}/hesiod_end.3 \
		${DESTDIR}${mandir}/man3
	${INSTALL} -c -m 444 ${srcdir}/hesiod_free_list.3 \
		${DESTDIR}${mandir}/man3
	${INSTALL} -c -m 444 ${srcdir}/hesiod_free_passwd.3 \
		${DESTDIR}${mandir}/man3
	${INSTALL} -c -m 444 ${srcdir}/hesiod_free_postoffice.3 \
		${DESTDIR}${mandir}/man3
	${INSTALL} -c -m 444 ${srcdir}/hesiod_free_servent.3 \
		${DESTDIR}${mandir}/man3
	${INSTALL} -c -m 444 ${srcdir}/hesiod_getmailhost.3 \
		${DESTDIR}${mandir}/man3
	${INSTALL} -c -m 444 ${srcdir}/hesiod_getpwnam.3 \
		${DESTDIR}${mandir}/man3
	${INSTALL} -c -m 444 ${srcdir}/hesiod_getpwuid.3 \
		${DESTDIR}${mandir}/man3
	${INSTALL} -c -m 444 ${srcdir}/hesiod_getservbyname.3 \
		${DESTDIR}${mandir}/man3
	${INSTALL} -c -m 444 ${srcdir}/hesiod_init.3 ${DESTDIR}${mandir}/man3
	${INSTALL} -c -m 444 ${srcdir}/hesiod_resolve.3 \
		${DESTDIR}${mandir}/man3
	${INSTALL} -c -m 444 ${srcdir}/hesiod_to_bind.3 \
		${DESTDIR}${mandir}/man3
	${INSTALL} -c -m 444 ${srcdir}/hesiod.conf.5 ${DESTDIR}${mandir}/man5

clean:
	rm -f ${OBJS} ${PICOBJS} libhesiod.so libhesiod.a hesinfo.o hesinfo hestest.o hestest

distclean: clean
	rm -f config.cache config.log config.status Makefile config.h