Mercurial > pidgin
annotate src/protocols/sametime/Makefile.mingw @ 11851:3bfb2cffcef2
[gaim-migrate @ 14142]
inspired by Richard Stellingwerff's patch 1339606, this workaround for
annoying visible borders on tab close buttons is no longer required with
at least gtk 2.6 (if someone can confirm if it was fixed in 2.4 we could
remove it there too)
committer: Tailor Script <tailor@pidgin.im>
| author | Stu Tomlinson <stu@nosnilmot.com> |
|---|---|
| date | Thu, 27 Oct 2005 15:15:52 +0000 |
| parents | 5e29428077fc |
| children | deb955f7ebb7 |
| 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 \ | |
| 51 -I$(GTK_TOP)/include \ | |
| 52 -I$(GTK_TOP)/include/gtk-2.0 \ | |
| 53 -I$(GTK_TOP)/include/glib-2.0 \ | |
| 54 -I$(GTK_TOP)/include/pango-1.0 \ | |
| 55 -I$(GTK_TOP)/include/atk-1.0 \ | |
| 56 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 57 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
| 58 -I$(GAIM_TOP)/src \ | |
| 59 -I$(GAIM_TOP)/src/win32 \ | |
| 60 -I$(GAIM_TOP) | |
| 61 | |
| 62 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
| 63 -L$(GAIM_TOP)/src | |
| 64 | |
| 65 | |
| 66 ## | |
| 67 ## SOURCES, OBJECTS | |
| 68 ## | |
| 69 | |
| 70 C_SRC = meanwhile/channel.c \ | |
| 71 meanwhile/cipher.c \ | |
| 72 meanwhile/common.c \ | |
| 73 meanwhile/error.c \ | |
| 74 meanwhile/message.c \ | |
| 75 meanwhile/mw_debug.c \ | |
| 76 meanwhile/mw_util.c \ | |
| 77 meanwhile/service.c \ | |
| 78 meanwhile/session.c \ | |
| 79 meanwhile/srvc_aware.c \ | |
| 80 meanwhile/srvc_conf.c \ | |
| 81 meanwhile/srvc_ft.c \ | |
| 82 meanwhile/srvc_im.c \ | |
| 83 meanwhile/srvc_resolve.c \ | |
| 84 meanwhile/srvc_store.c \ | |
| 85 meanwhile/st_list.c \ | |
| 86 sametime.c | |
| 87 | |
| 88 OBJECTS = $(C_SRC:%.c=%.o) | |
| 89 | |
| 90 | |
| 91 ## | |
| 92 ## LIBRARIES | |
| 93 ## | |
| 94 | |
| 95 LIBS = -lgtk-win32-2.0 \ | |
| 96 -lglib-2.0 \ | |
| 97 -lgdk-win32-2.0 \ | |
| 98 -lgmodule-2.0 \ | |
| 99 -lgobject-2.0 \ | |
| 100 -lintl \ | |
| 101 -lws2_32 \ | |
| 102 -lgaim | |
| 103 | |
| 104 | |
| 105 ## | |
| 106 ## RULES | |
| 107 ## | |
| 108 | |
| 109 # How to make a C file | |
| 110 | |
| 111 %.o: %.c | |
| 112 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
| 113 | |
| 114 ## | |
| 115 ## TARGET DEFINITIONS | |
| 116 ## | |
| 117 | |
| 118 .PHONY: all clean | |
| 119 | |
| 120 all: $(TARGET).dll | |
| 121 | |
| 122 install: | |
|
11091
5e29428077fc
[gaim-migrate @ 13112]
Gary Kramlich <grim@reaperworld.com>
parents:
11090
diff
changeset
|
123 cp $(SAMETIME_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) |
| 11090 | 124 |
| 125 | |
| 126 ## | |
| 127 ## BUILD Dependencies | |
| 128 ## | |
| 129 | |
| 130 $(GAIM_TOP)/src/gaim.lib: | |
| 131 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
| 132 | |
| 133 ## | |
| 134 ## BUILD DLL | |
| 135 ## | |
| 136 | |
| 137 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib | |
| 138 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll | |
| 139 | |
| 140 ## | |
| 141 ## CLEAN RULES | |
| 142 ## | |
| 143 | |
| 144 clean: | |
| 145 rm -rf *.o | |
| 146 rm -rf $(TARGET).dll | |
| 147 rm -rf $(TARGET).lib |
