annotate plugins/Makefile.mingw @ 7177:4200828dc06c

[gaim-migrate @ 7745] rwscott noticed this committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Mon, 06 Oct 2003 21:55:28 +0000
parents c92dbccd7448
children 6373f8060d90
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3630
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
1 #
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
2 # Makefile.mingw
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
3 #
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
4 # Description: Makefile for win32 (mingw) version of Gaim Plugins
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
5 #
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
6
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
7 #
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
8 # PATHS
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
9 #
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
10
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
11 GAIM_PLUGINS := .
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
12 GAIM_TOP := ..
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
13 GTK_TOP := ../../win32-dev/gtk_2_0
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
14 OSCAR_ROOT := ../src/protocols/oscar
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
16 TICKER := ./ticker
3729
a8f0c169e529 [gaim-migrate @ 3867]
Rob Flynn <gaim@robflynn.com>
parents: 3715
diff changeset
17 TRANSPARENCY := ./win32/transparency
4133
d3d1dac745d4 [gaim-migrate @ 4351]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4123
diff changeset
18 WINPREFS := ./win32/winprefs
5468
809ef68273c8 [gaim-migrate @ 5860]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4726
diff changeset
19 PERL_PLUGIN_LOADER := ./perl
6081
7c98adb00f3a [gaim-migrate @ 6540]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5932
diff changeset
20 DOCKLET := ./docklet
7056
c92dbccd7448 [gaim-migrate @ 7619]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6449
diff changeset
21 SSL := ./ssl
3630
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
22
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
23 ##
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
24 ## VARIABLE DEFINITIONS
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
25 ##
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
26
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
27 # Compiler Options
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
28
3715
764d6f1848b2 [gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 3630
diff changeset
29 CFLAGS =
3630
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
30
3715
764d6f1848b2 [gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 3630
diff changeset
31 DEFINES =
3630
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
32
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
33 .SUFFIXES:
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
34 .SUFFIXES: .c .dll
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
35
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
36 ##
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
37 ## INCLUDE MAKEFILES
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
38 ##
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
39
3715
764d6f1848b2 [gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 3630
diff changeset
40 include $(GAIM_TOP)/src/win32/global.mak
3630
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
41
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
42 ##
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
43 ## INCLUDE PATHS
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
44 ##
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
45
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
46 INCLUDE_PATHS += -I$(OSCAR_ROOT) \
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
47 -I$(GTK_TOP)/include \
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
48 -I$(GTK_TOP)/include/gtk-2.0 \
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
49 -I$(GTK_TOP)/include/glib-2.0 \
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
50 -I$(GTK_TOP)/include/pango-1.0 \
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
51 -I$(GTK_TOP)/include/atk-1.0 \
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
52 -I$(GTK_TOP)/lib/glib-2.0/include \
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
53 -I$(GTK_TOP)/lib/gtk-2.0/include \
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
54 -I$(GAIM_TOP) \
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
55 -I$(GAIM_TOP)/src \
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
56 -I$(GAIM_TOP)/src/win32
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
57
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
58
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
59 LIB_PATHS = -L$(GTK_TOP)/lib \
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
60 -L$(GAIM_TOP)/src
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
61
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
62
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
63 ##
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
64 ## LIBRARIES
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
65 ##
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
66
5932
bb7723f0b4b9 [gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5468
diff changeset
67 LIBS = -lgtk-win32-2.0 \
bb7723f0b4b9 [gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5468
diff changeset
68 -lglib-2.0 \
bb7723f0b4b9 [gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5468
diff changeset
69 -lgdk-win32-2.0 \
bb7723f0b4b9 [gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5468
diff changeset
70 -lgobject-2.0 \
bb7723f0b4b9 [gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5468
diff changeset
71 -lgmodule-2.0 \
6343
46355beb6c30 [gaim-migrate @ 6842]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6081
diff changeset
72 -lgdk_pixbuf-2.0 \
46355beb6c30 [gaim-migrate @ 6842]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6081
diff changeset
73 -lpango-1.0 \
5932
bb7723f0b4b9 [gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5468
diff changeset
74 -lintl \
bb7723f0b4b9 [gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5468
diff changeset
75 -lws2_32 \
bb7723f0b4b9 [gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5468
diff changeset
76 -lgaim
3630
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
77
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
78 ##
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
79 ## RULES
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
80 ##
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
81
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
82 ##
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
83 ## TARGET DEFINITIONS
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
84 ##
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
85
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
86 .PHONY: all clean
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
87
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
88 all: plugins
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
89 $(MAKE) -C $(TICKER) -f Makefile.mingw
4133
d3d1dac745d4 [gaim-migrate @ 4351]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4123
diff changeset
90 $(MAKE) -C $(WINPREFS) -f Makefile.mingw
4726
0b1c01fd68f1 [gaim-migrate @ 5039]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4709
diff changeset
91 $(MAKE) -C $(TRANSPARENCY) -f Makefile.mingw
5468
809ef68273c8 [gaim-migrate @ 5860]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4726
diff changeset
92 $(MAKE) -C $(PERL_PLUGIN_LOADER) -f Makefile.mingw
6081
7c98adb00f3a [gaim-migrate @ 6540]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5932
diff changeset
93 $(MAKE) -C $(DOCKLET) -f Makefile.mingw
7056
c92dbccd7448 [gaim-migrate @ 7619]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6449
diff changeset
94 $(MAKE) -C $(SSL) -f Makefile.mingw
4709
57d74064445a [gaim-migrate @ 5020]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4610
diff changeset
95
3630
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
96 install:
4610
758f2edc3298 [gaim-migrate @ 4899]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4498
diff changeset
97 cp $(GAIM_PLUGINS)/*.dll $(GAIM_INSTALL_DIR)/plugins
3630
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
98 $(MAKE) -C $(TICKER) -f Makefile.mingw install
4133
d3d1dac745d4 [gaim-migrate @ 4351]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4123
diff changeset
99 $(MAKE) -C $(WINPREFS) -f Makefile.mingw install
4726
0b1c01fd68f1 [gaim-migrate @ 5039]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4709
diff changeset
100 $(MAKE) -C $(TRANSPARENCY) -f Makefile.mingw install
5468
809ef68273c8 [gaim-migrate @ 5860]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4726
diff changeset
101 $(MAKE) -C $(PERL_PLUGIN_LOADER) -f Makefile.mingw install
6081
7c98adb00f3a [gaim-migrate @ 6540]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5932
diff changeset
102 $(MAKE) -C $(DOCKLET) -f Makefile.mingw install
7056
c92dbccd7448 [gaim-migrate @ 7619]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6449
diff changeset
103 $(MAKE) -C $(SSL) -f Makefile.mingw install
4709
57d74064445a [gaim-migrate @ 5020]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4610
diff changeset
104
3630
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
105 #
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
106 # BUILD Plugin
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
107 #
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
108
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
109 .c.dll:
5932
bb7723f0b4b9 [gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5468
diff changeset
110 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@.o -c $<
bb7723f0b4b9 [gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5468
diff changeset
111 $(CC) -shared $@.o $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $@
3630
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
112
6449
ea689dbf1a57 [gaim-migrate @ 6958]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6343
diff changeset
113 plugins: \
ea689dbf1a57 [gaim-migrate @ 6958]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6343
diff changeset
114 autorecon.dll \
ea689dbf1a57 [gaim-migrate @ 6958]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6343
diff changeset
115 history.dll \
ea689dbf1a57 [gaim-migrate @ 6958]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6343
diff changeset
116 iconaway.dll \
ea689dbf1a57 [gaim-migrate @ 6958]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6343
diff changeset
117 idle.dll \
ea689dbf1a57 [gaim-migrate @ 6958]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6343
diff changeset
118 spellchk.dll \
ea689dbf1a57 [gaim-migrate @ 6958]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6343
diff changeset
119 statenotify.dll \
ea689dbf1a57 [gaim-migrate @ 6958]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6343
diff changeset
120 timestamp.dll
3630
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
121
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
122
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
123 ##
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
124 ## CLEAN RULES
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
125 ##
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
126
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
127 clean:
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
128 rm -rf *.o
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
129 rm -rf *.dll
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
130 $(MAKE) -C $(TICKER) -f Makefile.mingw clean
4401
3f09e83b569a [gaim-migrate @ 4670]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4363
diff changeset
131 $(MAKE) -C $(TRANSPARENCY) -f Makefile.mingw clean
4133
d3d1dac745d4 [gaim-migrate @ 4351]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4123
diff changeset
132 $(MAKE) -C $(WINPREFS) -f Makefile.mingw clean
5468
809ef68273c8 [gaim-migrate @ 5860]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4726
diff changeset
133 $(MAKE) -C $(PERL_PLUGIN_LOADER) -f Makefile.mingw clean
6081
7c98adb00f3a [gaim-migrate @ 6540]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5932
diff changeset
134 $(MAKE) -C $(DOCKLET) -f Makefile.mingw clean
7056
c92dbccd7448 [gaim-migrate @ 7619]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6449
diff changeset
135 $(MAKE) -C $(SSL) -f Makefile.mingw clean