Mercurial > pidgin.yaz
annotate libgaim/plugins/perl/common/Makefile.mingw @ 14372:d5c22258df09
[gaim-migrate @ 17078]
Reenable the perl build on non-Windows. I'm looking at making a gtk perl
plugin to use the gtk stuff, we'll see if I succeed. I'm leaving the gtk stuff
in here but ifdef:d out for now. I'll clean it up if I get the gtk perl plugin
working.
committer: Tailor Script <tailor@pidgin.im>
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Tue, 29 Aug 2006 04:15:29 +0000 |
parents | 8793fc8f7064 |
children | a4542693481d |
rev | line source |
---|---|
14192 | 1 # |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for Gaim perl module. | |
5 # | |
6 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
7 GAIM_TOP := ../../../.. |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
8 include $(GAIM_TOP)/libgaim/win32/global.mak |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
9 |
14192 | 10 TARGET = Gaim |
11 AUTOSPLIT = lib/auto/Gaim/autosplit.ix | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
12 EXTUTILS := C:/perl/lib/ExtUtils |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
13 PERL_PLUGIN_TOP := .. |
14192 | 14 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
15 CFLAGS += -Wno-comment |
14192 | 16 |
17 ## | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
18 ## INCLUDE PATHS |
14192 | 19 ## |
20 INCLUDE_PATHS = -I. \ | |
21 -I$(GAIM_TOP) \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
22 -I$(GAIM_LIB_TOP) \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
23 -I$(GAIM_GTK_TOP) \ |
14192 | 24 -I$(GTK_TOP)/include \ |
25 -I$(GTK_TOP)/include/gtk-2.0 \ | |
26 -I$(GTK_TOP)/include/glib-2.0 \ | |
27 -I$(GTK_TOP)/include/pango-1.0 \ | |
28 -I$(GTK_TOP)/include/atk-1.0 \ | |
29 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
30 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
31 -I$(PERL_LIB_TOP)/CORE |
14192 | 32 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
33 LIB_PATHS = -L$(PERL_LIB_TOP) \ |
14192 | 34 -L$(PERL_PLUGIN_TOP) \ |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
35 -L$(GAIM_LIB_TOP) \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
36 -L$(GAIM_GTK_TOP) \ |
14192 | 37 -L$(GTK_TOP)/lib |
38 | |
39 ## | |
40 ## SOURCES, OBJECTS | |
41 ## | |
42 XS_FILES = Account.xs \ | |
43 AccountOpts.xs \ | |
44 BuddyIcon.xs \ | |
45 BuddyList.xs \ | |
46 Cipher.xs \ | |
47 Cmds.xs \ | |
48 Connection.xs \ | |
49 Conversation.xs \ | |
50 Debug.xs \ | |
51 FT.xs \ | |
52 Gaim.xs \ | |
53 ImgStore.xs \ | |
54 Log.xs \ | |
55 Network.xs \ | |
56 Notify.xs \ | |
57 Plugin.xs \ | |
58 PluginPref.xs \ | |
59 Pounce.xs \ | |
60 Prefs.xs \ | |
61 Privacy.xs \ | |
62 Proxy.xs \ | |
63 Prpl.xs \ | |
64 Request.xs \ | |
65 Roomlist.xs \ | |
66 SSLConn.xs \ | |
67 SavedStatuses.xs \ | |
68 Signal.xs \ | |
69 Server.xs \ | |
70 Sound.xs \ | |
71 Status.xs \ | |
72 Stringref.xs \ | |
73 Util.xs \ | |
74 XMLNode.xs \ | |
75 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
76 FALLBACKS = const-c.inc const-xs.inc |
14192 | 77 C_FILES = $(XS_FILES:%.xs=%.c) |
78 OBJECTS = $(C_FILES:%.c=%.o) | |
79 | |
80 ## | |
81 ## LIBRARIES | |
82 ## | |
83 LIBS = -lperl58 \ | |
84 -lperl \ | |
85 -lgaim \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
86 -lgtkgaim \ |
14192 | 87 -lglib-2.0 |
88 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
89 include $(GAIM_COMMON_RULES) |
14192 | 90 |
91 %.inc: | |
92 cp fallback/$@ ./ | |
93 | |
94 ## | |
95 ## TARGETS | |
96 ## | |
97 .PHONY: all clean | |
98 | |
99 all: $(TARGET).dll $(AUTOSPLIT) | |
100 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
101 install: all |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
102 rm -rf $(GAIM_INSTALL_PERLMOD_DIR) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
103 cp -R lib $(GAIM_INSTALL_PERLMOD_DIR) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
104 cp $(TARGET).dll $(GAIM_INSTALL_PERLMOD_DIR) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
105 |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
106 $(C_FILES): $(GAIM_CONFIG_H) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
107 |
14192 | 108 $(AUTOSPLIT): Gaim.pm |
109 mkdir -p ./lib/auto | |
110 cp Gaim.pm ./lib | |
111 $(PERL) -MAutoSplit -e 'autosplit("lib/Gaim.pm")' | |
112 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
113 $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(GAIM_GTKGAIM_DLL).a $(FALLBACKS) $(OBJECTS) |
14192 | 114 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) -o $(TARGET).dll |
115 | |
116 ## | |
117 ## CLEAN | |
118 ## | |
119 clean: | |
120 rm -rf *.o $(TARGET).dll $(FALLBACKS) lib | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
121 |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
122 include $(GAIM_COMMON_TARGETS) |