diff libpurple/plugins/perl/common/Makefile.mingw @ 15374:5fe8042783c1

Rename gtk/ and libgaim/ to pidgin/ and libpurple/
author Sean Egan <seanegan@gmail.com>
date Sat, 20 Jan 2007 02:32:10 +0000
parents
children 0e17470b47c2
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libpurple/plugins/perl/common/Makefile.mingw	Sat Jan 20 02:32:10 2007 +0000
@@ -0,0 +1,117 @@
+#
+# Makefile.mingw
+#
+# Description: Makefile for Gaim perl module.
+#
+
+GAIM_TOP := ../../../..
+include $(GAIM_TOP)/libgaim/win32/global.mak
+
+TARGET = Gaim
+AUTOSPLIT = lib/auto/Gaim/autosplit.ix
+EXTUTILS := C:/perl/lib/ExtUtils
+PERL_PLUGIN_TOP := ..
+
+CFLAGS += -Wno-comment
+
+##
+## INCLUDE PATHS
+##
+INCLUDE_PATHS =		-I. \
+			-I$(GAIM_TOP) \
+			-I$(GAIM_LIB_TOP) \
+			-I$(GTK_TOP)/include \
+			-I$(GTK_TOP)/include/glib-2.0 \
+			-I$(GTK_TOP)/lib/glib-2.0/include \
+			-I$(PERL_LIB_TOP)/CORE
+
+LIB_PATHS = 		-L$(PERL_LIB_TOP) \
+			-L$(PERL_PLUGIN_TOP) \
+			-L$(GAIM_LIB_TOP) \
+			-L$(GTK_TOP)/lib
+
+##
+##  SOURCES, OBJECTS
+##
+XS_FILES =		Account.xs \
+				AccountOpts.xs \
+				BuddyIcon.xs \
+				BuddyList.xs \
+				Cipher.xs \
+				Cmds.xs \
+				Connection.xs \
+				Conversation.xs \
+				Core.xs \
+				Debug.xs \
+				FT.xs \
+				Gaim.xs \
+				ImgStore.xs \
+				Log.xs \
+				Network.xs \
+				Notify.xs \
+				Plugin.xs \
+				PluginPref.xs \
+				Pounce.xs \
+				Prefs.xs \
+				Privacy.xs \
+				Proxy.xs \
+				Prpl.xs \
+				Request.xs \
+				Roomlist.xs \
+				SSLConn.xs \
+				SavedStatuses.xs \
+				Signal.xs \
+				Server.xs \
+				Sound.xs \
+				Status.xs \
+				Stringref.xs \
+				Util.xs \
+				XMLNode.xs \
+
+FALLBACKS =	const-c.inc const-xs.inc
+C_FILES = $(XS_FILES:%.xs=%.c)
+OBJECTS = $(C_FILES:%.c=%.o)
+
+##
+## LIBRARIES
+##
+LIBS =			-lperl58 \
+			-lperl \
+			-lgaim \
+			-lglib-2.0
+
+include $(GAIM_COMMON_RULES)
+
+%.inc:
+	cp fallback/$@ ./
+
+##
+## TARGETS
+##
+.PHONY: all install clean
+
+all: $(TARGET).dll $(AUTOSPLIT)
+	
+install: all
+	rm -rf $(GAIM_INSTALL_PERLMOD_DIR)
+	cp -R lib $(GAIM_INSTALL_PERLMOD_DIR)
+	cp $(TARGET).dll $(GAIM_INSTALL_PERLMOD_DIR)
+
+$(C_FILES): $(GAIM_CONFIG_H)
+
+$(AUTOSPLIT):
+	mkdir -p ./lib/auto
+	cp Gaim.pm ./lib
+	$(PERL) -MAutoSplit -e 'autosplit("lib/Gaim.pm")'
+
+$(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(GAIM_LIBGAIM_PERL_DLL).a $(FALLBACKS) $(OBJECTS)
+	$(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) -o $(TARGET).dll
+
+##
+## CLEAN
+##
+clean:
+	rm -rf $(TARGET).dll $(FALLBACKS) lib
+	rm -f *.o $(C_FILES)
+
+include $(GAIM_COMMON_TARGETS)