annotate plugins/perl/common/Makefile.mingw @ 11130:3f3bc7f1b6bf

[gaim-migrate @ 13186] Fixed warning messages committer: Tailor Script <tailor@pidgin.im>
author John H. Kelm <johnkelm@gmail.com>
date Tue, 19 Jul 2005 10:03:10 +0000
parents 6dcfec6f2f7c
children 2b6009535e30
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
1 #
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
2 # Makefile.mingw
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
3 #
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
4 # Description: Makefile for Gaim perl module.
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
5 #
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
6
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
7 TARGET = Gaim
7383
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
8 AUTOSPLIT = lib/auto/Gaim/autosplit.ix
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
9
7383
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
10 ##
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
11 ## TOOLS
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
12 ##
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
13
10804
6dcfec6f2f7c [gaim-migrate @ 12452]
Stu Tomlinson <stu@nosnilmot.com>
parents: 7383
diff changeset
14 CC := gcc
6dcfec6f2f7c [gaim-migrate @ 12452]
Stu Tomlinson <stu@nosnilmot.com>
parents: 7383
diff changeset
15 PERL := /cygdrive/c/perl/bin/perl
7383
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
16
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
17 ##
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
18 ## PATHS
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
19 ##
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
20
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
21 EXTUTILS := C:/perl/lib/ExtUtils
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
22 GAIM_TOP := ../../..
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
23 GTK_TOP := ../../../../win32-dev/gtk_2_0
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
24 PERL_TOP := ../../../../win32-dev/perl58
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
25 PERL_PLUGIN_TOP := ..
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
26 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
27 PERLMOD_INSTALL_DIR := $(GAIM_INSTALL_DIR)/perlmod
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
28
7383
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
29
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
30 INCLUDE_PATHS = -I. \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
31 -I$(GAIM_TOP) \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
32 -I$(GAIM_TOP)/src \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
33 -I$(GTK_TOP)/include/glib-2.0 \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
34 -I$(GTK_TOP)/lib/glib-2.0/include \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
35 -I$(PERL_TOP)/CORE
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
36
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
37 LIB_PATHS = -L$(PERL_TOP) \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
38 -L$(PERL_PLUGIN_TOP) \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
39 -L$(GAIM_TOP)/src \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
40 -L$(GTK_TOP)/lib
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
41
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
42
7383
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
43 ##
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
44 ## SOURCES, OBJECTS
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
45 ##
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
46
11130
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
47 XS_FILES = Account.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
48 AccountOpts.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
49 BuddyIcon.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
50 BuddyList.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
51 Cipher.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
52 Cmds.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
53 Connection.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
54 Conversation.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
55 FT.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
56 Gaim.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
57 ImgStore.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
58 Log.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
59 Network.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
60 Notify.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
61 Plugin.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
62 PluginPref.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
63 Pounce.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
64 Prefs.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
65 Privacy.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
66 Proxy.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
67 Prpl.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
68 Request.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
69 Roomlist.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
70 SSLConn.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
71 SavedStatuses.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
72 Server.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
73 Sound.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
74 Status.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
75 Stringref.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
76 Util.xs
3f3bc7f1b6bf [gaim-migrate @ 13186]
John H. Kelm <johnkelm@gmail.com>
parents: 10804
diff changeset
77 XMLNode.xs
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
78
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
79 FALLBACKS = const-c.inc const-xs.inc
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
80
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
81 C_FILES = $(XS_FILES:%.xs=%.c)
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
82
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
83 OBJECTS = $(C_FILES:%.c=%.o)
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
84
7383
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
85 ##
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
86 ## LIBRARIES
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
87 ##
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
88
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
89 LIBS = -lperl58 \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
90 -lperl \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
91 -lgaim \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
92 -lglib-2.0
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
93
7383
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
94 ##
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
95 ## RULES
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
96 ##
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
97
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
98 # How to make a C file
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
99 %.o: %.c
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
100 $(CC) $(CFLAGS) $(INCLUDE_PATHS) $(DEFINES) -c $< -o $@
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
101
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
102 # How to make a XS file
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
103 %.c: %.xs
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
104 $(PERL) $(EXTUTILS)/xsubpp -typemap $(EXTUTILS)/typemap -typemap typemap $< > $@
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
105
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
106 %.inc:
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
107 cp fallback/$@ ./
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
108
7383
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
109 ##
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
110 ## TARGETS
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
111 ##
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
112
7383
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
113 .PHONY: all clean
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
114
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
115 all: $(TARGET).dll $(AUTOSPLIT)
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
116
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
117 install:
7383
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
118 rm -rf $(PERLMOD_INSTALL_DIR)
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
119 cp -R lib $(PERLMOD_INSTALL_DIR)
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
120 cp $(TARGET).dll $(PERLMOD_INSTALL_DIR)
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
121
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
122 $(AUTOSPLIT): Gaim.pm
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
123 mkdir -p ./lib/auto
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
124 cp Gaim.pm ./lib
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
125 $(PERL) -MAutoSplit -e 'autosplit("lib/Gaim.pm")'
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
126
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
127 $(TARGET).dll: $(FALLBACKS) $(OBJECTS)
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
128 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) -o $(TARGET).dll
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
129
7383
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
130 ##
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
131 ## CLEAN
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
132 ##
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
133
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
134 clean:
7383
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
135 rm -rf *.o $(TARGET).dll $(FALLBACKS) lib