1 noinst_PYTHON = generator.py gen-defaults.py
3 libglusterfs_la_CFLAGS = $(GF_CFLAGS) $(GF_DARWIN_LIBGLUSTERFS_CFLAGS) \
4 -DDATADIR=\"$(localstatedir)\"
6 libglusterfs_la_CPPFLAGS = $(GF_CPPFLAGS) -D__USE_FILE_OFFSET64 \
7 -DXLATORDIR=\"$(libdir)/glusterfs/$(PACKAGE_VERSION)/xlator\" \
8 -I$(top_srcdir)/rpc/rpc-lib/src/ -I$(CONTRIBDIR)/rbtree \
9 -I$(CONTRIBDIR)/libexecinfo ${ARGP_STANDALONE_CPPFLAGS} \
10 -DSBIN_DIR=\"$(sbindir)\" -I$(CONTRIBDIR)/timer-wheel
12 libglusterfs_la_LIBADD = @LEXLIB@ $(ZLIB_LIBS) $(MATH_LIB) $(UUID_LIBS)
13 libglusterfs_la_LDFLAGS = -version-info $(LIBGLUSTERFS_LT_VERSION)
15 lib_LTLIBRARIES = libglusterfs.la
16 libgfchangelogdir = $(includedir)/glusterfs/gfchangelog
18 CONTRIB_BUILDDIR = $(top_builddir)/contrib
20 libglusterfs_la_SOURCES = dict.c xlator.c logging.c \
21 hashfn.c common-utils.c timer.c inode.c call-stub.c \
22 compat.c fd.c compat-errno.c event.c mem-pool.c gf-dirent.c syscall.c \
23 iobuf.c globals.c statedump.c stack.c checksum.c daemon.c timespec.c \
24 $(CONTRIBDIR)/rbtree/rb.c rbthash.c store.c latency.c \
25 graph.c syncop.c graph-print.c trie.c run.c options.c fd-lk.c \
26 circ-buff.c event-history.c gidcache.c ctx.c client_t.c event-poll.c \
27 event-epoll.c syncop-utils.c cluster-syncop.c refcount.c \
28 $(CONTRIBDIR)/libgen/basename_r.c \
29 $(CONTRIBDIR)/libgen/dirname_r.c $(CONTRIBDIR)/stdlib/gf_mkostemp.c \
30 strfd.c parse-utils.c $(CONTRIBDIR)/mount/mntent.c \
31 $(CONTRIBDIR)/libexecinfo/execinfo.c quota-common-utils.c rot-buffs.c \
32 $(CONTRIBDIR)/timer-wheel/timer-wheel.c \
33 $(CONTRIBDIR)/timer-wheel/find_last_bit.c tw.c default-args.c
35 nodist_libglusterfs_la_SOURCES = y.tab.c graph.lex.c defaults.c
37 BUILT_SOURCES = graph.lex.c defaults.c
39 noinst_HEADERS = common-utils.h defaults.h default-args.h dict.h glusterfs.h \
41 logging.h xlator.h stack.h timer.h list.h inode.h call-stub.h compat.h \
42 fd.h revision.h compat-errno.h event.h mem-pool.h byte-order.h \
43 gf-dirent.h locking.h syscall.h iobuf.h globals.h statedump.h \
44 checksum.h daemon.h $(CONTRIBDIR)/rbtree/rb.h store.h\
45 rbthash.h iatt.h latency.h mem-types.h syncop.h cluster-syncop.h \
46 graph-utils.h trie.h refcount.h \
47 run.h options.h lkowner.h fd-lk.h circ-buff.h event-history.h \
48 gidcache.h client_t.h glusterfs-acl.h glfs-message-id.h \
49 template-component-messages.h strfd.h syncop-utils.h parse-utils.h \
50 libglusterfs-messages.h ctr-messages.h \
51 $(CONTRIBDIR)/mount/mntent_compat.h lvm-defaults.h \
52 $(CONTRIBDIR)/libexecinfo/execinfo_compat.h \
53 unittest/unittest.h quota-common-utils.h rot-buffs.h \
54 $(CONTRIBDIR)/timer-wheel/timer-wheel.h compat-uuid.h \
58 # FIXME: unbundle libuuid, see compat-uuid.h.
59 libglusterfs_la_SOURCES += $(CONTRIBDIR)/uuid/clear.c \
60 $(CONTRIBDIR)/uuid/copy.c $(CONTRIBDIR)/uuid/gen_uuid.c \
61 $(CONTRIBDIR)/uuid/pack.c $(CONTRIBDIR)/uuid/parse.c \
62 $(CONTRIBDIR)/uuid/unparse.c $(CONTRIBDIR)/uuid/uuid_time.c \
63 $(CONTRIBDIR)/uuid/compare.c $(CONTRIBDIR)/uuid/isnull.c \
64 $(CONTRIBDIR)/uuid/unpack.c
67 libgfchangelog_HEADERS = changelog.h
69 EXTRA_DIST = graph.l graph.y defaults-tmpl.c
71 graph.lex.c: graph.l y.tab.h
72 $(LEX) -Pgraphyy -t $(srcdir)/graph.l > $@
76 $(YACC) -p graphyy -d $(srcdir)/graph.y
78 defaults.c: defaults-tmpl.c generator.py gen-defaults.py
79 $(PYTHON) $(srcdir)/gen-defaults.py $(srcdir)/defaults-tmpl.c > $@
81 CLEANFILES = graph.lex.c y.tab.c y.tab.h defaults.c
84 CLEANFILES += *.gcda *.gcno *_xunit.xml