Mercurial > pidgin.yaz
annotate libgaim/plugins/perl/common/Makefile.mingw @ 14373:a4542693481d
[gaim-migrate @ 17079]
Remove the gtkgaim headers from the include path.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 29 Aug 2006 04:33:53 +0000 |
parents | 8793fc8f7064 |
children | e88aae4f4c40 |
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) \ |
14192 | 23 -I$(GTK_TOP)/include \ |
24 -I$(GTK_TOP)/include/glib-2.0 \ | |
25 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
26 -I$(PERL_LIB_TOP)/CORE |
14192 | 27 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
28 LIB_PATHS = -L$(PERL_LIB_TOP) \ |
14192 | 29 -L$(PERL_PLUGIN_TOP) \ |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
30 -L$(GAIM_LIB_TOP) \ |
14192 | 31 -L$(GTK_TOP)/lib |
32 | |
33 ## | |
34 ## SOURCES, OBJECTS | |
35 ## | |
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 \ | |
44 Debug.xs \ | |
45 FT.xs \ | |
46 Gaim.xs \ | |
47 ImgStore.xs \ | |
48 Log.xs \ | |
49 Network.xs \ | |
50 Notify.xs \ | |
51 Plugin.xs \ | |
52 PluginPref.xs \ | |
53 Pounce.xs \ | |
54 Prefs.xs \ | |
55 Privacy.xs \ | |
56 Proxy.xs \ | |
57 Prpl.xs \ | |
58 Request.xs \ | |
59 Roomlist.xs \ | |
60 SSLConn.xs \ | |
61 SavedStatuses.xs \ | |
62 Signal.xs \ | |
63 Server.xs \ | |
64 Sound.xs \ | |
65 Status.xs \ | |
66 Stringref.xs \ | |
67 Util.xs \ | |
68 XMLNode.xs \ | |
69 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
70 FALLBACKS = const-c.inc const-xs.inc |
14192 | 71 C_FILES = $(XS_FILES:%.xs=%.c) |
72 OBJECTS = $(C_FILES:%.c=%.o) | |
73 | |
74 ## | |
75 ## LIBRARIES | |
76 ## | |
77 LIBS = -lperl58 \ | |
78 -lperl \ | |
79 -lgaim \ | |
80 -lglib-2.0 | |
81 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
82 include $(GAIM_COMMON_RULES) |
14192 | 83 |
84 %.inc: | |
85 cp fallback/$@ ./ | |
86 | |
87 ## | |
88 ## TARGETS | |
89 ## | |
90 .PHONY: all clean | |
91 | |
92 all: $(TARGET).dll $(AUTOSPLIT) | |
93 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
94 install: all |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
95 rm -rf $(GAIM_INSTALL_PERLMOD_DIR) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
96 cp -R lib $(GAIM_INSTALL_PERLMOD_DIR) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
97 cp $(TARGET).dll $(GAIM_INSTALL_PERLMOD_DIR) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
98 |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
99 $(C_FILES): $(GAIM_CONFIG_H) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
100 |
14192 | 101 $(AUTOSPLIT): Gaim.pm |
102 mkdir -p ./lib/auto | |
103 cp Gaim.pm ./lib | |
104 $(PERL) -MAutoSplit -e 'autosplit("lib/Gaim.pm")' | |
105 | |
14373
a4542693481d
[gaim-migrate @ 17079]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
106 $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(FALLBACKS) $(OBJECTS) |
14192 | 107 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) -o $(TARGET).dll |
108 | |
109 ## | |
110 ## CLEAN | |
111 ## | |
112 clean: | |
113 rm -rf *.o $(TARGET).dll $(FALLBACKS) lib | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
114 |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
115 include $(GAIM_COMMON_TARGETS) |