Mercurial > pidgin.yaz
annotate plugins/Makefile.mingw @ 4595:63c022ca157c
[gaim-migrate @ 4880]
I forgot this. "The way I see it, if you're gonna build a time machine
into a car, why not do it with some style."
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 20 Feb 2003 21:54:05 +0000 |
parents | 62e01447b647 |
children | 758f2edc3298 |
rev | line source |
---|---|
3630 | 1 # |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32 (mingw) version of Gaim Plugins | |
5 # | |
6 | |
7 # | |
8 # PATHS | |
9 # | |
10 | |
11 GAIM_PLUGINS := . | |
12 GAIM_TOP := .. | |
13 GTK_TOP := ../../win32-dev/gtk_2_0 | |
14 OSCAR_ROOT := ../src/protocols/oscar | |
15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
16 TICKER := ./ticker | |
3729 | 17 TRANSPARENCY := ./win32/transparency |
4133
d3d1dac745d4
[gaim-migrate @ 4351]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4123
diff
changeset
|
18 WINPREFS := ./win32/winprefs |
3630 | 19 |
20 ## | |
21 ## VARIABLE DEFINITIONS | |
22 ## | |
23 | |
24 # Compiler Options | |
25 | |
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
26 CFLAGS = |
3630 | 27 |
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
28 DEFINES = |
3630 | 29 |
30 .SUFFIXES: | |
31 .SUFFIXES: .c .dll | |
32 | |
33 ## | |
34 ## INCLUDE MAKEFILES | |
35 ## | |
36 | |
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
37 include $(GAIM_TOP)/src/win32/global.mak |
3630 | 38 |
39 ## | |
40 ## INCLUDE PATHS | |
41 ## | |
42 | |
43 INCLUDE_PATHS += -I$(OSCAR_ROOT) \ | |
44 -I$(GTK_TOP)/include \ | |
45 -I$(GTK_TOP)/include/gtk-2.0 \ | |
46 -I$(GTK_TOP)/include/glib-2.0 \ | |
47 -I$(GTK_TOP)/include/pango-1.0 \ | |
48 -I$(GTK_TOP)/include/atk-1.0 \ | |
49 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
50 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
51 -I$(GAIM_TOP) \ | |
52 -I$(GAIM_TOP)/src \ | |
53 -I$(GAIM_TOP)/src/win32 | |
54 | |
55 | |
56 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
57 -L$(GAIM_TOP)/src | |
58 | |
59 | |
60 ## | |
61 ## LIBRARIES | |
62 ## | |
63 | |
64 LIBS = -lgtk-win32-2.0 -lglib-2.0 -lgdk-win32-2.0 -lgobject-2.0 -lgmodule-2.0 -lintl -lws2_32 -liberty -lgaim | |
65 | |
66 ## | |
67 ## RULES | |
68 ## | |
69 | |
70 ## | |
71 ## TARGET DEFINITIONS | |
72 ## | |
73 | |
74 .PHONY: all clean | |
75 | |
76 all: plugins | |
77 $(MAKE) -C $(TICKER) -f Makefile.mingw | |
4401
3f09e83b569a
[gaim-migrate @ 4670]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4363
diff
changeset
|
78 $(MAKE) -C $(TRANSPARENCY) -f Makefile.mingw |
4133
d3d1dac745d4
[gaim-migrate @ 4351]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4123
diff
changeset
|
79 $(MAKE) -C $(WINPREFS) -f Makefile.mingw |
3630 | 80 |
81 install: | |
3739 | 82 cp $(GAIM_PLUGINS)/*.dll $(GAIM_PLUGINS)/gaim.pl $(GAIM_INSTALL_DIR)/plugins |
3630 | 83 $(MAKE) -C $(TICKER) -f Makefile.mingw install |
4401
3f09e83b569a
[gaim-migrate @ 4670]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4363
diff
changeset
|
84 $(MAKE) -C $(TRANSPARENCY) -f Makefile.mingw install |
4133
d3d1dac745d4
[gaim-migrate @ 4351]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4123
diff
changeset
|
85 $(MAKE) -C $(WINPREFS) -f Makefile.mingw install |
3630 | 86 |
87 # | |
88 # BUILD Plugin | |
89 # | |
90 | |
91 .c.dll: | |
92 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o tmp$@.o -c $< | |
93 dlltool -D $@ -z $@.def tmp$@.o | |
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
94 $(CC) -mdll -o junk.tmp -Wl,--base-file,$@.base tmp$@.o $(LIB_PATHS) $(LIBS) |
3630 | 95 dlltool -D $@ -b $@.base -e $@.exp -d $@.def |
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
96 $(CC) -mdll -o $@ tmp$@.o -Wl,$@.exp $(LIB_PATHS) $(LIBS) |
3630 | 97 rm -rf $@.base $@.def $@.exp junk.tmp |
98 | |
4498
62e01447b647
[gaim-migrate @ 4773]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4495
diff
changeset
|
99 plugins: iconaway.dll spellchk.dll autorecon.dll |
3630 | 100 |
101 | |
102 ## | |
103 ## CLEAN RULES | |
104 ## | |
105 | |
106 clean: | |
107 rm -rf *.o | |
108 rm -rf *.dll | |
109 $(MAKE) -C $(TICKER) -f Makefile.mingw clean | |
4401
3f09e83b569a
[gaim-migrate @ 4670]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4363
diff
changeset
|
110 $(MAKE) -C $(TRANSPARENCY) -f Makefile.mingw clean |
4133
d3d1dac745d4
[gaim-migrate @ 4351]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4123
diff
changeset
|
111 $(MAKE) -C $(WINPREFS) -f Makefile.mingw clean |