2011-10-22 09:43:41 +01:00
|
|
|
srcdir=@srcdir@
|
|
|
|
abs_top_builddir=@abs_top_builddir@
|
|
|
|
include @TOP_OBJDIR@/src/config/Makefile.config
|
2012-09-16 19:54:48 +01:00
|
|
|
include @TOP_OBJDIR@/src/config/Makefile.pthread
|
2011-10-22 09:43:41 +01:00
|
|
|
|
2012-05-07 21:52:16 +01:00
|
|
|
MODULE_CFLAGS = -I$(srcdir)/../..
|
2011-10-22 09:43:41 +01:00
|
|
|
|
2012-09-16 19:54:48 +01:00
|
|
|
LIBS=../tap/libtap.a $(abs_top_builddir)/src/opr/liboafs_opr.la
|
2011-10-22 09:43:41 +01:00
|
|
|
|
2012-03-23 21:26:14 +00:00
|
|
|
tests = dict-t fmt-t jhash-t queues-t rbtree-t softsig-helper time-t uuid-t
|
2011-10-22 09:43:41 +01:00
|
|
|
|
|
|
|
all check test tests: $(tests)
|
|
|
|
|
2012-10-30 11:25:02 +00:00
|
|
|
dict-t: dict-t.o
|
|
|
|
$(LT_LDRULE_static) dict-t.o $(LIBS) $(XLIBS)
|
|
|
|
|
2014-03-30 03:56:21 +01:00
|
|
|
fmt-t: fmt-t.o
|
|
|
|
$(LT_LDRULE_static) fmt-t.o $(LIBS) $(XLIBS)
|
|
|
|
|
2011-10-22 09:43:41 +01:00
|
|
|
queues-t: queues-t.o
|
2012-09-16 19:54:48 +01:00
|
|
|
$(LT_LDRULE_static) queues-t.o ../tap/libtap.a $(XLIBS)
|
2011-10-22 09:43:41 +01:00
|
|
|
|
2011-10-22 11:22:51 +01:00
|
|
|
rbtree-t: rbtree-t.o $(LIBS)
|
2012-09-16 19:54:48 +01:00
|
|
|
$(LT_LDRULE_static) rbtree-t.o ../tap/libtap.a $(LIBS) $(XLIBS)
|
2011-10-22 11:22:51 +01:00
|
|
|
|
2011-11-20 23:40:51 +00:00
|
|
|
jhash-t: jhash-t.o
|
2012-09-16 19:54:48 +01:00
|
|
|
$(LT_LDRULE_static) jhash-t.o ../tap/libtap.a $(XLIBS)
|
2011-11-20 23:40:51 +00:00
|
|
|
|
2012-05-15 16:45:57 +01:00
|
|
|
time-t: time-t.o
|
2012-09-16 19:54:48 +01:00
|
|
|
$(LT_LDRULE_static) time-t.o ../tap/libtap.a $(XLIBS)
|
2012-05-15 16:45:57 +01:00
|
|
|
|
opr: Add UUID handling functions
Add a set of functions to the opr library to handle creating and
manipulating UUIDs.
The opr_uuid_t type is held as a 16 octet character string, which
comprises the UUID encoded into network byte order. This is the
primary form for manipulating UUIDs with this library, as it avoids
any nbo/hbo problems.
For applications which require raw access to the UUID components,
the opr_uuid_unpacked structure is provided, and
opr_uuid_pack/opr_uuid_unpack can be used to convert to and from
this format.
Finally, functions to print the UUID as a string, and parse a UUID
from a string, are provided. When printing, we use the standard UUID
format of 000000-0000-0000-0000-00000000. However, the afsUUID library
used to print UUIDs as 000000-0000-0000-00-00-00000000, so we also
accept this format.
Change-Id: I78ef79b7ab8ae15fb955c6495118722875c94f8d
Reviewed-on: http://gerrit.openafs.org/7977
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
2012-07-17 16:50:59 +01:00
|
|
|
uuid-t: uuid-t.o
|
2012-09-16 19:54:48 +01:00
|
|
|
$(LT_LDRULE_static) uuid-t.o ../tap/libtap.a $(LIBS) $(XLIBS)
|
opr: Add UUID handling functions
Add a set of functions to the opr library to handle creating and
manipulating UUIDs.
The opr_uuid_t type is held as a 16 octet character string, which
comprises the UUID encoded into network byte order. This is the
primary form for manipulating UUIDs with this library, as it avoids
any nbo/hbo problems.
For applications which require raw access to the UUID components,
the opr_uuid_unpacked structure is provided, and
opr_uuid_pack/opr_uuid_unpack can be used to convert to and from
this format.
Finally, functions to print the UUID as a string, and parse a UUID
from a string, are provided. When printing, we use the standard UUID
format of 000000-0000-0000-0000-00000000. However, the afsUUID library
used to print UUIDs as 000000-0000-0000-00-00-00000000, so we also
accept this format.
Change-Id: I78ef79b7ab8ae15fb955c6495118722875c94f8d
Reviewed-on: http://gerrit.openafs.org/7977
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
2012-07-17 16:50:59 +01:00
|
|
|
|
2012-03-23 21:26:14 +00:00
|
|
|
softsig-helper: softsig-helper.o $(LIBS)
|
|
|
|
$(LT_LDRULE_static) softsig-helper.o $(LIBS) $(XLIBS)
|
|
|
|
|
2011-10-22 09:43:41 +01:00
|
|
|
clean distclean:
|
Clean up our cleaning
'make clean' and 'make maintainer-clean' still leave around a fair
number of droppings, prior to this commit.
We were not descending into the 'tests' top-level directory while
cleaning. Furthermore, tests/opr/Makefile needed $(LT_CLEAN), and
tests/rx/Makefile needed to spell it correctly.
The libtoolization places a lot of files to be removed in the
'pristine' target.
The processing used to implement the =include directive in the pod
sources for the man pages leaves around the non-.in versions of
files; we should clean that up in the 'pristine' target as well.
The 'pristine' target should likewise remove the man pages which
are generated from the pod files.
Additionally, the documentation build uses a Doxyfile which is
output by configure; that should be removed (if present) by the
'distclean' target.
When hcrypto was converted to libtool, the use of ${OBJECTS} in
the clean target was missed, so we were leaving around most of the
actual object files -- $(LT_CLEAN) does not handle this for us.
Change the rule to remove *.o as is done elsewhere.
The conversion of libafsrpc to libtool added a convenience library
libafsrpc_sys.la, and changed how syscall.o was generated on
most architectures, to be the result of compiling an empty .c file
(instead of just an empty .o file). This introduced a new
intermediate file, syscall.c, which must be cleaned up.
tvolser was only listing volserver and not vos in its list of
executables to remove while cleaning.
The conversion of venus/test to libtool was not done quite right.
Makefile.libtool and the .lo suffix are only needed when libtool
is being used to link *libraries*; just Makefile.pthread suffices
when libtool is being used to link executables. As such, remove
the inclusion of Makefile.libtool, and change the .lo targets back
to regular .o ones, and add back *.o to the list of files to remove
in the 'clean' target (it was needed there even without the
other changes to that Makefile).
Change-Id: Ifbc3eee4ad2dce54df991301bc5edd11eb29a24a
Reviewed-on: http://gerrit.openafs.org/11532
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
2014-10-08 21:51:33 +01:00
|
|
|
$(LT_CLEAN)
|
2011-10-22 09:43:41 +01:00
|
|
|
$(RM) -f $(tests) *.o core
|