Fri, 28 Sep 2007 14:45:41 +0000
applied changes from e3d8fe145881335e4c42f96480b7c2681ff85fe9
through 02b9fa9cd591c94c082a8ff02ea27fe33b278a0a
| 3630 | 1 | # |
| 2 | # Makefile.mingw | |
| 3 | # | |
| 4 | # Description: Makefile for win32 (mingw) version of libtoc | |
| 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 = libtoc | |
|
14617
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
11 | TYPE = PLUGIN |
| 3630 | 12 | |
|
14355
78b077390c3d
[gaim-migrate @ 16983]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
13 | # Static or Plugin... |
| 3630 | 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) |
| 3630 | 17 | else |
| 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) |
| 3630 | 20 | endif |
| 21 | endif | |
| 22 | ||
| 23 | ## | |
| 24 | ## INCLUDE PATHS | |
| 25 | ## | |
| 26 | INCLUDE_PATHS += -I$(TOC_ROOT) \ | |
| 27 | -I$(GTK_TOP)/include \ | |
| 28 | -I$(GTK_TOP)/include/glib-2.0 \ | |
| 29 | -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
|
30 | -I$(LIBPIDGIN_TREE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
31 | -I$(LIBPIDGIN_TREE_TOP)/win32 \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
32 | -I$(PIDGIN_TREE_TOP) |
| 3630 | 33 | |
|
16393
d89faf3f5282
Allow include and lib paths to be overridden from local.ent
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
34 | 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
|
35 | -L$(LIBPIDGIN_TREE_TOP) |
| 3630 | 36 | |
| 37 | ## | |
| 38 | ## SOURCES, OBJECTS | |
| 39 | ## | |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
40 | C_SRC = toc.c |
| 3630 | 41 | |
| 42 | OBJECTS = $(C_SRC:%.c=%.o) | |
| 43 | ||
| 44 | ## | |
| 45 | ## LIBRARIES | |
| 46 | ## | |
|
14355
78b077390c3d
[gaim-migrate @ 16983]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
47 | LIBS = \ |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
48 | -lglib-2.0 \ |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
49 | -lws2_32 \ |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
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 |
| 3630 | 52 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
53 | include $(PIDGIN_COMMON_RULES) |
| 3630 | 54 | |
| 55 | ## | |
| 56 | ## TARGET DEFINITIONS | |
| 57 | ## | |
| 58 | ||
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14617
diff
changeset
|
59 | .PHONY: all install clean |
| 3630 | 60 | |
| 61 | all: $(TARGET).dll | |
| 62 | ||
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14355
diff
changeset
|
63 | install: all $(DLL_INSTALL_DIR) |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14355
diff
changeset
|
64 | cp $(TARGET).dll $(DLL_INSTALL_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): $(PURPLE_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 $(OBJECTS) |
|
14355
78b077390c3d
[gaim-migrate @ 16983]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
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:
14355
diff
changeset
|
74 | clean: |
|
14617
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
75 | rm -f $(OBJECTS) |
|
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
76 | rm -f $(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) |