annotate plugins/perl/Makefile.mingw @ 19784:bc30c6270d9f

[gaim-migrate @ 16473] add the Framework of SOAP request Now can retrieve the Contact via SOAP Request. so many bug still exist! commited by MaYuan<mayuan2006@gmail.com> committer: Ethan Blanton <elb@pidgin.im>
author Ma Yuan <mayuan2006@gmail.com>
date Sun, 09 Jul 2006 16:48:25 +0000
parents 6dcfec6f2f7c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5467
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
1 #
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
2 # Makefile.mingw
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
3 #
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
4 # Description: Makefile for perl plugin loader plugin.
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
5 #
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
6
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
7 #
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
8 # PATHS
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
9 #
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
10
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
11 GTK_TOP := ../../../win32-dev/gtk_2_0
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
12 GAIM_TOP := ../..
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6576
diff changeset
13 PERL_LIB_DIR := ../../../win32-dev/perl58
5467
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
14 PERL_INCLUDE := $(PERL_LIB_DIR)/CORE
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
16 DLL_INSTALL_DIR := $(GAIM_INSTALL_DIR)/plugins
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
17
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
18 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
19 ## VARIABLE DEFINITIONS
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
20 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
21
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
22 TARGET = perl
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
23
10804
6dcfec6f2f7c [gaim-migrate @ 12452]
Stu Tomlinson <stu@nosnilmot.com>
parents: 8184
diff changeset
24 CC := gcc.exe
5467
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
25
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
26 # Compiler Options
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
27
5932
bb7723f0b4b9 [gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5467
diff changeset
28 CFLAGS =
5467
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
29
5932
bb7723f0b4b9 [gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5467
diff changeset
30 DEFINES =
5467
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
31
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
32 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
33 ## INCLUDE MAKEFILES
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
34 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
35
5932
bb7723f0b4b9 [gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5467
diff changeset
36 include $(GAIM_TOP)/src/win32/global.mak
5467
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
37
8184
f05d0a317f45 [gaim-migrate @ 8904]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
38 # Perl headers with /* /* */ type comments.. Turn off warnings.
f05d0a317f45 [gaim-migrate @ 8904]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
39 CFLAGS += -Wno-comment
f05d0a317f45 [gaim-migrate @ 8904]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
40
5467
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
41 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
42 ## INCLUDE PATHS
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
43 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
44
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
45 INCLUDE_PATHS += -I. \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
46 -I$(GAIM_TOP) \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
47 -I$(GAIM_TOP)/src \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
48 -I$(GAIM_TOP)/src/win32 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
49 -I$(GTK_TOP)/include \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
50 -I$(GTK_TOP)/include/gtk-2.0 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
51 -I$(GTK_TOP)/include/glib-2.0 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
52 -I$(GTK_TOP)/include/pango-1.0 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
53 -I$(GTK_TOP)/include/atk-1.0 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
54 -I$(GTK_TOP)/lib/glib-2.0/include \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
55 -I$(GTK_TOP)/lib/gtk-2.0/include \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
56 -I$(PERL_INCLUDE)
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
57
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
58
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
59
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
60
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
61 LIB_PATHS = -L$(GTK_TOP)/lib \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
62 -L$(GAIM_TOP)/src \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
63 -L$(PERL_LIB_DIR)
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
64
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
65
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
66 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
67 ## SOURCES, OBJECTS
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
68 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
69
6576
b931dcf6febc [gaim-migrate @ 7098]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5932
diff changeset
70 C_SRC = perl.c \
b931dcf6febc [gaim-migrate @ 7098]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5932
diff changeset
71 perl-common.c \
b931dcf6febc [gaim-migrate @ 7098]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5932
diff changeset
72 perl-handlers.c
5467
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
73
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
74
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
75 OBJECTS = $(C_SRC:%.c=%.o)
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
76
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
77
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
78 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
79 ## LIBRARIES
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
80 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
81
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
82 LIBS = -lgtk-win32-2.0 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
83 -lglib-2.0 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
84 -lgdk-win32-2.0 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
85 -lgmodule-2.0 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
86 -lgobject-2.0 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
87 -lws2_32 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
88 -lintl \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
89 -lgaim \
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6576
diff changeset
90 -lperl58
5467
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
91
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
92
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
93 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
94 ## RULES
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
95 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
96
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
97 # How to make a C file
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
98
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
99 %.o: %.c
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
100 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $<
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
101
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
102 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
103 ## TARGET DEFINITIONS
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
104 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
105
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
106 .PHONY: all clean
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
107
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
108 all: $(TARGET).dll
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6576
diff changeset
109 $(MAKE) -C ./common -f Makefile.mingw
5467
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
110
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
111 install:
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
112 cp $(TARGET).dll $(DLL_INSTALL_DIR)
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6576
diff changeset
113 $(MAKE) -C ./common -f Makefile.mingw install
5467
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
114
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
115 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
116 ## BUILD Dependencies
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
117 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
118
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
119 $(GAIM_TOP)/src/gaim.lib:
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
120 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
121
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
122 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
123 ## BUILD DLL
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
124 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
125
5932
bb7723f0b4b9 [gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5467
diff changeset
126 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6576
diff changeset
127 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--export-all-symbols -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll
5467
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
128
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
129
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
130 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
131 ## CLEAN RULES
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
132 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
133
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
134 clean:
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
135 rm -rf *.o
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6576
diff changeset
136 rm -rf $(TARGET).dll $(TARGET).lib
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6576
diff changeset
137 $(MAKE) -C ./common -f Makefile.mingw clean