2 # pidgin-autoanswer Makefile
4 # Copyright 2009 Dmitriy Kostiuk < d.k AT list DOT ru>
6 # Heavily inspired and copied from :
7 # pidgin-latex plugin by Kevin Stange <extprefs@simguy.net>
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2 of the License, or
12 # (at your option) any later version.
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 LIB_INSTALL_DIR
= $(HOME
)/.purple
/plugins
30 LIB_INSTALL_DIR
= $(PREFIX
)/lib
/pidgin
33 PIDGIN_AUTOANSWER
= autoansw
35 PIDGIN_CFLAGS
= $(shell pkg-config pidgin
--cflags)
36 GTK_CFLAGS
= $(shell pkg-config gtk
+-2.0 --cflags)
37 PIDGIN_LIBS
= $(shell pkg-config pidgin
--libs
)
38 GTK_LIBS
= $(shell pkg-config gtk
+-2.0 --libs
)
39 PIDGIN_LIBDIR
= $(shell pkg-config
--variable
=libdir pidgin
)/pidgin
41 all: $(PIDGIN_AUTOANSWER
).so
44 mkdir
-p
$(LIB_INSTALL_DIR
)
45 cp
$(PIDGIN_AUTOANSWER
).so
$(LIB_INSTALL_DIR
)
47 $(PIDGIN_AUTOANSWER
).so
: $(PIDGIN_AUTOANSWER
).o
48 $(CC
) -shared
$(CFLAGS
) $< -o
$@
$(PIDGIN_LIBS
) $(GTK_LIBS
) -Wl
,--export-dynamic
-Wl
,-soname
50 $(PIDGIN_AUTOANSWER
).o
:$(PIDGIN_AUTOANSWER
).c
51 $(CC
) $(CFLAGS
) -fPIC
-c
$< -o
$@
$(PIDGIN_CFLAGS
) $(GTK_CFLAGS
) -DHAVE_CONFIG_H
54 rm -rf
*.o
*.c~
*.h~
*.so
*.la .libs
This page took 0.2418 seconds and 4 git commands to generate.