view plugins/Makefile.mingw @ 6686:0b286eace44c

[gaim-migrate @ 7212] Tim Ringenbach (marv_sf) writes: " Changed an isprint to a g_ascii_isprint in disabled debug code, this used to cause a crash back when it was enabled (invalid utf8). Made it only show buddies away when they really are (instead of thinking they're away just because they have a status message). Made it notice when people log on using the java chat client. Made it show how long idle buddies have been idle, and also notice that idle buddies with status messages are in fact idle. Eliminated duplicate code in yahoo_process_contact (which fixes some bugs, such as not showing the buddies status message when you just added them), and also made it show a message when a buddy denied your add (basicly deleting themselves from your server-side buddy list). We still don't do anything about this, however (should probably delete the buddy, or show him as offline or unathorized or something)." sean rocks. just in case you weren't sure, now you know. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 02 Sep 2003 02:08:52 +0000
parents ea689dbf1a57
children c92dbccd7448
line wrap: on
line source

#
# Makefile.mingw
#
# Description: Makefile for win32 (mingw) version of Gaim Plugins 
#

#
# PATHS
#

GAIM_PLUGINS := 	.
GAIM_TOP :=		..
GTK_TOP :=		../../win32-dev/gtk_2_0
OSCAR_ROOT :=		../src/protocols/oscar
GAIM_INSTALL_DIR :=	$(GAIM_TOP)/win32-install-dir
TICKER :=		./ticker
TRANSPARENCY :=		./win32/transparency
WINPREFS :=		./win32/winprefs
PERL_PLUGIN_LOADER :=	./perl
DOCKLET :=		./docklet

##
## VARIABLE DEFINITIONS
##

# Compiler Options

CFLAGS =

DEFINES =

.SUFFIXES:
.SUFFIXES: .c .dll

##
## INCLUDE  MAKEFILES
##

include $(GAIM_TOP)/src/win32/global.mak

##
## INCLUDE PATHS
##

INCLUDE_PATHS +=	-I$(OSCAR_ROOT) \
			-I$(GTK_TOP)/include \
			-I$(GTK_TOP)/include/gtk-2.0 \
			-I$(GTK_TOP)/include/glib-2.0 \
			-I$(GTK_TOP)/include/pango-1.0 \
			-I$(GTK_TOP)/include/atk-1.0 \
			-I$(GTK_TOP)/lib/glib-2.0/include \
			-I$(GTK_TOP)/lib/gtk-2.0/include \
			-I$(GAIM_TOP) \
			-I$(GAIM_TOP)/src \
			-I$(GAIM_TOP)/src/win32


LIB_PATHS =		-L$(GTK_TOP)/lib \
			-L$(GAIM_TOP)/src


##
## LIBRARIES
##

LIBS =			-lgtk-win32-2.0 \
			-lglib-2.0 \
			-lgdk-win32-2.0 \
			-lgobject-2.0 \
			-lgmodule-2.0 \
			-lgdk_pixbuf-2.0 \
			-lpango-1.0 \
			-lintl \
			-lws2_32 \
			-lgaim

##
## RULES
##

##
## TARGET DEFINITIONS
##

.PHONY: all clean

all: plugins
	$(MAKE) -C $(TICKER) -f Makefile.mingw
	$(MAKE) -C $(WINPREFS) -f Makefile.mingw
	$(MAKE) -C $(TRANSPARENCY) -f Makefile.mingw
	$(MAKE) -C $(PERL_PLUGIN_LOADER) -f Makefile.mingw
	$(MAKE) -C $(DOCKLET) -f Makefile.mingw

install:
	cp $(GAIM_PLUGINS)/*.dll $(GAIM_INSTALL_DIR)/plugins
	$(MAKE) -C $(TICKER) -f Makefile.mingw install
	$(MAKE) -C $(WINPREFS) -f Makefile.mingw install
	$(MAKE) -C $(TRANSPARENCY) -f Makefile.mingw install
	$(MAKE) -C $(PERL_PLUGIN_LOADER) -f Makefile.mingw install
	$(MAKE) -C $(DOCKLET) -f Makefile.mingw install

#
# BUILD Plugin
#

.c.dll:
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@.o -c $<
	$(CC) -shared $@.o $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $@

plugins: \
		autorecon.dll \
		history.dll \
	 	iconaway.dll \
		idle.dll \
		spellchk.dll \
		statenotify.dll \
		timestamp.dll


##
## CLEAN RULES
##

clean:
	rm -rf *.o
	rm -rf *.dll
	$(MAKE) -C $(TICKER) -f Makefile.mingw clean
	$(MAKE) -C $(TRANSPARENCY) -f Makefile.mingw clean
	$(MAKE) -C $(WINPREFS) -f Makefile.mingw clean
	$(MAKE) -C $(PERL_PLUGIN_LOADER) -f Makefile.mingw clean
	$(MAKE) -C $(DOCKLET) -f Makefile.mingw clean