Changeset e506d6c
- Timestamp:
- 2006-03-02T11:38:33Z (19 years ago)
- Branches:
- master
- Children:
- 1e5fcac
- Parents:
- 9a1555d
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r9a1555d re506d6c 11 11 # Program variables 12 12 objects = account.o bitlbee.o conf.o crypting.o help.o ini.o ipc.o irc.o irc_commands.o log.o nick.o query.o root_commands.o set.o storage.o storage_text.o unix.o url.o user.o util.o 13 headers = account.h bitlbee.h commands.h conf.h config.h crypting.h help.h ini.h ipc.h irc.h log.h nick.h query.h set.h sock.h storage.h url.h user.h protocols/http_client.h protocols/md5.h protocols/nogaim.h protocols/proxy.h protocols/sha.h protocols/ssl_client.h 13 14 subdirs = protocols 14 15 … … 20 21 $(MAKE) -C doc 21 22 22 uninstall: uninstall-bin uninstall-doc 23 uninstall: uninstall-bin uninstall-doc uninstall-header uninstall-pc 23 24 @echo -e '\nmake uninstall does not remove files in '$(DESTDIR)$(ETCDIR)', you can use make uninstall-etc to do that.\n' 24 25 25 install: install-bin install-doc 26 install: install-bin install-doc install-header install-pc 26 27 @if ! [ -d $(DESTDIR)$(CONFIG) ]; then echo -e '\nThe configuration directory $(DESTDIR)$(CONFIG) does not exist yet, don'\''t forget to create it!'; fi 27 28 @if ! [ -e $(DESTDIR)$(ETCDIR)/bitlbee.conf ]; then echo -e '\nNo files are installed in '$(DESTDIR)$(ETCDIR)' by make install. Run make install-etc to do that.'; fi … … 56 57 uninstall-bin: 57 58 rm -f $(DESTDIR)$(BINDIR)/$(OUTFILE) 59 60 install-header: 61 mkdir -p $(DESTDIR)$(INCLUDEDIR) 62 install -m 0644 $(headers) $(DESTDIR)$(INCLUDEDIR) 63 64 uninstall-header: 65 rm -f $(foreach hdr,$(headers),$(DESTDIR)$(INCLUDEDIR)/$(hdr)) 66 -rmdir $(DESTDIR)$(INCLUDEDIR) 67 68 install-pc: 69 mkdir -p $(DESTDIR)$(PCDIR) 70 install -m 0644 bitlbee.pc $(DESTDIR)$(PCDIR) 71 72 uninstall-pc: 73 rm -f $(DESTDIR)$(PCDIR)/bitlbee.pc 58 74 59 75 install-etc: -
bitlbee.h
r9a1555d re506d6c 102 102 #include "storage.h" 103 103 #include "set.h" 104 #include " protocols/nogaim.h"104 #include "nogaim.h" 105 105 #include "commands.h" 106 106 #include "account.h" -
configure
r9a1555d re506d6c 17 17 ipcsocket='/var/run/bitlbee' 18 18 plugindir='$prefix/lib/bitlbee' 19 pcdir='$prefix/lib/pkgconfig' 20 includedir='$prefix/include/bitlbee' 19 21 20 22 msn=1 … … 80 82 pidfile=`eval echo "$pidfile" | sed 's/\/\{1,\}/\//g'` 81 83 ipcsocket=`eval echo "$ipcsocket" | sed 's/\/\{1,\}/\//g'` 84 includedir=`eval echo "$includedir" | sed 's/\/\{1,\}/\//g'` 85 pcdir=`eval echo "$pcdir" | sed 's/\/\{1,\}/\//g'` 82 86 83 87 cat<<EOF>Makefile.settings … … 91 95 CONFIG=$config 92 96 IPCSOCKET=$ipcsocket 97 INCLUDEDIR=$includedir 98 PCDIR=$pcdir 93 99 94 100 ARCH=$arch … … 311 317 fi 312 318 319 cat <<EOF>bitlbee.pc 320 prefix=$prefix 321 includedir=$includedir 322 323 Name: bitlbee 324 Description: IRC to IM gateway 325 Requires: glib-2.0 326 Version: $BITLBEE_VERSION 327 Libs: 328 Cflags: -I\${includedir} 329 330 EOF 331 313 332 protocols='' 314 333 protoobjs='' -
doc/example_plugin.c
r9a1555d re506d6c 3 3 * a shared library and place it in the plugin directory: 4 4 * 5 * gcc -o example.so -shared example.c 5 * gcc -o example.so -shared example.c `pkg-config --cflags bitlbee` 6 6 * cp example.so /usr/local/lib/bitlbee 7 7 */ 8 8 #include <stdio.h> 9 #include <bitlbee.h> 9 10 10 11 void init_plugin(void)
Note: See TracChangeset
for help on using the changeset viewer.