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
| 14286 | 1 | # |
| 2 | # Makefile.mingw | |
| 3 | # | |
| 4 | # Description: Makefile for win32trans 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 |
| 14286 | 9 | |
| 10 | TARGET = win2ktrans | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
11 | DEFINES += -D_WIN32_WINNT=0x0500 |
| 14286 | 12 | |
| 13 | ## | |
| 14 | ## INCLUDE PATHS | |
| 15 | ## | |
| 16 | INCLUDE_PATHS += -I. \ | |
| 17 | -I$(GTK_TOP)/include \ | |
| 18 | -I$(GTK_TOP)/include/gtk-2.0 \ | |
| 19 | -I$(GTK_TOP)/include/glib-2.0 \ | |
| 20 | -I$(GTK_TOP)/include/pango-1.0 \ | |
| 21 | -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
|
22 | -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:
16393
diff
changeset
|
23 | -I$(GTK_TOP)/include/gdk-pixbuf-2.0 \ |
| 14286 | 24 | -I$(GTK_TOP)/lib/glib-2.0/include \ |
| 25 | -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
|
26 | -I$(PURPLE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
27 | -I$(PURPLE_TOP)/win32 \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
28 | -I$(PIDGIN_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
29 | -I$(PIDGIN_TOP)/win32 \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
30 | -I$(PIDGIN_TREE_TOP) |
| 14286 | 31 | |
|
16393
d89faf3f5282
Allow include and lib paths to be overridden from local.ent
Daniel Atallah <datallah@pidgin.im>
parents:
16294
diff
changeset
|
32 | 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
|
33 | -L$(PURPLE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
34 | -L$(PIDGIN_TOP) |
| 14286 | 35 | |
| 36 | ## | |
| 37 | ## SOURCES, OBJECTS | |
| 38 | ## | |
| 39 | C_SRC = win2ktrans.c | |
| 40 | ||
| 41 | OBJECTS = $(C_SRC:%.c=%.o) | |
| 42 | ||
| 43 | ## | |
| 44 | ## LIBRARIES | |
| 45 | ## | |
| 46 | LIBS = -lgtk-win32-2.0 \ | |
| 47 | -lglib-2.0 \ | |
| 48 | -lgdk-win32-2.0 \ | |
| 49 | -lgmodule-2.0 \ | |
| 50 | -lgobject-2.0 \ | |
| 51 | -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
|
52 | -lpidgin \ |
|
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
|
53 | -lpurple |
| 14286 | 54 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
55 | include $(PIDGIN_COMMON_RULES) |
| 14286 | 56 | |
| 57 | ## | |
| 58 | ## TARGET DEFINITIONS | |
| 59 | ## | |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
60 | .PHONY: all install clean |
| 14286 | 61 | |
| 62 | all: $(TARGET).dll | |
| 63 | ||
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
64 | install: all $(PIDGIN_INSTALL_PLUGINS_DIR) |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
65 | cp $(TARGET).dll $(PIDGIN_INSTALL_PLUGINS_DIR) |
| 14286 | 66 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
67 | $(TARGET).dll: $(PURPLE_DLL).a $(PIDGIN_DLL).a $(OBJECTS) |
| 14286 | 68 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
| 69 | ||
| 70 | ## | |
| 71 | ## CLEAN RULES | |
| 72 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
73 | clean: |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
74 | rm -rf $(OBJECTS) |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
75 | rm -rf $(TARGET).dll |
| 14286 | 76 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
77 | include $(PIDGIN_COMMON_TARGETS) |