Mon, 12 Aug 2013 05:51:12 +0530
Refactored simple to use the new plugin API
| 11090 | 1 | # |
| 2 | # Makefile.mingw | |
| 3 | # | |
| 4 | # Description: Makefile for win32 (mingw) version of libsametime | |
| 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 |
| 11090 | 9 | |
| 10 | TARGET = libsametime | |
|
14617
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
11 | TYPE = PLUGIN |
|
12643
4d1099e80097
[gaim-migrate @ 14980]
Daniel Atallah <datallah@pidgin.im>
parents:
12496
diff
changeset
|
12 | |
| 11090 | 13 | # Static or Plugin... |
| 14 | ifeq ($(TYPE),STATIC) | |
| 15 | DEFINES += -DSTATIC | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
16 | DLL_INSTALL_DIR = $(PURPLE_INSTALL_DIR) |
|
12643
4d1099e80097
[gaim-migrate @ 14980]
Daniel Atallah <datallah@pidgin.im>
parents:
12496
diff
changeset
|
17 | else |
| 11090 | 18 | ifeq ($(TYPE),PLUGIN) |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
19 | DLL_INSTALL_DIR = $(PURPLE_INSTALL_PLUGINS_DIR) |
| 11090 | 20 | endif |
| 21 | endif | |
| 22 | ||
|
25366
a054bb9dfba1
Improve the sametime debugging on Windows. Refs #8014.
Daniel Atallah <datallah@pidgin.im>
parents:
16393
diff
changeset
|
23 | CFLAGS += -DG_LOG_DOMAIN=\"sametime\" |
|
a054bb9dfba1
Improve the sametime debugging on Windows. Refs #8014.
Daniel Atallah <datallah@pidgin.im>
parents:
16393
diff
changeset
|
24 | |
| 11090 | 25 | ## |
| 26 | ## INCLUDE PATHS | |
| 27 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
28 | INCLUDE_PATHS += -I. \ |
|
12643
4d1099e80097
[gaim-migrate @ 14980]
Daniel Atallah <datallah@pidgin.im>
parents:
12496
diff
changeset
|
29 | -I$(MEANWHILE_TOP)/include/meanwhile \ |
| 11090 | 30 | -I$(GTK_TOP)/include \ |
| 31 | -I$(GTK_TOP)/include/glib-2.0 \ | |
| 32 | -I$(GTK_TOP)/lib/glib-2.0/include \ | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
33 | -I$(PURPLE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
34 | -I$(PURPLE_TOP)/win32 \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
35 | -I$(PIDGIN_TREE_TOP) |
| 11090 | 36 | |
|
16393
d89faf3f5282
Allow include and lib paths to be overridden from local.ent
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
37 | LIB_PATHS += -L$(GTK_TOP)/lib \ |
|
12643
4d1099e80097
[gaim-migrate @ 14980]
Daniel Atallah <datallah@pidgin.im>
parents:
12496
diff
changeset
|
38 | -L$(MEANWHILE_TOP)/lib \ |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
39 | -L$(PURPLE_TOP) |
| 11090 | 40 | |
| 41 | ## | |
| 42 | ## SOURCES, OBJECTS | |
| 43 | ## | |
|
12496
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12268
diff
changeset
|
44 | C_SRC = sametime.c |
| 11090 | 45 | |
| 46 | OBJECTS = $(C_SRC:%.c=%.o) | |
| 47 | ||
| 48 | ## | |
| 49 | ## LIBRARIES | |
| 50 | ## | |
|
12268
55a202e87e18
[gaim-migrate @ 14570]
Daniel Atallah <datallah@pidgin.im>
parents:
11091
diff
changeset
|
51 | LIBS = \ |
|
55a202e87e18
[gaim-migrate @ 14570]
Daniel Atallah <datallah@pidgin.im>
parents:
11091
diff
changeset
|
52 | -lglib-2.0 \ |
|
55a202e87e18
[gaim-migrate @ 14570]
Daniel Atallah <datallah@pidgin.im>
parents:
11091
diff
changeset
|
53 | -lintl \ |
|
55a202e87e18
[gaim-migrate @ 14570]
Daniel Atallah <datallah@pidgin.im>
parents:
11091
diff
changeset
|
54 | -lws2_32 \ |
|
12643
4d1099e80097
[gaim-migrate @ 14980]
Daniel Atallah <datallah@pidgin.im>
parents:
12496
diff
changeset
|
55 | -lmeanwhile \ |
|
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
|
56 | -lpurple |
| 11090 | 57 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
58 | include $(PIDGIN_COMMON_RULES) |
| 11090 | 59 | |
| 60 | ## | |
| 61 | ## TARGET DEFINITIONS | |
| 62 | ## | |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14617
diff
changeset
|
63 | .PHONY: all install clean |
| 11090 | 64 | |
| 65 | all: $(TARGET).dll | |
| 66 | ||
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
67 | install: all $(DLL_INSTALL_DIR) $(PURPLE_INSTALL_DIR) |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
68 | cp $(TARGET).dll $(DLL_INSTALL_DIR) |
| 11090 | 69 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
70 | $(OBJECTS): $(PURPLE_CONFIG_H) |
| 11090 | 71 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
72 | $(TARGET).dll: $(PURPLE_DLL).a $(OBJECTS) |
|
14294
04b7598fdbad
[gaim-migrate @ 16914]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
73 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
| 11090 | 74 | |
| 75 | ## | |
| 76 | ## CLEAN RULES | |
| 77 | ## | |
| 78 | ||
| 79 | clean: | |
|
14617
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
80 | rm -f $(OBJECTS) |
|
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
81 | rm -f $(TARGET).dll |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
82 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
83 | include $(PIDGIN_COMMON_TARGETS) |