Sat, 16 Dec 2006 04:59:55 +0000
This is a hand-crafted commit to migrate across subversion revisions
16854:16861, due to some vagaries of the way the original renames were
done. Witness that monotone can do in one revision what svn had to
spread across several.
| 3630 | 1 | # |
| 2 | # Makefile.mingw | |
| 3 | # | |
| 4 | # Description: Makefile for win32 (mingw) version of libjabber | |
| 5 | # | |
| 6 | ||
| 7 | # | |
| 8 | # PATHS | |
| 9 | # | |
| 10 | ||
| 11 | INCLUDE_DIR := . | |
| 12 | GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
|
13810
e63ac6c6ed1d
[gaim-migrate @ 16234]
Daniel Atallah <datallah@pidgin.im>
parents:
8313
diff
changeset
|
13 | LIBXML2_DIR:= ../../../../win32-dev/libxml2 |
| 3630 | 14 | GAIM_TOP := ../../.. |
| 15 | JABBER_ROOT := . | |
| 16 | GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
| 17 | ||
| 18 | ## | |
| 19 | ## VARIABLE DEFINITIONS | |
| 20 | ## | |
| 21 | ||
| 22 | TARGET = libjabber | |
| 23 | ||
| 24 | # Compiler Options | |
| 25 | ||
|
3718
6db53e60577c
[gaim-migrate @ 3851]
Herman Bloggs <herman@bluedigits.com>
parents:
3630
diff
changeset
|
26 | CFLAGS = |
| 3630 | 27 | |
|
3718
6db53e60577c
[gaim-migrate @ 3851]
Herman Bloggs <herman@bluedigits.com>
parents:
3630
diff
changeset
|
28 | DEFINES = |
| 3630 | 29 | |
| 30 | # Static or Plugin... | |
| 31 | ifeq ($(TYPE),STATIC) | |
| 32 | DEFINES += -DSTATIC | |
| 33 | DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
| 34 | else | |
| 35 | ifeq ($(TYPE),PLUGIN) | |
| 36 | DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins | |
| 37 | endif | |
| 38 | endif | |
| 39 | ||
| 40 | ||
| 41 | ## | |
| 42 | ## INCLUDE MAKEFILES | |
| 43 | ## | |
| 44 | ||
|
3718
6db53e60577c
[gaim-migrate @ 3851]
Herman Bloggs <herman@bluedigits.com>
parents:
3630
diff
changeset
|
45 | include $(GAIM_TOP)/src/win32/global.mak |
| 3630 | 46 | |
| 47 | ## | |
| 48 | ## INCLUDE PATHS | |
| 49 | ## | |
| 50 | ||
| 51 | INCLUDE_PATHS += -I$(JABBER_ROOT) \ | |
| 52 | -I$(JABBER_ROOT)/win32 \ | |
| 53 | -I$(GTK_TOP)/include \ | |
| 54 | -I$(GTK_TOP)/include/glib-2.0 \ | |
| 55 | -I$(GTK_TOP)/lib/glib-2.0/include \ | |
|
13810
e63ac6c6ed1d
[gaim-migrate @ 16234]
Daniel Atallah <datallah@pidgin.im>
parents:
8313
diff
changeset
|
56 | -I$(LIBXML2_DIR)/include \ |
| 3630 | 57 | -I$(GAIM_TOP)/src \ |
| 58 | -I$(GAIM_TOP)/src/win32 \ | |
| 59 | -I$(GAIM_TOP) | |
| 60 | ||
| 61 | ||
| 62 | LIB_PATHS = -L$(GTK_TOP)/lib \ | |
|
13810
e63ac6c6ed1d
[gaim-migrate @ 16234]
Daniel Atallah <datallah@pidgin.im>
parents:
8313
diff
changeset
|
63 | -L$(LIBXML2_DIR)/lib \ |
| 3630 | 64 | -L$(GAIM_TOP)/src |
| 65 | ||
| 66 | ||
| 67 | ## | |
| 68 | ## SOURCES, OBJECTS | |
| 69 | ## | |
| 70 | ||
|
7058
c62db98b7a2a
[gaim-migrate @ 7621]
Herman Bloggs <herman@bluedigits.com>
parents:
7017
diff
changeset
|
71 | C_SRC = auth.c \ |
| 7017 | 72 | buddy.c \ |
| 73 | chat.c \ | |
| 8313 | 74 | disco.c \ |
| 7017 | 75 | iq.c \ |
| 76 | jabber.c \ | |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
77 | jutil.c \ |
| 7017 | 78 | message.c \ |
| 7170 | 79 | oob.c \ |
| 7017 | 80 | parser.c \ |
| 81 | presence.c \ | |
| 82 | roster.c \ | |
| 7395 | 83 | si.c \ |
| 7923 | 84 | xdata.c \ |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
85 | win32/posix.uname.c |
| 3630 | 86 | |
| 87 | ||
| 88 | OBJECTS = $(C_SRC:%.c=%.o) | |
| 89 | ||
| 90 | ||
| 91 | ## | |
| 92 | ## LIBRARIES | |
| 93 | ## | |
| 94 | ||
|
13810
e63ac6c6ed1d
[gaim-migrate @ 16234]
Daniel Atallah <datallah@pidgin.im>
parents:
8313
diff
changeset
|
95 | LIBS = \ |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
96 | -lglib-2.0 \ |
|
13810
e63ac6c6ed1d
[gaim-migrate @ 16234]
Daniel Atallah <datallah@pidgin.im>
parents:
8313
diff
changeset
|
97 | -lxml2 \ |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
98 | -lws2_32 \ |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
99 | -lintl \ |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
100 | -lgaim |
| 3630 | 101 | |
| 102 | ## | |
| 103 | ## RULES | |
| 104 | ## | |
| 105 | ||
| 106 | # How to make a C file | |
| 107 | ||
| 108 | %.o: %.c | |
| 109 | $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
| 110 | ||
| 111 | ## | |
| 112 | ## TARGET DEFINITIONS | |
| 113 | ## | |
| 114 | ||
| 115 | .PHONY: all clean | |
| 116 | ||
| 117 | all: $(TARGET).dll | |
| 118 | ||
| 119 | install: | |
| 120 | cp $(JABBER_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
| 121 | ||
| 122 | ||
| 123 | ## | |
| 124 | ## BUILD Dependencies | |
| 125 | ## | |
| 126 | ||
| 127 | $(GAIM_TOP)/src/gaim.lib: | |
| 128 | $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
| 129 | ||
| 130 | ## | |
| 131 | ## BUILD DLL | |
| 132 | ## | |
| 133 | ||
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
134 | $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
135 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll |
| 3630 | 136 | |
| 137 | ## | |
| 138 | ## CLEAN RULES | |
| 139 | ## | |
| 140 | ||
| 141 | clean: | |
| 142 | rm -rf *.o | |
| 143 | rm -rf ./win32/*.o | |
| 144 | rm -rf $(TARGET).dll | |
| 145 | rm -rf $(TARGET).lib |