Fri, 27 Apr 2007 04:25:21 +0000
Kill the libpurpleperl hack library and move the init stuff to perl.so itself.
This works fine for me and I'm hoping will work fine on Solaris as well. When
it gets tested we'll want to drop libpurpleperl.c but until I know it works I
don't want to drop it (because of mtn's die die dir merge stuff).
| 14509 | 1 | # |
| 2 | # Makefile.mingw | |
| 3 | # | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
4 | # Description: Makefile for Pidgin perl module. |
| 14509 | 5 | # |
| 6 | ||
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
7 | PIDGIN_TREE_TOP := ../../../.. |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
8 | include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak |
| 14509 | 9 | |
|
16108
f034f01bc55e
Fix some mingw makefile rename glitches.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
10 | TARGET = Pidgin |
|
15533
1787d1216249
Some more changes to the win32 build to support cross-compiling.
Daniel Atallah <datallah@pidgin.im>
parents:
15438
diff
changeset
|
11 | EXTUTILS ?= C:/perl/lib/ExtUtils |
| 14509 | 12 | |
|
15636
988327c23dcf
keeping the win32 build working...
Daniel Atallah <datallah@pidgin.im>
parents:
15533
diff
changeset
|
13 | CFLAGS += -Wno-comment -Wno-unused |
| 14509 | 14 | |
| 15 | ## | |
| 16 | ## INCLUDE PATHS | |
| 17 | ## | |
| 18 | INCLUDE_PATHS = -I. \ | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
19 | -I$(PIDGIN_TREE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
20 | -I$(PURPLE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
21 | -I$(PIDGIN_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
22 | -I$(PIDGIN_TOP)/win32 \ |
| 14509 | 23 | -I$(GTK_TOP)/include \ |
| 24 | -I$(GTK_TOP)/include/atk-1.0 \ | |
| 25 | -I$(GTK_TOP)/include/glib-2.0 \ | |
| 26 | -I$(GTK_TOP)/include/gtk-2.0 \ | |
| 27 | -I$(GTK_TOP)/include/pango-1.0 \ | |
| 28 | -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 29 | -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
| 30 | -I$(PERL_LIB_TOP)/CORE | |
| 31 | ||
|
16393
d89faf3f5282
Allow include and lib paths to be overridden from local.ent
Daniel Atallah <datallah@pidgin.im>
parents:
16108
diff
changeset
|
32 | LIB_PATHS += -L$(PERL_LIB_TOP) \ |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
33 | -L$(PURPLE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
34 | -L$(PIDGIN_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
35 | -L$(PURPLE_PERL_TOP) \ |
| 14509 | 36 | -L$(GTK_TOP)/lib |
| 37 | ||
| 38 | ## | |
| 39 | ## SOURCES, OBJECTS | |
| 40 | ## | |
| 41 | XS_FILES = \ | |
|
14633
7040a45fc8fb
[gaim-migrate @ 17295]
Daniel Atallah <datallah@pidgin.im>
parents:
14511
diff
changeset
|
42 | GtkUI.xs \ |
| 14509 | 43 | GtkAccount.xs \ |
| 44 | GtkBlist.xs \ | |
| 45 | GtkConn.xs \ | |
| 46 | GtkConv.xs \ | |
| 47 | GtkConvWin.xs \ | |
| 48 | GtkDebug.xs \ | |
| 49 | GtkDialogs.xs \ | |
| 50 | GtkFt.xs \ | |
| 51 | GtkIMHtml.xs \ | |
| 52 | GtkIMHtmlToolbar.xs \ | |
| 53 | GtkLog.xs \ | |
| 54 | GtkMenuTray.xs \ | |
| 55 | GtkPlugin.xs \ | |
| 56 | GtkPluginPref.xs \ | |
| 57 | GtkPounce.xs \ | |
| 58 | GtkPrefs.xs \ | |
| 59 | GtkPrivacy.xs \ | |
| 60 | GtkRoomlist.xs \ | |
| 61 | GtkSavedStatuses.xs \ | |
| 62 | GtkSound.xs \ | |
| 63 | GtkStatusBox.xs \ | |
| 64 | GtkThemes.xs \ | |
| 65 | GtkUtils.xs | |
| 66 | ||
| 67 | ||
| 68 | C_FILES = $(XS_FILES:%.xs=%.c) | |
| 69 | OBJECTS = $(C_FILES:%.c=%.o) | |
| 70 | ||
| 71 | ## | |
| 72 | ## LIBRARIES | |
| 73 | ## | |
| 74 | LIBS = -lperl58 \ | |
| 75 | -lperl \ | |
|
15438
c3e93cd038c5
Update win32 build for libpurple and pidgin renames. This compiles, but is far from complete.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
76 | -lpurple \ |
|
c3e93cd038c5
Update win32 build for libpurple and pidgin renames. This compiles, but is far from complete.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
77 | -lpidgin \ |
| 14509 | 78 | -lglib-2.0 |
| 79 | ||
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
80 | include $(PIDGIN_COMMON_RULES) |
| 14509 | 81 | |
| 82 | ## | |
| 83 | ## TARGETS | |
| 84 | ## | |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14637
diff
changeset
|
85 | .PHONY: all install clean |
| 14509 | 86 | |
| 87 | all: $(TARGET).dll | |
| 88 | ||
|
16108
f034f01bc55e
Fix some mingw makefile rename glitches.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
89 | $(PURPLE_INSTALL_PERLMOD_DIR)/Purple.pm: |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
90 | $(MAKE) -C $(PURPLE_PERL_TOP)/common -f $(MINGW_MAKEFILE) install |
| 14509 | 91 | |
|
16108
f034f01bc55e
Fix some mingw makefile rename glitches.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
92 | install: all $(PURPLE_INSTALL_PERLMOD_DIR)/Purple.pm |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
93 | rm -f $(PIDGIN_INSTALL_PERLMOD_DIR)/$(TARGET).dll $(PIDGIN_INSTALL_PERLMOD_DIR)/Pidgin/$(TARGET).pm |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
94 | mkdir -p $(PIDGIN_INSTALL_PERLMOD_DIR)/Pidgin |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
95 | cp $(TARGET).pm $(PIDGIN_INSTALL_PERLMOD_DIR)/Pidgin/ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
96 | cp $(TARGET).dll $(PIDGIN_INSTALL_PERLMOD_DIR) |
| 14509 | 97 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
98 | $(C_FILES): $(PIDGIN_CONFIG_H) |
| 14509 | 99 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
100 | $(TARGET).dll: $(PIDGIN_DLL).a $(PURPLE_PERL_DLL).a $(OBJECTS) |
| 14509 | 101 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) -o $(TARGET).dll |
| 102 | ||
| 103 | ## | |
| 104 | ## CLEAN | |
| 105 | ## | |
| 106 | clean: | |
|
14761
d90178571681
[gaim-migrate @ 17451]
Daniel Atallah <datallah@pidgin.im>
parents:
14638
diff
changeset
|
107 | rm -f *.o $(C_FILES) $(TARGET).dll |
| 14509 | 108 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
109 | include $(PIDGIN_COMMON_TARGETS) |