* samba/configure.in: Use AC_CHECK_TOOL to find AR.
* samba/Makefile.in: Remove useless rules, including defunct dependency tracking. Create libsamba.a from the object files.
Этот коммит содержится в:
родитель
0ff4756f11
Коммит
d92beac560
@ -1,3 +1,9 @@
|
|||||||
|
2001-03-14 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* samba/configure.in: Use AC_CHECK_TOOL to find AR.
|
||||||
|
* samba/Makefile.in: Remove useless rules, including defunct
|
||||||
|
dependency tracking. Create libsamba.a from the object files.
|
||||||
|
|
||||||
2001-03-07 Pavel Roskin <proski@gnu.org>
|
2001-03-07 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* cpio.c (cpio_skip_padding): Warning fix.
|
* cpio.c (cpio_skip_padding): Warning fix.
|
||||||
|
@ -12,13 +12,14 @@ CFLAGS=@CFLAGS@
|
|||||||
CPPFLAGS=@CPPFLAGS@
|
CPPFLAGS=@CPPFLAGS@
|
||||||
LDFLAGS=@LDFLAGS@
|
LDFLAGS=@LDFLAGS@
|
||||||
AWK=@AWK@
|
AWK=@AWK@
|
||||||
|
AR=@AR@
|
||||||
|
|
||||||
INSTALLCMD=@INSTALL@
|
INSTALLCMD=@INSTALL@
|
||||||
|
|
||||||
VPATH=@srcdir@
|
VPATH=@srcdir@
|
||||||
srcdir=@srcdir@
|
srcdir=@srcdir@
|
||||||
builddir=@builddir@
|
builddir=@builddir@
|
||||||
SHELL=/bin/sh
|
SHELL=@SHELL@
|
||||||
|
|
||||||
BASEDIR= @prefix@
|
BASEDIR= @prefix@
|
||||||
BINDIR = @bindir@
|
BINDIR = @bindir@
|
||||||
@ -109,21 +110,11 @@ SAMBAFILES= \
|
|||||||
libsmb/nterr.o \
|
libsmb/nterr.o \
|
||||||
libsmb/smberr.o
|
libsmb/smberr.o
|
||||||
|
|
||||||
LIB_OBJ = lib/charcnv.o lib/charset.o lib/debug.o lib/fault.o \
|
|
||||||
lib/getsmbpass.o lib/interface.o lib/kanji.o lib/md4.o \
|
|
||||||
lib/netmask.o lib/pidfile.o lib/replace.o \
|
|
||||||
lib/signal.o lib/slprintf.o lib/system.o lib/doscalls.o lib/time.o \
|
|
||||||
lib/ufc.o lib/genrand.o lib/username.o lib/access.o lib/smbrun.o \
|
|
||||||
lib/bitmap.o lib/crc32.o lib/snprintf.o \
|
|
||||||
lib/util_str.o lib/util_sid.o \
|
|
||||||
lib/util_unistr.o lib/util_file.o \
|
|
||||||
lib/util.o lib/util_sock.o lib/util_sec.o smbd/ssl.o
|
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
# now the rules...
|
# now the rules...
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
all : CHECK $(SAMBAFILES)
|
all : CHECK libsamba.a
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.SUFFIXES: .c .o
|
.SUFFIXES: .c .o
|
||||||
@ -139,27 +130,16 @@ MAKEDIR = || exec false; \
|
|||||||
mkdir "$$dir" || \
|
mkdir "$$dir" || \
|
||||||
exec false; fi || exec false
|
exec false; fi || exec false
|
||||||
|
|
||||||
# the lines below containing `@MAINT@' are for atomatic dependency tracking
|
libsamba.a: $(SAMBAFILES)
|
||||||
# they will only work with GNU make, gcc and --enable-maintainer-mode
|
$(AR) cr libsamba.a $(SAMBAFILES)
|
||||||
# without --enable-maintainer-mode, they do nothing
|
|
||||||
.c.o: @MAINT@ .deps/.dummy
|
.c.o:
|
||||||
@if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
|
@if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
|
||||||
dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
|
dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
|
||||||
@MAINT@ @if (: >> .deps/$@ || : > .deps/$@) >/dev/null 2>&1; then :; \
|
|
||||||
@MAINT@ else dir=.deps/`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` \
|
|
||||||
@MAINT@ $(MAKEDIR); fi; rm -f .deps/$@ .deps/$@d
|
|
||||||
@echo Compiling $*.c
|
@echo Compiling $*.c
|
||||||
@$(CC) -I. -I$(srcdir) $(FLAGS) -c $< \
|
@$(CC) -I. -I$(srcdir) $(FLAGS) -c $< \
|
||||||
-o $@ @MAINT@ -Wp,-MD,.deps/$@
|
-o $@
|
||||||
@BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
|
@BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
|
||||||
@MAINT@ @sed 's|^'`echo $@ | sed 's,.*/,,'`':|$@:|' \
|
|
||||||
@MAINT@ <.deps/$@ >.deps/$@d && \
|
|
||||||
@MAINT@ rm -f .deps/$@ && : >.deps/.stamp
|
|
||||||
|
|
||||||
bin/.dummy:
|
|
||||||
@if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
|
|
||||||
dir=bin $(MAKEDIR); fi
|
|
||||||
@: >> $@ || : > $@ # what a fancy emoticon!
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
|
||||||
@ -175,13 +155,12 @@ ctags:
|
|||||||
ctags `find . -name "*.[ch]"`
|
ctags `find . -name "*.[ch]"`
|
||||||
|
|
||||||
realclean: clean
|
realclean: clean
|
||||||
-rm -f config.log bin/.dummy
|
-rm -f config.log
|
||||||
-rmdir bin
|
-rmdir bin
|
||||||
|
|
||||||
distclean: realclean
|
distclean: realclean
|
||||||
-rm -f include/config.h include/stamp-h Makefile
|
-rm -f include/config.h include/stamp-h Makefile
|
||||||
-rm -f config.status config.cache so_locations
|
-rm -f config.status config.cache so_locations
|
||||||
-rm -rf .deps
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# This target is for documenation updators. It regenerates
|
# This target is for documenation updators. It regenerates
|
||||||
@ -229,18 +208,3 @@ $(srcdir)/include/config.h.in: $(srcdir)/include/stamp-h.in
|
|||||||
$(srcdir)/include/stamp-h.in: @MAINT@ $(srcdir)/acconfig.h $(srcdir)/configure.in
|
$(srcdir)/include/stamp-h.in: @MAINT@ $(srcdir)/acconfig.h $(srcdir)/configure.in
|
||||||
cd $(srcdir) && $(AUTOHEADER)
|
cd $(srcdir) && $(AUTOHEADER)
|
||||||
@date -u > $@
|
@date -u > $@
|
||||||
|
|
||||||
# automatic dependency tracking rules
|
|
||||||
.deps/.dummy:
|
|
||||||
@if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
|
|
||||||
dir=.deps $(MAKEDIR); fi
|
|
||||||
@: >> $@ || : > $@ # what a fancy emoticon!
|
|
||||||
|
|
||||||
.deps/.stamp: .deps/.dummy
|
|
||||||
@:
|
|
||||||
|
|
||||||
.deps/depend: .deps/.stamp
|
|
||||||
@echo Updating dependencies
|
|
||||||
@: | cat `find .deps -type f -name \*d` >$@ 2>/dev/null || true
|
|
||||||
|
|
||||||
@MAINT@-include .deps/depend
|
|
||||||
|
@ -20,6 +20,7 @@ dnl Checks for programs.
|
|||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
AC_PROG_AWK
|
AC_PROG_AWK
|
||||||
|
AC_CHECK_TOOL(AR, ar, ar)
|
||||||
|
|
||||||
dnl Check if C compiler understands -c and -o at the same time
|
dnl Check if C compiler understands -c and -o at the same time
|
||||||
AC_PROG_CC_C_O
|
AC_PROG_CC_C_O
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user