diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-09-04 12:21:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:17:05 -0500 |
commit | 38fdde5d9bf15b10caa60ee216d278ba8d870c2e (patch) | |
tree | f5da0712c3bd704a0af17aa6d12d8c616a2d6e1b /source4/lib/replace/Makefile.in | |
parent | f6f4d868ea7d3a01ec28c6855240882911cae039 (diff) | |
download | samba-38fdde5d9bf15b10caa60ee216d278ba8d870c2e.tar.gz samba-38fdde5d9bf15b10caa60ee216d278ba8d870c2e.tar.bz2 samba-38fdde5d9bf15b10caa60ee216d278ba8d870c2e.zip |
r18031: Merge my replace fixes:
* libreplace can now build stand-alone
* add stub testsuite for libreplace
* make talloc/tdb/ldb use libreplace
(This used to be commit fe7ca4b1454e01a33ed0d53791ebffdd349298b4)
Diffstat (limited to 'source4/lib/replace/Makefile.in')
-rw-r--r-- | source4/lib/replace/Makefile.in | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/source4/lib/replace/Makefile.in b/source4/lib/replace/Makefile.in new file mode 100644 index 0000000000..916b5df3d9 --- /dev/null +++ b/source4/lib/replace/Makefile.in @@ -0,0 +1,37 @@ +CC = @CC@ +prefix = @prefix@ +exec_prefix = @exec_prefix@ +bindir = @bindir@ +includedir = @includedir@ +libdir = @libdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ +builddir = @builddir@ +INSTALL = @INSTALL@ + +OBJS = dlfcn.o getpass.o replace.o snprintf.o + +all: libreplace.a + +install: all + $(INSTALL) libreplace.a $(libdir) + +libreplace.a: $(OBJS) + ar -rv $@ $(OBJS) + @-ranlib $@ + +test: testsuite + ./testsuite + +TEST_OBJS = test/testsuite.o + +testsuite: libreplace.a $(TEST_OBJS) + $(CC) -o testsuite $(TEST_OBJS) + +.c.o: + @echo Compiling $*.c + @mkdir -p `dirname $@` + $(CC) $(CFLAGS) -c $< -o $@ + +clean: + rm -f *.o |