Link to functions in lib/ only if they are not available on the system.

Avoid duplicating list of functions.
Henning Meier-Geinitz <henning@meier-geinitz.de>
DEVEL_2_0_BRANCH-1
Henning Geinitz 2002-02-10 18:38:13 +00:00
rodzic c1d3afc64f
commit 8f95b78977
2 zmienionych plików z 4 dodań i 8 usunięć

Wyświetl plik

@ -70,8 +70,7 @@ CONFIGS = $(addsuffix .conf,$(ALL_BACKENDS)) saned.conf
EXTRA = sane_strstatus.lo ../sanei/sanei_init_debug.lo ../sanei/sanei_config.lo
# With libtool-1.0, we have to mention each library object explicitly... ;-(
LIBLIB_FUNCS = alloca getenv getopt getopt1 isfdtype sigprocmask snprintf \
strdup strndup strsep usleep vsyslog inet_ntop
LIBLIB_FUNCS = $(basename @LIBOBJS@ @ALLOCA@ getopt.o getopt1.o md5.o)
LIBOBJS = $(addprefix ../lib/,$(addsuffix .lo,$(LIBLIB_FUNCS)))
DISTFILES = Makefile.in abaton.c abaton.conf abaton.desc abaton.h \

Wyświetl plik

@ -46,12 +46,9 @@ MLINK = --mode=link
@SET_MAKE@
LIBLIB_OBJS = alloca.o getopt.o getopt1.o sigprocmask.o strndup.o \
strdup.o strsep.o snprintf.o usleep.o getenv.o \
isfdtype.o vsyslog.o md5.o inet_ntop.o
LIBLIB_LTOBJS = alloca.lo getopt.lo getopt1.lo sigprocmask.lo strndup.lo \
strdup.lo strsep.lo snprintf.lo usleep.lo getenv.lo \
isfdtype.lo vsyslog.lo md5.lo inet_ntop.lo
LIBLIB_OBJS = @LIBOBJS@ @ALLOCA@ getopt.o getopt1.o md5.o
LIBLIB_LTOBJS = $(addsuffix .lo,$(basename $(LIBLIB_OBJS)))
TARGETS = $(LIBLIB_OBJS)
TARGETS = liblib.a