diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-09-16 16:30:14 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-09-16 16:30:14 +0200 |
commit | 0888ffa2b7382a1c4781ae54bad53eac3b229365 (patch) | |
tree | 5a0fb9930c68f307954f87a9aa97e83740d3ab59 /replace/Makefile.in | |
parent | ec1c854f2175823bd1ad39c2e272d1b3fab80bf1 (diff) | |
download | samba-0888ffa2b7382a1c4781ae54bad53eac3b229365.tar.gz samba-0888ffa2b7382a1c4781ae54bad53eac3b229365.tar.bz2 samba-0888ffa2b7382a1c4781ae54bad53eac3b229365.zip |
Make Samba 3 and Samba 4 both use the same single copy of libreplace.
Diffstat (limited to 'replace/Makefile.in')
-rw-r--r-- | replace/Makefile.in | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/replace/Makefile.in b/replace/Makefile.in new file mode 100644 index 0000000000..c989835a8d --- /dev/null +++ b/replace/Makefile.in @@ -0,0 +1,63 @@ +#!gmake +# +CC = @CC@ +prefix = @prefix@ +exec_prefix = @exec_prefix@ +bindir = @bindir@ +includedir = @includedir@ +libdir = @libdir@ +VPATH = @libreplacedir@ +srcdir = @srcdir@ +builddir = @builddir@ +INSTALL = @INSTALL@ +LIBS = @LIBS@ + +.PHONY: test all showflags install installcheck clean distclean realdistclean + +CFLAGS=-I. @CFLAGS@ +LDFLAGS=@LDFLAGS@ + +OBJS = @LIBREPLACEOBJ@ + +all: showflags libreplace.a testsuite + +showflags: + @echo 'libreplace will be compiled with flags:' + @echo ' CC = $(CC)' + @echo ' CFLAGS = $(CFLAGS)' + @echo ' LDFLAGS= $(LDFLAGS)' + @echo ' LIBS = $(LIBS)' + +install: all + mkdir -p $(libdir) + $(INSTALL) libreplace.a $(libdir) + +libreplace.a: $(OBJS) + ar -rcsv $@ $(OBJS) + +test: all + ./testsuite + +installcheck: install test + +TEST_OBJS = test/testsuite.o test/os2_delete.o test/strptime.o test/getifaddrs.o + +testsuite: libreplace.a $(TEST_OBJS) + $(CC) -o testsuite $(TEST_OBJS) -L. -lreplace $(LDFLAGS) $(LIBS) + +.c.o: + @echo Compiling $*.c + @mkdir -p `dirname $@` + @$(CC) $(CFLAGS) -c $< -o $@ + +clean: + rm -f *.o test/*.o *.a testsuite + rm -f testfile.dat + +distclean: clean + rm -f *~ */*~ + rm -f config.log config.status config.h config.cache + rm -f Makefile + +realdistclean: distclean + rm -f configure config.h.in |