0
|
1 PIDGIN_CFLAGS = @PIDGIN_CFLAGS@
|
|
2 AUD_CFLAGS = @AUD_CFLAGS@
|
|
3 DBUS_GLIB_CFLAGS = @DBUS_GLIB_CFLAGS@
|
|
4 CFLAGS = -fPIC -shared -Wall $(PIDGIN_CFLAGS) $(AUD_CFLAGS) $(DBUS_GLIB_CFLAGS)
|
|
5
|
|
6 AUD_LIBS = @AUD_LIBS@
|
|
7 AUD_LIB_DIR = @AUD_LIB_DIR@
|
|
8 DBUS_GLIB_LIBS = @DBUS_GLIB_LIBS@
|
|
9 DBUS_GLIB_LIB_DIR = @DBUS_GLIB_LIB_DIR@
|
|
10 LDFLAGS = $(AUD_LIBS) $(DBUS_GLIB_LIBS)
|
|
11
|
|
12 PIDGIN_LIB_DIR = @PIDGIN_LIB_DIR@
|
|
13
|
|
14
|
|
15 default: pidgin-audacious.so
|
|
16
|
|
17 pidgin-audacious.so: pidgin-audacious.c
|
|
18 gcc -o $@ $< $(CFLAGS) $(LDFLAGS) -g -Wl,-rpath=$(AUD_LIB_DIR)
|
|
19
|
|
20
|
|
21 install: pidgin-audacious.so
|
|
22 install -m 755 pidgin-audacious.so $(PIDGIN_LIB_DIR)/pidgin
|
|
23
|
|
24
|
|
25 clean:
|
|
26 rm -f pidgin-audacious.so
|
|
27
|
|
28
|
|
29 distclean: clean
|
|
30 rm -f Makefile config.log config.status *~
|
|
31 rm -rf autom4te.cache
|