Mercurial > pidgin
annotate src/protocols/sametime/Makefile.mingw @ 12301:39fca2edf7da
[gaim-migrate @ 14605]
I only caught this as I was committing, and besides I forgot to mention what
sadrul's patch did. It puts the emblem for the active status on the accounts
in the Accounts menu (he put them in the Remove menu as well but that felt
wrong to me.)
committer: Tailor Script <tailor@pidgin.im>
| author | Etan Reisner <pidgin@unreliablesource.net> |
|---|---|
| date | Sat, 03 Dec 2005 06:50:41 +0000 |
| parents | deb955f7ebb7 |
| children | f9d0ab1474ac |
| rev | line source |
|---|---|
| 11090 | 1 # |
| 2 # Makefile.mingw | |
| 3 # | |
| 4 # Description: Makefile for win32 (mingw) version of libsametime | |
| 5 # | |
| 6 | |
| 7 # | |
| 8 # PATHS | |
| 9 # | |
| 10 | |
| 11 SAMETIME_ROOT := . | |
| 12 GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
| 13 GAIM_TOP := ../../.. | |
| 14 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
| 15 | |
| 16 ## | |
| 17 ## VARIABLE DEFINITIONS | |
| 18 ## | |
| 19 | |
| 20 TARGET = libsametime | |
| 21 | |
| 22 # Compiler Options | |
| 23 | |
| 24 CFLAGS = | |
| 25 | |
| 26 DEFINES = | |
| 27 | |
| 28 # Static or Plugin... | |
| 29 ifeq ($(TYPE),STATIC) | |
| 30 DEFINES += -DSTATIC | |
| 31 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
| 32 else | |
| 33 ifeq ($(TYPE),PLUGIN) | |
| 34 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins | |
| 35 endif | |
| 36 endif | |
| 37 | |
| 38 | |
| 39 ## | |
| 40 ## INCLUDE MAKEFILES | |
| 41 ## | |
| 42 | |
| 43 include $(GAIM_TOP)/src/win32/global.mak | |
| 44 | |
| 45 ## | |
| 46 ## INCLUDE PATHS | |
| 47 ## | |
| 48 | |
| 49 INCLUDE_PATHS += -I$(SAMETIME_ROOT) \ | |
| 50 -I$(SAMETIME_ROOT)/meanwhile \ | |
|
12268
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
51 -I$(SAMETIME_ROOT)/meanwhile/mpi \ |
| 11090 | 52 -I$(GTK_TOP)/include \ |
| 53 -I$(GTK_TOP)/include/glib-2.0 \ | |
| 54 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 55 -I$(GAIM_TOP)/src \ | |
| 56 -I$(GAIM_TOP)/src/win32 \ | |
| 57 -I$(GAIM_TOP) | |
| 58 | |
| 59 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
| 60 -L$(GAIM_TOP)/src | |
| 61 | |
| 62 | |
| 63 ## | |
| 64 ## SOURCES, OBJECTS | |
| 65 ## | |
| 66 | |
|
12268
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
67 C_SRC = meanwhile/mpi/mpi.c \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
68 meanwhile/channel.c \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
69 meanwhile/cipher.c \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
70 meanwhile/common.c \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
71 meanwhile/error.c \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
72 meanwhile/message.c \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
73 meanwhile/mw_debug.c \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
74 meanwhile/mw_util.c \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
75 meanwhile/service.c \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
76 meanwhile/session.c \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
77 meanwhile/srvc_aware.c \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
78 meanwhile/srvc_conf.c \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
79 meanwhile/srvc_ft.c \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
80 meanwhile/srvc_im.c \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
81 meanwhile/srvc_place.c \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
82 meanwhile/srvc_resolve.c \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
83 meanwhile/srvc_store.c \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
84 meanwhile/st_list.c \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
85 sametime.c |
| 11090 | 86 |
| 87 OBJECTS = $(C_SRC:%.c=%.o) | |
| 88 | |
| 89 | |
| 90 ## | |
| 91 ## LIBRARIES | |
| 92 ## | |
| 93 | |
|
12268
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
94 LIBS = \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
95 -lglib-2.0 \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
96 -lgobject-2.0 \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
97 -lintl \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
98 -lws2_32 \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
99 -lgaim |
| 11090 | 100 |
| 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: | |
|
11091
5e29428077fc
[gaim-migrate @ 13112]
Gary Kramlich <grim@reaperworld.com>
parents:
11090
diff
changeset
|
120 cp $(SAMETIME_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) |
| 11090 | 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 | |
| 134 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib | |
| 135 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll | |
| 136 | |
| 137 ## | |
| 138 ## CLEAN RULES | |
| 139 ## | |
| 140 | |
| 141 clean: | |
| 142 rm -rf *.o | |
| 143 rm -rf $(TARGET).dll | |
| 144 rm -rf $(TARGET).lib |
