~ubuntu-branches/ubuntu/hardy/pidgin-otr/hardy

« back to all changes in this revision

Viewing changes to Makefile.static

  • Committer: Bazaar Package Importer
  • Author(s): Thibaut VARENE
  • Date: 2007-08-20 21:49:14 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070820214914-x2a69xcnr215uo0u
Tags: 3.1.0-1
* New upstream release (closes: #435055, #435836)
* Build depend on newer libotr (closes: #430349)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
LIBOTRDIR?=/usr/lib
 
2
LIBGCRYPTDIR?=/usr/lib
 
3
 
 
4
.libs/pidgin-otr.so: FORCE
 
5
        # Build everything from the standard Makefile
 
6
        make
 
7
        # Link everything, including libotr and libgcrypt, together into
 
8
        # a single .o file
 
9
        ld -r  .libs/otr-plugin.o .libs/ui.o .libs/dialogs.o .libs/gtk-ui.o \
 
10
                .libs/gtk-dialog.o $(LIBOTRDIR)/libotr.a \
 
11
                $(LIBGCRYPTDIR)/libgcrypt.a $(LIBGCRYPTDIR)/libgpg-error.a \
 
12
                -o .libs/pidgin-otr-shared.o
 
13
        # Make all the libgcrypt references local to that .o file
 
14
        objcopy -w -L '*gcry*' .libs/pidgin-otr-shared.o \
 
15
                .libs/pidgin-otr-static.o
 
16
        # Turn the .o into a .so
 
17
        gcc -shared .libs/pidgin-otr-static.o -Wl,-soname -Wl,pidgin-otr.so \
 
18
                -o .libs/pidgin-otr.so
 
19
 
 
20
FORCE:
 
21