Changeset 7a9d968 for Makefile


Ignore:
Timestamp:
2018-03-10T11:30:39Z (7 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Children:
5447c59
Parents:
3f44e43 (diff), 4a9c6b0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into HEAD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r3f44e43 r7a9d968  
    9494        mkdir -p $(DESTDIR)$(SBINDIR)
    9595        $(INSTALL) -m 0755 $(OUTFILE) $(DESTDIR)$(SBINDIR)/$(OUTFILE)
     96ifdef IMPLIB
     97        # import library for cygwin
     98        mkdir -p $(DESTDIR)$(LIBDIR)
     99        $(INSTALL) -m 0644 $(IMPLIB) $(DESTDIR)$(LIBDIR)/$(IMPLIB)
     100endif
    96101
    97102uninstall-bin:
    98103        rm -f $(DESTDIR)$(SBINDIR)/$(OUTFILE)
     104ifdef IMPLIB
     105        rm -f $(DESTDIR)$(LIBDIR)/$(IMPLIB)
     106endif
    99107
    100108install-dev:
     
    163171
    164172$(subdirs):
    165         @$(MAKE) -C $@ $(MAKECMDGOALS)
     173        $(MAKE) -C $@ $(MAKECMDGOALS)
    166174
    167175$(OTR_PI): %.so: $(_SRCDIR_)%.c
    168176        @echo '*' Building plugin $@
    169         @$(CC) $(CFLAGS) -fPIC -shared $(LDFLAGS) $< -o $@ $(OTRFLAGS)
     177        $(VERBOSE) $(CC) $(CFLAGS) -fPIC -shared $(LDFLAGS) $< -o $@ $(OTRFLAGS)
    170178
    171179$(SKYPE_PI): $(_SRCDIR_)protocols/skype/skype.c
    172180        @echo '*' Building plugin skype
    173         @$(CC) $(CFLAGS) $(LDFLAGS) $(SKYPEFLAGS) $< -o $@
     181        $(VERBOSE) $(CC) $(CFLAGS) $(LDFLAGS) $(SKYPEFLAGS) $< -o $@
    174182
    175183$(objects): %.o: $(_SRCDIR_)%.c
    176184        @echo '*' Compiling $<
    177         @$(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
     185        $(VERBOSE) $(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@
    178186
    179187$(objects): Makefile Makefile.settings config.h
     
    181189$(OUTFILE): $(objects) $(subdirs)
    182190        @echo '*' Linking $(OUTFILE)
    183         @$(CC) $(objects) $(subdirobjs) -o $(OUTFILE) $(LDFLAGS_BITLBEE) $(LDFLAGS) $(EFLAGS)
    184 ifndef DEBUG
     191        $(VERBOSE) $(CC) $(objects) $(subdirobjs) -o $(OUTFILE) $(LDFLAGS_BITLBEE) $(LDFLAGS) $(EFLAGS)
     192ifneq ($(firstword $(STRIP)), \#)
    185193        @echo '*' Stripping $(OUTFILE)
    186         @-$(STRIP) $(OUTFILE)
     194        $(VERBOSE) -$(STRIP) $(OUTFILE)
    187195endif
    188196
Note: See TracChangeset for help on using the changeset viewer.