configure: added --silent option to hide compilation details.
This commit is contained in:
parent
4420bd9427
commit
d9001adbad
9
configure
vendored
9
configure
vendored
@ -13,6 +13,7 @@ BUILD_API_DOCS=
|
|||||||
BUILD_PIE=
|
BUILD_PIE=
|
||||||
EXTERNAL_PROPLIB=
|
EXTERNAL_PROPLIB=
|
||||||
EXTERNAL_LIBFETCH=
|
EXTERNAL_LIBFETCH=
|
||||||
|
SILENT=
|
||||||
|
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
@ -32,6 +33,7 @@ for instance \`--prefix=\$HOME'.
|
|||||||
--datadir=DIR read-only architecture-independent data [PREFIX/share]
|
--datadir=DIR read-only architecture-independent data [PREFIX/share]
|
||||||
|
|
||||||
--debug Build with debugging code and symbols
|
--debug Build with debugging code and symbols
|
||||||
|
--silent Build silently, hidding compilation details.
|
||||||
--with-pie Build XBPS programs as PIE (default disabled)
|
--with-pie Build XBPS programs as PIE (default disabled)
|
||||||
--with-api-docs install XBPS API Library documentation (default disabled)
|
--with-api-docs install XBPS API Library documentation (default disabled)
|
||||||
--with-external-proplib Use external proplib [default disabled]
|
--with-external-proplib Use external proplib [default disabled]
|
||||||
@ -57,6 +59,7 @@ for x; do
|
|||||||
--libdir) LIBDIR=$var;;
|
--libdir) LIBDIR=$var;;
|
||||||
--datadir|--infodir) ;; # ignore autotools
|
--datadir|--infodir) ;; # ignore autotools
|
||||||
--with-api-docs) BUILD_API_DOCS=$var;;
|
--with-api-docs) BUILD_API_DOCS=$var;;
|
||||||
|
--silent) SILENT=$var;;
|
||||||
--with-pie) BUILD_PIE=$var;;
|
--with-pie) BUILD_PIE=$var;;
|
||||||
--with-external-proplib) EXTERNAL_PROPLIB=$var;;
|
--with-external-proplib) EXTERNAL_PROPLIB=$var;;
|
||||||
--with-external-libfetch) EXTERNAL_LIBFETCH=$var;;
|
--with-external-libfetch) EXTERNAL_LIBFETCH=$var;;
|
||||||
@ -438,6 +441,12 @@ else
|
|||||||
>>$CONFIG_MK
|
>>$CONFIG_MK
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "$SILENT" ]; then
|
||||||
|
echo "SILENT = @" >>$CONFIG_MK
|
||||||
|
else
|
||||||
|
echo "SILENT =" >>$CONFIG_MK
|
||||||
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo " XBPS has been configured with the following options:"
|
echo " XBPS has been configured with the following options:"
|
||||||
echo
|
echo
|
||||||
|
14
lib/Makefile
14
lib/Makefile
@ -50,7 +50,7 @@ all: libxbps.so libxbps.a
|
|||||||
|
|
||||||
fetch/ftperr.h: fetch/ftp.errors
|
fetch/ftperr.h: fetch/ftp.errors
|
||||||
@printf " [GEN]\t\t$@\n"
|
@printf " [GEN]\t\t$@\n"
|
||||||
@./fetch/errlist.sh ftp_errlist FTP $< > $@
|
${SILENT}./fetch/errlist.sh ftp_errlist FTP $< > $@
|
||||||
|
|
||||||
fetch/httperr.h: fetch/http.errors
|
fetch/httperr.h: fetch/http.errors
|
||||||
@printf " [GEN]\t\t$@\n"
|
@printf " [GEN]\t\t$@\n"
|
||||||
@ -58,28 +58,28 @@ fetch/httperr.h: fetch/http.errors
|
|||||||
|
|
||||||
$(LIBFETCH_OBJS): %.o: %.c $(LIBFETCH_INCS) $(LIBFETCH_GEN)
|
$(LIBFETCH_OBJS): %.o: %.c $(LIBFETCH_INCS) $(LIBFETCH_GEN)
|
||||||
@printf " [CC]\t\t$@\n"
|
@printf " [CC]\t\t$@\n"
|
||||||
@$(CC) $(CPPFLAGS) $(LIBFETCH_CPPFLAGS) $(CFLAGS) \
|
${SILENT}$(CC) $(CPPFLAGS) $(LIBFETCH_CPPFLAGS) $(CFLAGS) \
|
||||||
$(LIBFETCH_CFLAGS) $(LIBFETCH_SHLIBCFLAGS) -c $< -o $@
|
$(LIBFETCH_CFLAGS) $(LIBFETCH_SHLIBCFLAGS) -c $< -o $@
|
||||||
|
|
||||||
$(LIBPROP_OBJS): %.o: %.c
|
$(LIBPROP_OBJS): %.o: %.c
|
||||||
@printf " [CC]\t\t$@\n"
|
@printf " [CC]\t\t$@\n"
|
||||||
@$(CC) $(CPPFLAGS) $(CFLAGS) $(LIBPROP_CFLAGS) -c $< -o $@
|
${SILENT}$(CC) $(CPPFLAGS) $(CFLAGS) $(LIBPROP_CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
$(OBJS): %.o: %.c
|
$(OBJS): %.o: %.c
|
||||||
@printf " [CC]\t\t$@\n"
|
@printf " [CC]\t\t$@\n"
|
||||||
@$(CC) $(CPPFLAGS) $(CFLAGS) $(SHAREDLIB_CFLAGS) -c $< -o $@
|
${SILENT}$(CC) $(CPPFLAGS) $(CFLAGS) $(SHAREDLIB_CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
libxbps.so: $(OBJS) $(LIBFETCH_OBJS) $(LIBPROP_OBJS)
|
libxbps.so: $(OBJS) $(LIBFETCH_OBJS) $(LIBPROP_OBJS)
|
||||||
@printf " [CCLD]\t\t$@\n"
|
@printf " [CCLD]\t\t$@\n"
|
||||||
@$(CC) $^ $(LDFLAGS) -o $(LIBXBPS_SHLIB)
|
${SILENT}$(CC) $^ $(LDFLAGS) -o $(LIBXBPS_SHLIB)
|
||||||
@-ln -sf $(LIBXBPS_SHLIB) libxbps.so.$(LIBXBPS_MAJOR)
|
@-ln -sf $(LIBXBPS_SHLIB) libxbps.so.$(LIBXBPS_MAJOR)
|
||||||
@-ln -sf $(LIBXBPS_SHLIB) libxbps.so
|
@-ln -sf $(LIBXBPS_SHLIB) libxbps.so
|
||||||
|
|
||||||
libxbps.a: $(OBJS) $(LIBFETCH_OBJS) $(LIBPROP_OBJS)
|
libxbps.a: $(OBJS) $(LIBFETCH_OBJS) $(LIBPROP_OBJS)
|
||||||
@printf " [AR]\t\t$@\n"
|
@printf " [AR]\t\t$@\n"
|
||||||
@$(AR) rcs $@ $^
|
${SILENT}$(AR) rcs $@ $^
|
||||||
@printf " [RANLIB]\t$@\n"
|
@printf " [RANLIB]\t$@\n"
|
||||||
@ranlib $@
|
${SILENT}ranlib $@
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: all
|
install: all
|
||||||
|
7
prog.mk
7
prog.mk
@ -32,13 +32,14 @@ endif
|
|||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
@printf " [CC]\t\t$@\n"
|
@printf " [CC]\t\t$@\n"
|
||||||
@$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
|
${SILENT}$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
|
||||||
|
|
||||||
$(BIN).static: $(OBJS)
|
$(BIN).static: $(OBJS)
|
||||||
@printf " [CCLD]\t\t$@\n"
|
@printf " [CCLD]\t\t$@\n"
|
||||||
@$(CC) -static $^ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(STATIC_LIBS) -o $@
|
${SILENT}$(CC) -static $^ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \
|
||||||
|
$(STATIC_LIBS) -o $@
|
||||||
|
|
||||||
$(BIN): $(OBJS)
|
$(BIN): $(OBJS)
|
||||||
@printf " [CCLD]\t\t$@\n"
|
@printf " [CCLD]\t\t$@\n"
|
||||||
@$(CC) $^ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(PROG_LDFLAGS) -o $@
|
${SILENT}$(CC) $^ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(PROG_LDFLAGS) -o $@
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user