Sat, 14 Apr 2007 16:32:42 +0000
Make non-standard mode characters support connection-specific instead of
IRC prpl-wide.
| 3630 | 1 | # |
| 2 | # Makefile.mingw | |
| 3 | # | |
| 4 | # Description: Makefile for win32 (mingw) version of libirc | |
| 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 = libirc | |
|
14617
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14602
diff
changeset
|
11 | TYPE = PLUGIN |
| 3630 | 12 | |
|
14294
04b7598fdbad
[gaim-migrate @ 16914]
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 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
26 | INCLUDE_PATHS += -I. \ |
| 3630 | 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$(PURPLE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
31 | -I$(PURPLE_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 | |
| 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$(PURPLE_TOP) |
| 3630 | 36 | |
| 37 | ## | |
| 38 | ## SOURCES, OBJECTS | |
| 39 | ## | |
|
6342
8036a706de7c
[gaim-migrate @ 6841]
Herman Bloggs <herman@bluedigits.com>
parents:
5932
diff
changeset
|
40 | C_SRC = cmds.c \ |
| 8355 | 41 | dcc_send.c \ |
|
6342
8036a706de7c
[gaim-migrate @ 6841]
Herman Bloggs <herman@bluedigits.com>
parents:
5932
diff
changeset
|
42 | irc.c \ |
|
8036a706de7c
[gaim-migrate @ 6841]
Herman Bloggs <herman@bluedigits.com>
parents:
5932
diff
changeset
|
43 | msgs.c \ |
|
8036a706de7c
[gaim-migrate @ 6841]
Herman Bloggs <herman@bluedigits.com>
parents:
5932
diff
changeset
|
44 | parse.c |
| 3630 | 45 | |
| 46 | OBJECTS = $(C_SRC:%.c=%.o) | |
| 47 | ||
| 48 | ## | |
| 49 | ## LIBRARIES | |
| 50 | ## | |
|
14294
04b7598fdbad
[gaim-migrate @ 16914]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
51 | LIBS = \ |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
52 | -lglib-2.0 \ |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
53 | -lws2_32 \ |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
54 | -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
|
55 | -lpurple |
| 3630 | 56 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
57 | include $(PIDGIN_COMMON_RULES) |
| 3630 | 58 | |
| 59 | ## | |
| 60 | ## TARGET DEFINITIONS | |
| 61 | ## | |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14617
diff
changeset
|
62 | .PHONY: all install clean |
| 3630 | 63 | |
| 64 | all: $(TARGET).dll | |
| 65 | ||
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
66 | install: all $(DLL_INSTALL_DIR) |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
67 | cp $(TARGET).dll $(DLL_INSTALL_DIR) |
| 3630 | 68 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
69 | $(OBJECTS): $(PURPLE_CONFIG_H) |
| 3630 | 70 | |
| 71 | ## | |
| 72 | ## BUILD DLL | |
| 73 | ## | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
74 | $(TARGET).dll: $(PURPLE_DLL).a $(OBJECTS) |
|
14294
04b7598fdbad
[gaim-migrate @ 16914]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
75 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
| 3630 | 76 | |
| 77 | ## | |
| 78 | ## CLEAN RULES | |
| 79 | ## | |
| 80 | ||
| 81 | clean: | |
|
14617
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14602
diff
changeset
|
82 | rm -f $(OBJECTS) |
|
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14602
diff
changeset
|
83 | rm -f $(TARGET).dll |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
84 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
85 | include $(PIDGIN_COMMON_TARGETS) |