Tue, 10 Jun 2008 16:18:12 +0000
Add another translation: wud -> would
| 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) \ |
|
18633
34ba43198355
Fix the win32 build. Thanks to Etan and Lee Roach. Fixes #1929.
Daniel Atallah <datallah@pidgin.im>
parents:
16641
diff
changeset
|
21 | -I$(PURPLE_TOP)/win32 \ |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
22 | -I$(PIDGIN_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
23 | -I$(PIDGIN_TOP)/win32 \ |
| 14509 | 24 | -I$(GTK_TOP)/include \ |
| 25 | -I$(GTK_TOP)/include/atk-1.0 \ | |
| 26 | -I$(GTK_TOP)/include/glib-2.0 \ | |
| 27 | -I$(GTK_TOP)/include/gtk-2.0 \ | |
| 28 | -I$(GTK_TOP)/include/pango-1.0 \ | |
| 29 | -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 30 | -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
| 31 | -I$(PERL_LIB_TOP)/CORE | |
| 32 | ||
|
16393
d89faf3f5282
Allow include and lib paths to be overridden from local.ent
Daniel Atallah <datallah@pidgin.im>
parents:
16108
diff
changeset
|
33 | 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
|
34 | -L$(PURPLE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
35 | -L$(PIDGIN_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
36 | -L$(PURPLE_PERL_TOP) \ |
| 14509 | 37 | -L$(GTK_TOP)/lib |
| 38 | ||
| 39 | ## | |
| 40 | ## SOURCES, OBJECTS | |
| 41 | ## | |
| 42 | XS_FILES = \ | |
|
16529
1d0da9270ff9
This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <deryni@pidgin.im>
parents:
16393
diff
changeset
|
43 | Pidgin.xs \ |
| 14509 | 44 | GtkAccount.xs \ |
| 45 | GtkBlist.xs \ | |
| 46 | GtkConn.xs \ | |
| 47 | GtkConv.xs \ | |
| 48 | GtkConvWin.xs \ | |
| 49 | GtkDebug.xs \ | |
| 50 | GtkDialogs.xs \ | |
| 51 | GtkFt.xs \ | |
| 52 | GtkIMHtml.xs \ | |
| 53 | GtkIMHtmlToolbar.xs \ | |
| 54 | GtkLog.xs \ | |
| 55 | GtkMenuTray.xs \ | |
| 56 | GtkPlugin.xs \ | |
| 57 | GtkPluginPref.xs \ | |
| 58 | GtkPounce.xs \ | |
| 59 | GtkPrefs.xs \ | |
| 60 | GtkPrivacy.xs \ | |
| 61 | GtkRoomlist.xs \ | |
| 62 | GtkSavedStatuses.xs \ | |
| 63 | GtkSound.xs \ | |
| 64 | GtkStatusBox.xs \ | |
| 65 | GtkThemes.xs \ | |
| 66 | GtkUtils.xs | |
| 67 | ||
| 68 | ||
| 69 | C_FILES = $(XS_FILES:%.xs=%.c) | |
| 70 | OBJECTS = $(C_FILES:%.c=%.o) | |
| 71 | ||
| 72 | ## | |
| 73 | ## LIBRARIES | |
| 74 | ## | |
| 75 | LIBS = -lperl58 \ | |
| 76 | -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
|
77 | -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
|
78 | -lpidgin \ |
| 14509 | 79 | -lglib-2.0 |
| 80 | ||
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
81 | include $(PIDGIN_COMMON_RULES) |
| 14509 | 82 | |
| 83 | ## | |
| 84 | ## TARGETS | |
| 85 | ## | |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14637
diff
changeset
|
86 | .PHONY: all install clean |
| 14509 | 87 | |
| 88 | all: $(TARGET).dll | |
| 89 | ||
|
16108
f034f01bc55e
Fix some mingw makefile rename glitches.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
90 | $(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
|
91 | $(MAKE) -C $(PURPLE_PERL_TOP)/common -f $(MINGW_MAKEFILE) install |
| 14509 | 92 | |
|
16108
f034f01bc55e
Fix some mingw makefile rename glitches.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
93 | 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
|
94 | rm -f $(PIDGIN_INSTALL_PERLMOD_DIR)/$(TARGET).dll $(PIDGIN_INSTALL_PERLMOD_DIR)/Pidgin/$(TARGET).pm |
|
16641
dca38ef38fc4
Fix win32 pidgin perl stuff. This hasn't been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
16529
diff
changeset
|
95 | mkdir -p $(PIDGIN_INSTALL_PERLMOD_DIR) |
|
dca38ef38fc4
Fix win32 pidgin perl stuff. This hasn't been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
16529
diff
changeset
|
96 | cp $(TARGET).pm $(PIDGIN_INSTALL_PERLMOD_DIR) |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
97 | cp $(TARGET).dll $(PIDGIN_INSTALL_PERLMOD_DIR) |
| 14509 | 98 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
99 | $(C_FILES): $(PIDGIN_CONFIG_H) |
| 14509 | 100 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
101 | $(TARGET).dll: $(PIDGIN_DLL).a $(PURPLE_PERL_DLL).a $(OBJECTS) |
| 14509 | 102 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) -o $(TARGET).dll |
| 103 | ||
| 104 | ## | |
| 105 | ## CLEAN | |
| 106 | ## | |
| 107 | clean: | |
|
14761
d90178571681
[gaim-migrate @ 17451]
Daniel Atallah <datallah@pidgin.im>
parents:
14638
diff
changeset
|
108 | rm -f *.o $(C_FILES) $(TARGET).dll |
| 14509 | 109 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
110 | include $(PIDGIN_COMMON_TARGETS) |