Sun, 15 Apr 2007 02:10:37 +0000
propagate from branch 'im.pidgin.gaim' (head b2836a24d81e7a1bd1d21b3aea8794b094391344)
to branch 'im.pidgin.rlaager.merging.soc-msnp13-to-svn18164' (head 463b4fa9f067b279f843520d95a822adc86a0a1b)
| 6816 | 1 | # |
| 2 | # Makefile.mingw | |
| 3 | # | |
| 4 | # Description: Makefile for Gaim perl module. | |
| 5 | # | |
| 6 | ||
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
7 | GAIM_TOP := ../../../.. |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
8 | include $(GAIM_TOP)/libgaim/win32/global.mak |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
9 | |
| 6816 | 10 | TARGET = Gaim |
|
7383
d6b354fc9ea2
[gaim-migrate @ 7978]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
11 | AUTOSPLIT = lib/auto/Gaim/autosplit.ix |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
12 | EXTUTILS := C:/perl/lib/ExtUtils |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
13 | PERL_PLUGIN_TOP := .. |
| 6816 | 14 | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
15 | CFLAGS += -Wno-comment |
|
7383
d6b354fc9ea2
[gaim-migrate @ 7978]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
16 | |
|
d6b354fc9ea2
[gaim-migrate @ 7978]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
17 | ## |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
18 | ## INCLUDE PATHS |
|
7383
d6b354fc9ea2
[gaim-migrate @ 7978]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
19 | ## |
| 6816 | 20 | INCLUDE_PATHS = -I. \ |
| 21 | -I$(GAIM_TOP) \ | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
22 | -I$(GAIM_LIB_TOP) \ |
| 11139 | 23 | -I$(GTK_TOP)/include \ |
| 6816 | 24 | -I$(GTK_TOP)/include/glib-2.0 \ |
| 25 | -I$(GTK_TOP)/lib/glib-2.0/include \ | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
26 | -I$(PERL_LIB_TOP)/CORE |
| 6816 | 27 | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
28 | LIB_PATHS = -L$(PERL_LIB_TOP) \ |
| 6816 | 29 | -L$(PERL_PLUGIN_TOP) \ |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
30 | -L$(GAIM_LIB_TOP) \ |
| 6816 | 31 | -L$(GTK_TOP)/lib |
| 32 | ||
|
7383
d6b354fc9ea2
[gaim-migrate @ 7978]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
33 | ## |
|
d6b354fc9ea2
[gaim-migrate @ 7978]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
34 | ## SOURCES, OBJECTS |
|
d6b354fc9ea2
[gaim-migrate @ 7978]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
35 | ## |
| 11139 | 36 | XS_FILES = Account.xs \ |
| 37 | AccountOpts.xs \ | |
| 38 | BuddyIcon.xs \ | |
| 39 | BuddyList.xs \ | |
| 40 | Cipher.xs \ | |
| 41 | Cmds.xs \ | |
| 42 | Connection.xs \ | |
| 43 | Conversation.xs \ | |
|
15067
3672f677a237
[gaim-migrate @ 17785]
Richard Laager <rlaager@pidgin.im>
parents:
14761
diff
changeset
|
44 | Core.xs \ |
| 13191 | 45 | Debug.xs \ |
| 11139 | 46 | FT.xs \ |
| 47 | Gaim.xs \ | |
| 48 | ImgStore.xs \ | |
| 49 | Log.xs \ | |
| 50 | Network.xs \ | |
| 51 | Notify.xs \ | |
| 52 | Plugin.xs \ | |
| 53 | PluginPref.xs \ | |
| 54 | Pounce.xs \ | |
| 55 | Prefs.xs \ | |
| 56 | Privacy.xs \ | |
| 57 | Proxy.xs \ | |
| 58 | Prpl.xs \ | |
| 59 | Request.xs \ | |
| 60 | Roomlist.xs \ | |
| 61 | SSLConn.xs \ | |
| 62 | SavedStatuses.xs \ | |
| 13191 | 63 | Signal.xs \ |
| 11139 | 64 | Server.xs \ |
| 65 | Sound.xs \ | |
| 66 | Status.xs \ | |
| 67 | Stringref.xs \ | |
| 68 | Util.xs \ | |
| 69 | XMLNode.xs \ | |
| 6816 | 70 | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
71 | FALLBACKS = const-c.inc const-xs.inc |
| 6816 | 72 | C_FILES = $(XS_FILES:%.xs=%.c) |
| 73 | OBJECTS = $(C_FILES:%.c=%.o) | |
| 74 | ||
|
7383
d6b354fc9ea2
[gaim-migrate @ 7978]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
75 | ## |
|
d6b354fc9ea2
[gaim-migrate @ 7978]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
76 | ## LIBRARIES |
|
d6b354fc9ea2
[gaim-migrate @ 7978]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
77 | ## |
| 6816 | 78 | LIBS = -lperl58 \ |
| 79 | -lperl \ | |
| 80 | -lgaim \ | |
| 81 | -lglib-2.0 | |
| 82 | ||
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
83 | include $(GAIM_COMMON_RULES) |
| 6816 | 84 | |
| 85 | %.inc: | |
| 86 | cp fallback/$@ ./ | |
| 87 | ||
|
7383
d6b354fc9ea2
[gaim-migrate @ 7978]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
88 | ## |
|
d6b354fc9ea2
[gaim-migrate @ 7978]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
89 | ## TARGETS |
|
d6b354fc9ea2
[gaim-migrate @ 7978]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
90 | ## |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14509
diff
changeset
|
91 | .PHONY: all install clean |
|
7383
d6b354fc9ea2
[gaim-migrate @ 7978]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
92 | |
|
d6b354fc9ea2
[gaim-migrate @ 7978]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
93 | all: $(TARGET).dll $(AUTOSPLIT) |
|
d6b354fc9ea2
[gaim-migrate @ 7978]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
94 | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
95 | install: all |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
96 | rm -rf $(GAIM_INSTALL_PERLMOD_DIR) |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
97 | cp -R lib $(GAIM_INSTALL_PERLMOD_DIR) |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
98 | cp $(TARGET).dll $(GAIM_INSTALL_PERLMOD_DIR) |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
99 | |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
100 | $(C_FILES): $(GAIM_CONFIG_H) |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
101 | |
|
14509
e46c4ed7e331
[gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
14435
diff
changeset
|
102 | $(AUTOSPLIT): |
|
7383
d6b354fc9ea2
[gaim-migrate @ 7978]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
103 | mkdir -p ./lib/auto |
|
d6b354fc9ea2
[gaim-migrate @ 7978]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
104 | cp Gaim.pm ./lib |
|
d6b354fc9ea2
[gaim-migrate @ 7978]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
105 | $(PERL) -MAutoSplit -e 'autosplit("lib/Gaim.pm")' |
| 6816 | 106 | |
|
14509
e46c4ed7e331
[gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
14435
diff
changeset
|
107 | $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(GAIM_LIBGAIM_PERL_DLL).a $(FALLBACKS) $(OBJECTS) |
| 6816 | 108 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) -o $(TARGET).dll |
| 109 | ||
|
7383
d6b354fc9ea2
[gaim-migrate @ 7978]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
110 | ## |
|
d6b354fc9ea2
[gaim-migrate @ 7978]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
111 | ## CLEAN |
|
d6b354fc9ea2
[gaim-migrate @ 7978]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
112 | ## |
| 6816 | 113 | clean: |
|
14761
d90178571681
[gaim-migrate @ 17451]
Daniel Atallah <datallah@pidgin.im>
parents:
14638
diff
changeset
|
114 | rm -rf $(TARGET).dll $(FALLBACKS) lib |
|
d90178571681
[gaim-migrate @ 17451]
Daniel Atallah <datallah@pidgin.im>
parents:
14638
diff
changeset
|
115 | rm -f *.o $(C_FILES) |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
116 | |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
117 | include $(GAIM_COMMON_TARGETS) |