File: Makefile.static

package info (click to toggle)
pidgin-otr 4.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 2,412 kB
  • sloc: sh: 11,542; ansic: 5,487; makefile: 35; xml: 12
file content (21 lines) | stat: -rw-r--r-- 710 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
LIBOTRDIR?=/usr/lib
LIBGCRYPTDIR?=/usr/lib

.libs/pidgin-otr.so: FORCE
	# Build everything from the standard Makefile
	make
	# Link everything, including libotr and libgcrypt, together into
	# a single .o file
	ld -r  .libs/otr-plugin.o .libs/ui.o .libs/dialogs.o .libs/gtk-ui.o \
		.libs/gtk-dialog.o .libs/tooltipmenu.o $(LIBOTRDIR)/libotr.a \
		$(LIBGCRYPTDIR)/libgcrypt.a $(LIBGCRYPTDIR)/libgpg-error.a \
		-o .libs/pidgin-otr-shared.o
	# Make all the libgcrypt references local to that .o file
	objcopy -w -L '*gcry*' .libs/pidgin-otr-shared.o \
		.libs/pidgin-otr-static.o
	# Turn the .o into a .so
	gcc -shared .libs/pidgin-otr-static.o -Wl,-soname -Wl,pidgin-otr.so \
		-o .libs/pidgin-otr.so

FORCE: