Mercurial > pidgin
view libgaim/Makefile.mingw @ 14313:8a2b571f9990
[gaim-migrate @ 17005]
a prpl's set_idle function can be called before the login function
this is because the signing-on signal is emitted, and there's a callback to check idle and update all the prpls attached to that signal
this meant that if you were idle, and got disconnected from jabber, upon attempting to reconnect, you'd segfault
I've changed how jabber handles idle updates to work around this. someone may want to audit the other prpls, to make sure their set_idle callbacks (if any) don't assume the connection is up
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Wed, 23 Aug 2006 16:36:58 +0000 |
parents | c54ea2572de9 |
children | 8793fc8f7064 |
line wrap: on
line source
# # Makefile.mingw # # Description: Makefile for win32 (mingw) version of Gaim # # # PATHS # GTK_TOP := ../../win32-dev/gtk_2_0 GAIM_TOP := .. LIBGAIM_TOP := . PLUGINS_TOP := $(LIBGAIM_TOP)/plugins PROTOCOLS_TOP := $(LIBGAIM_TOP)/protocols GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir LIBXML2_DIR := ../../win32-dev/libxml2 NEEDED_DLLS = $(LIBXML2_DIR)/bin/libxml2.dll ## ## VARIABLE DEFINITIONS ## TARGET = libgaim # Compiler and Linker Options CFLAGS = DEFINES = ## ## INCLUDE MAKEFILES ## include $(LIBGAIM_TOP)/win32/global.mak ## ## INCLUDE PATHS ## INCLUDE_PATHS = \ -I$(LIBGAIM_TOP) \ -I$(LIBGAIM_TOP)/win32 \ -I$(GAIM_TOP) \ -I$(GTK_TOP)/include \ -I$(GTK_TOP)/include/glib-2.0 \ -I$(GTK_TOP)/lib/glib-2.0/include \ -I$(LIBXML2_DIR)/include LIB_PATHS = -L$(GTK_TOP)/lib \ -L$(LIBGAIM_TOP) \ -L$(LIBXML2_DIR)/lib ## ## SOURCES, OBJECTS ## C_SRC = \ account.c \ accountopt.c \ blist.c \ buddyicon.c \ cipher.c \ cmds.c \ connection.c \ conversation.c \ core.c \ debug.c \ dnsquery.c \ dnssrv.c \ eventloop.c \ ft.c \ circbuffer.c \ idle.c \ imgstore.c \ log.c \ mime.c \ network.c \ notify.c \ ntlm.c \ plugin.c \ pluginpref.c \ pounce.c \ prefs.c \ privacy.c \ proxy.c \ prpl.c \ request.c \ roomlist.c \ savedstatuses.c \ server.c \ signals.c \ sound.c \ sslconn.c \ status.c \ stringref.c \ stun.c \ upnp.c \ util.c \ value.c \ xmlnode.c \ whiteboard.c \ win32/libc_interface.c \ win32/win32dep.c OBJECTS = $(C_SRC:%.c=%.o) ## ## LIBRARIES ## LIBS = \ -lglib-2.0 \ -lgthread-2.0 \ -lgobject-2.0 \ -lgmodule-2.0 \ -lintl \ -lws2_32 \ -liberty \ -lxml2 ## ## RULES ## # How to make a C file %.o: %.c $(CC) $(CFLAGS) $(INCLUDE_PATHS) $(DEFINES) -c $< -o $@ ## ## TARGET DEFINITIONS ## .PHONY: all clean include_path all: $(TARGET).dll $(MAKE) -C $(PROTOCOLS_TOP) -f Makefile.mingw $(MAKE) -C $(PLUGINS_TOP) -f Makefile.mingw install: all $(MAKE) -C $(PROTOCOLS_TOP) -f Makefile.mingw install $(MAKE) -C $(PLUGINS_TOP) -f Makefile.mingw install cp $(LIBGAIM_TOP)/$(TARGET).dll $(GAIM_INSTALL_DIR) cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR) # # BUILD DLL # $(TARGET).dll.a $(TARGET).dll: $(TARGET).dll.a $(TARGET).dll: $(OBJECTS) $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).dll.a -o $(TARGET).dll ## ## CLEAN RULES ## clean: rm -rf *.o ./win32/*.o rm -rf $(TARGET).dll rm -rf $(TARGET).dll.a $(MAKE) -C $(PROTOCOLS_TOP) -f Makefile.mingw clean $(MAKE) -C $(PLUGINS_TOP) -f Makefile.mingw clean