view plugins/Makefile.mingw @ 12024:e67993da8a22

[gaim-migrate @ 14317] I strongly suspect CruiseControl is going to yell at me for this. A voice chat API, GUI + mediastreamer. This is what I'm using for Google Talk. This doesn't actually do anything at all. There's no code in the Jabber plugin yet to use this API (although it Works For Me). All it will do is compile and link. If you're lucky. To build this, you should install oRTP from Linphone, Speex and iLBC (also from linphone, I believe). To not build this, ./configure --disable-vv. Most of the configure.ac and Makefile.am hackery was lifted right out of Linphone with a few modifications. It seems to work if you have everything installed or if you --disable-vv. I haven't really tested not having everything installed and not --disabling-vv. It's kinda funky to include all of mediastreamer in the source tree like this, but linphone doesn't build it as a separate library. I'll probably wind up writing them a patch to build it as a .so so we can link it dynamically instead. This code certainly isn't finished. It'll adapt as I progress on the Google code, but it's certainly of more use here in CVS than in my personal tree. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Wed, 09 Nov 2005 08:07:20 +0000
parents 9096f56b725f
children bfa21679fef5
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
TCL_PLUGIN_LOADER :=    ./tcl
DOCKLET :=		./docklet
SSL :=			./ssl

##
## 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 $(TCL_PLUGIN_LOADER) -f Makefile.mingw
	$(MAKE) -C $(DOCKLET) -f Makefile.mingw
	$(MAKE) -C $(SSL) -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 $(TCL_PLUGIN_LOADER) -f Makefile.mingw install
	$(MAKE) -C $(DOCKLET) -f Makefile.mingw install
	$(MAKE) -C $(SSL) -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: \
		extplacement.dll \
		history.dll \
	 	iconaway.dll \
		idle.dll \
		relnot.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 $(TCL_PLUGIN_LOADER) -f Makefile.mingw clean
	$(MAKE) -C $(DOCKLET) -f Makefile.mingw clean
	$(MAKE) -C $(SSL) -f Makefile.mingw clean