Changeset 65d0dfd


Ignore:
Timestamp:
2017-03-12T04:16:58Z (8 years ago)
Author:
dx <dx@…>
Branches:
master
Children:
08b0ed8
Parents:
262a82b
git-author:
Tim Harder <radhermit@…> (20-01-17 21:17:25)
git-committer:
dx <dx@…> (12-03-17 04:16:58)
Message:

Add --verbose configure option to control verbose build output

Defaults to disabled to maintain the status quo.

Files:
10 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r262a82b r65d0dfd  
    163163
    164164$(subdirs):
    165         @$(MAKE) -C $@ $(MAKECMDGOALS)
     165        $(MAKE) -C $@ $(MAKECMDGOALS)
    166166
    167167$(OTR_PI): %.so: $(_SRCDIR_)%.c
    168168        @echo '*' Building plugin $@
    169         @$(CC) $(CFLAGS) -fPIC -shared $(LDFLAGS) $< -o $@ $(OTRFLAGS)
     169        $(VERBOSE) $(CC) $(CFLAGS) -fPIC -shared $(LDFLAGS) $< -o $@ $(OTRFLAGS)
    170170
    171171$(SKYPE_PI): $(_SRCDIR_)protocols/skype/skype.c
    172172        @echo '*' Building plugin skype
    173         @$(CC) $(CFLAGS) $(LDFLAGS) $(SKYPEFLAGS) $< -o $@
     173        $(VERBOSE) $(CC) $(CFLAGS) $(LDFLAGS) $(SKYPEFLAGS) $< -o $@
    174174
    175175$(objects): %.o: $(_SRCDIR_)%.c
    176176        @echo '*' Compiling $<
    177         @$(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
     177        $(VERBOSE) $(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
    178178
    179179$(objects): Makefile Makefile.settings config.h
     
    181181$(OUTFILE): $(objects) $(subdirs)
    182182        @echo '*' Linking $(OUTFILE)
    183         @$(CC) $(objects) $(subdirobjs) -o $(OUTFILE) $(LDFLAGS_BITLBEE) $(LDFLAGS) $(EFLAGS)
     183        $(VERBOSE) $(CC) $(objects) $(subdirobjs) -o $(OUTFILE) $(LDFLAGS_BITLBEE) $(LDFLAGS) $(EFLAGS)
    184184ifneq ($(firstword $(STRIP)), \#)
    185185        @echo '*' Stripping $(OUTFILE)
    186         @-$(STRIP) $(OUTFILE)
     186        $(VERBOSE) -$(STRIP) $(OUTFILE)
    187187endif
    188188
  • configure

    r262a82b r65d0dfd  
    3939purple=0
    4040
     41verbose=0
    4142doc=1
    4243debug=0
     
    125126--pidfile=...                                           $pidfile
    126127--config=...                                            $config
     128
     129--verbose=0/1   Disable/enable verbose build            $verbose
    127130
    128131--msn=0/1       Disable/enable MSN part                 $msn
     
    281284        LDFLAGS="$LDFLAGS -fsanitize=address"
    282285        debug=1
     286fi
     287
     288if [ "$verbose" = "0" ]; then
     289        echo 'VERBOSE=@' >> Makefile.settings
     290else
     291        echo 'VERBOSE=' >> Makefile.settings
    283292fi
    284293
  • lib/Makefile

    r262a82b r65d0dfd  
    3636lib.o: $(objects) $(subdirs)
    3737        @echo '*' Linking lib.o
    38         @$(LD) $(LFLAGS) $(objects) -o lib.o
     38        $(VERBOSE) $(LD) $(LFLAGS) $(objects) -o lib.o
    3939
    4040$(objects): ../Makefile.settings Makefile
     
    4242$(objects): %.o: $(_SRCDIR_)%.c
    4343        @echo '*' Compiling $<
    44         @$(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
     44        $(VERBOSE) $(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
    4545
    4646-include .depend/*.d
  • protocols/Makefile

    r262a82b r65d0dfd  
    4343
    4444$(subdirs):
    45         @$(MAKE) -C $@ $(MAKECMDGOALS)
     45        $(MAKE) -C $@ $(MAKECMDGOALS)
    4646
    4747### MAIN PROGRAM
     
    4949protocols.o: $(objects) $(subdirs)
    5050        @echo '*' Linking protocols.o
    51         @$(LD) $(LFLAGS) $(objects) $(subdirobjs) -o protocols.o
     51        $(VERBOSE) $(LD) $(LFLAGS) $(objects) $(subdirobjs) -o protocols.o
    5252
    5353$(objects): ../Makefile.settings Makefile
     
    5555$(objects): %.o: $(_SRCDIR_)%.c
    5656        @echo '*' Compiling $<
    57         @$(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
     57        $(VERBOSE) $(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
    5858
    5959-include .depend/*.d
  • protocols/jabber/Makefile

    r262a82b r65d0dfd  
    3838$(objects): %.o: $(_SRCDIR_)%.c
    3939        @echo '*' Compiling $<
    40         @$(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
     40        $(VERBOSE) $(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
    4141
    4242jabber_mod.o: $(objects)
    4343        @echo '*' Linking jabber_mod.o
    44         @$(LD) $(LFLAGS) $(objects) -o jabber_mod.o
     44        $(VERBOSE) $(LD) $(LFLAGS) $(objects) -o jabber_mod.o
    4545
    4646-include .depend/*.d
  • protocols/msn/Makefile

    r262a82b r65d0dfd  
    3838$(objects): %.o: $(_SRCDIR_)%.c
    3939        @echo '*' Compiling $<
    40         @$(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
     40        $(VERBOSE) $(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
    4141
    4242msn_mod.o: $(objects)
    4343        @echo '*' Linking msn_mod.o
    44         @$(LD) $(LFLAGS) $(objects) -o msn_mod.o
     44        $(VERBOSE) $(LD) $(LFLAGS) $(objects) -o msn_mod.o
    4545
    4646-include .depend/*.d
  • protocols/oscar/Makefile

    r262a82b r65d0dfd  
    3939$(objects): %.o: $(_SRCDIR_)%.c
    4040        @echo '*' Compiling $<
    41         @$(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
     41        $(VERBOSE) $(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
    4242
    4343oscar_mod.o: $(objects)
    4444        @echo '*' Linking oscar_mod.o
    45         @$(LD) $(LFLAGS) $(objects) -o oscar_mod.o
     45        $(VERBOSE) $(LD) $(LFLAGS) $(objects) -o oscar_mod.o
    4646
    4747-include .depend/*.d
  • protocols/purple/Makefile

    r262a82b r65d0dfd  
    3939$(objects): %.o: $(_SRCDIR_)%.c
    4040        @echo '*' Compiling $<
    41         @$(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
     41        $(VERBOSE) $(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
    4242
    4343purple_mod.o: $(objects)
    4444        @echo '*' Linking purple_mod.o
    45         @$(LD) $(LFLAGS) $(objects) -o purple_mod.o
     45        $(VERBOSE) $(LD) $(LFLAGS) $(objects) -o purple_mod.o
    4646
    4747-include .depend/*.d
  • protocols/twitter/Makefile

    r262a82b r65d0dfd  
    3838$(objects): %.o: $(_SRCDIR_)%.c
    3939        @echo '*' Compiling $<
    40         @$(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
     40        $(VERBOSE) $(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
    4141
    4242twitter_mod.o: $(objects)
    4343        @echo '*' Linking twitter_mod.o
    44         @$(LD) $(LFLAGS) $(objects) -o twitter_mod.o
     44        $(VERBOSE) $(LD) $(LFLAGS) $(objects) -o twitter_mod.o
    4545       
    4646-include .depend/*.d
  • tests/Makefile

    r262a82b r65d0dfd  
    2121check: $(test_objs) $(addprefix ../, $(main_objs)) ../protocols/protocols.o ../lib/lib.o
    2222        @echo '*' Linking $@
    23         @$(CC) $(CFLAGS) -o $@ $^ $(LFLAGS) $(EFLAGS)
     23        $(VERBOSE) $(CC) $(CFLAGS) -o $@ $^ $(LFLAGS) $(EFLAGS)
    2424
    2525%.o: $(_SRCDIR_)%.c
    2626        @echo '*' Compiling $<
    27         @$(CC) -c $(CFLAGS) $< -o $@
     27        $(VERBOSE) $(CC) -c $(CFLAGS) $< -o $@
Note: See TracChangeset for help on using the changeset viewer.