comparison Makefile.in @ 22:fbad40babe88

build system update: - ported Makefile.in from pidgin-twitter. - ported autogen.sh from pidgin-twitter. - moved some declarations and definitions to pidgin-audacious.h - updated configure.in to go along with new Makefile. - removed aclocal.m4 from version control.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 06 Oct 2008 18:18:06 +0900
parents dc3aa0bf24c0
children 1d6975f2b5b3
comparison
equal deleted inserted replaced
21:83002f858ee9 22:fbad40babe88
1 TARGET = pidgin-audacious3.so 1 OBJECTIVE = pidgin-audacious3.so
2 SRC = pidgin-audacious.c
3 HDR = ${SRC:.c=.h}
4
5 PIDGIN_PLUGIN_DIR = @PIDGIN_PREFIX@/lib/pidgin
6 PIDGIN_DATA_DIR = @PIDGIN_PREFIX@/share
7
2 PIDGIN_CFLAGS = @PIDGIN_CFLAGS@ 8 PIDGIN_CFLAGS = @PIDGIN_CFLAGS@
9 GLIB_CFLAGS = @GLIB_CFLAGS@
3 AUD_CFLAGS = @AUD_CFLAGS@ 10 AUD_CFLAGS = @AUD_CFLAGS@
4 DBUS_GLIB_CFLAGS = @DBUS_GLIB_CFLAGS@ 11 DBUS_GLIB_CFLAGS = @DBUS_GLIB_CFLAGS@
5 CFLAGS = -fPIC -shared -Wall $(PIDGIN_CFLAGS) $(AUD_CFLAGS) $(DBUS_GLIB_CFLAGS) 12 CFLAGS = -fPIC -shared -Wall $(PIDGIN_CFLAGS) $(GLIB_CFLAGS) $(AUD_CFLAGS) $(DBUS_GLIB_CFLAGS) -DDATADIR=\"$(PIDGIN_DATA_DIR)\"
6 13
14 GLIB_LIBS = @GLIB_LIBS@
7 AUD_LIBS = @AUD_LIBS@ 15 AUD_LIBS = @AUD_LIBS@
8 AUD_LIB_DIR = @AUD_LIB_DIR@ 16 AUD_LIB_DIR = @AUD_LIB_DIR@
9 DBUS_GLIB_LIBS = @DBUS_GLIB_LIBS@ 17 DBUS_GLIB_LIBS = @DBUS_GLIB_LIBS@
10 DBUS_GLIB_LIB_DIR = @DBUS_GLIB_LIB_DIR@ 18 DBUS_GLIB_LIB_DIR = @DBUS_GLIB_LIB_DIR@
11 LDFLAGS = $(AUD_LIBS) $(DBUS_GLIB_LIBS) 19 LDFLAGS = $(AUD_LIBS) $(DBUS_GLIB_LIBS) $(GLIB_LIBS)
12 20
13 PIDGIN_LIB_DIR = @PIDGIN_LIB_DIR@ 21 all: $(OBJECTIVE)
14 22
15 23
16 default: $(TARGET) 24 $(OBJECTIVE): $(SRC) $(HDR)
17 25 gcc -o $@ $(SRC) $(CFLAGS) $(LDFLAGS) -g -Wl,-rpath=$(AUD_LIB_DIR)
18 $(TARGET): pidgin-audacious.c
19 gcc -o $@ $< $(CFLAGS) $(LDFLAGS) -g -Wl,-rpath=$(AUD_LIB_DIR)
20 26
21 27
22 install: $(TARGET) 28 install: $(OBJECTIVE)
23 install -m 755 $(TARGET) $(PIDGIN_LIB_DIR)/pidgin 29 install -m 755 $(OBJECTIVE) $(PIDGIN_PLUGIN_DIR)
24 30
25 31
26 clean: 32 clean:
27 rm -f $(TARGET) 33 rm -f $(OBJECTIVE)
28 34
29 35
30 distclean: clean 36 distclean: clean
31 rm -f Makefile config.log config.status *~ 37 rm -f Makefile config.log config.status
32 rm -rf autom4te.cache 38
39
40 maintainer-clean: distclean
41 rm -rf autom4te.cache aclocal.m4 *~
42
43
44 release: maintainer-clean
45 rm -f .hgtags
46 rm -rf .hg