1de79b25e850b64d6db518070bcd6ed1a2bb3d2a
[tinc] / src / Makefile.am
1 ## Produce this file with automake to get Makefile.in
2 # $Id: Makefile.am,v 1.9 2002/04/13 11:23:46 zarq Exp $
3
4 SUBDIRS = pokey
5
6 sbin_PROGRAMS = tincd
7
8 EXTRA_DIST = linux/device.c freebsd/device.c openbsd/device.c solaris/device.c
9
10 tincd_SOURCES = conf.c connection.c device.c edge.c event.c graph.c logging.c meta.c net.c net_packet.c net_setup.c     \
11         net_socket.c netutl.c node.c process.c protocol.c protocol_auth.c protocol_edge.c protocol_misc.c       \
12         protocol_key.c protocol_subnet.c route.c subnet.c tincd.c
13
14 INCLUDES = @INCLUDES@ -I$(top_builddir) -I$(top_srcdir)/lib -I$(top_srcdir)/intl
15
16 noinst_HEADERS = conf.h connection.h device.h edge.h event.h graph.h logging.h meta.h net.h netutl.h node.h process.h   \
17         protocol.h route.h subnet.h
18
19 LIBS = @LIBS@ @INTLLIBS@
20
21 tincd_LDADD = \
22         $(top_builddir)/lib/libtinc.a
23
24 localedir = $(datadir)/locale
25
26 CFLAGS = @CFLAGS@ -DPKGLIBDIR=$(pkglibdir) -DCONFDIR=\"$(sysconfdir)\"  \
27         -DLOCALEDIR=\"$(localedir)\" -DLOCALSTATEDIR=\"$(localstatedir)\"
28
29 dist-hook:
30         rm -f `find . -type l`
31
32 lint: $(tincd_SOURCES)
33         lclint -nullassign -nullret +trytorecover +posixlib -skipansiheaders -skipposixheaders +gnuextensions -I/usr/include -I/usr/lib/gcc-lib/i386-linux/2.95.2/include -I. -I/home/zarq/p/tinc/cvs/cabal/src -I.. -I.. -I/home/zarq/p/tinc/cvs/cabal/lib -I/home/zarq/p/tinc/cvs/cabal/intl -D_POSIX_SOURCE -D__ELF__ -Dunix -D__i386__ -Dlinux -DHAVE_CONFIG_H -DPKGLIBDIR=/usr/local/lib/tinc -DCONFDIR=\"/usr/local/etc\" -DLOCALEDIR=\"/usr/local/share/locale\" $^