Thu, 04 Apr 2013 01:21:30 +0200
Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
| 3630 | 1 | # |
| 2 | # Makefile.mingw | |
| 3 | # | |
| 4 | # Description: Makefile for ticker plugin. | |
| 5 | # | |
| 6 | ||
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
7 | PIDGIN_TREE_TOP := ../../.. |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
8 | include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak |
| 3630 | 9 | |
| 10 | TARGET = ticker | |
| 11 | ||
| 12 | ## | |
| 13 | ## INCLUDE PATHS | |
| 14 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
15 | INCLUDE_PATHS += -I. \ |
| 3630 | 16 | -I$(GTK_TOP)/include \ |
| 17 | -I$(GTK_TOP)/include/gtk-2.0 \ | |
| 18 | -I$(GTK_TOP)/include/glib-2.0 \ | |
| 19 | -I$(GTK_TOP)/include/pango-1.0 \ | |
| 20 | -I$(GTK_TOP)/include/atk-1.0 \ | |
|
16294
8310c8cce698
Add cairo to the mingw build include path. Fixes #175 .
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
21 | -I$(GTK_TOP)/include/cairo \ |
|
33854
5744cfb1c3d1
Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
17086
diff
changeset
|
22 | -I$(GTK_TOP)/include/gdk-pixbuf-2.0 \ |
| 3630 | 23 | -I$(GTK_TOP)/lib/glib-2.0/include \ |
| 24 | -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
25 | -I$(PURPLE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
26 | -I$(PURPLE_TOP)/win32 \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
27 | -I$(PIDGIN_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
28 | -I$(PIDGIN_TOP)/win32 \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
29 | -I$(PIDGIN_TREE_TOP) |
| 3630 | 30 | |
|
16393
d89faf3f5282
Allow include and lib paths to be overridden from local.ent
Daniel Atallah <datallah@pidgin.im>
parents:
16294
diff
changeset
|
31 | LIB_PATHS += -L$(GTK_TOP)/lib \ |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
32 | -L$(PURPLE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
33 | -L$(PIDGIN_TOP) |
| 3630 | 34 | |
| 35 | ## | |
| 36 | ## SOURCES, OBJECTS | |
| 37 | ## | |
| 38 | C_SRC = ticker.c \ | |
| 39 | gtkticker.c | |
| 40 | ||
| 41 | OBJECTS = $(C_SRC:%.c=%.o) | |
| 42 | ||
| 43 | ## | |
| 44 | ## LIBRARIES | |
| 45 | ## | |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3715
diff
changeset
|
46 | LIBS = -lgtk-win32-2.0 \ |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3715
diff
changeset
|
47 | -lglib-2.0 \ |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3715
diff
changeset
|
48 | -lgdk-win32-2.0 \ |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3715
diff
changeset
|
49 | -lgobject-2.0 \ |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3715
diff
changeset
|
50 | -lintl \ |
|
15438
c3e93cd038c5
Update win32 build for libpurple and pidgin renames. This compiles, but is far from complete.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
51 | -lpurple \ |
|
c3e93cd038c5
Update win32 build for libpurple and pidgin renames. This compiles, but is far from complete.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
52 | -lpidgin |
| 3630 | 53 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
54 | include $(PIDGIN_COMMON_RULES) |
| 3630 | 55 | |
| 56 | ## | |
| 57 | ## TARGET DEFINITIONS | |
| 58 | ## | |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
59 | .PHONY: all install clean |
| 3630 | 60 | |
| 61 | all: $(TARGET).dll | |
| 62 | ||
|
17086
4b6d59cdfaca
This is what I actually intended to commit in aee2b2d67b643d59beb0b75b460c553c804e8220. The rest of the mess being pushed is me trying to clean up my mess.
Daniel Atallah <datallah@pidgin.im>
parents:
17082
diff
changeset
|
63 | install: $(PIDGIN_INSTALL_PLUGINS_DIR) all |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
64 | cp $(TARGET).dll $(PIDGIN_INSTALL_PLUGINS_DIR) |
| 3630 | 65 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
66 | $(OBJECTS): $(PIDGIN_CONFIG_H) |
| 3630 | 67 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
68 | $(TARGET).dll: $(PURPLE_DLL).a $(PIDGIN_DLL).a $(OBJECTS) |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3715
diff
changeset
|
69 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
| 3630 | 70 | |
| 71 | ## | |
| 72 | ## CLEAN RULES | |
| 73 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
74 | clean: |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
75 | rm -rf $(OBJECTS) |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
76 | rm -rf $(TARGET).dll |
| 3630 | 77 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
78 | include $(PIDGIN_COMMON_TARGETS) |