Mercurial > pidgin
annotate src/protocols/silc/Makefile.mingw @ 10022:00a7ccf8ccd7
[gaim-migrate @ 10954]
Don't show "Not Specified" for ICQ info when the gender isn't specified.
oannu@sf pointed out that this is dumb.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Tue, 14 Sep 2004 03:51:36 +0000 |
| parents | 24f84b7ffe8e |
| children | 5e1ca11db043 |
| rev | line source |
|---|---|
| 9359 | 1 # |
| 2 # Makefile.mingw | |
| 3 # | |
| 4 # Description: Makefile for win32 (mingw) version of libsilcgaim | |
| 5 # | |
| 6 | |
| 7 # | |
| 8 # PATHS | |
| 9 # | |
| 10 | |
| 11 INCLUDE_DIR := . | |
| 12 GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
| 13 GAIM_TOP := ../../.. | |
| 14 SILC_ROOT := . | |
| 15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
|
9570
24f84b7ffe8e
[gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9359
diff
changeset
|
16 SILC_TOP := ../../../../win32-dev/silc-toolkit-0.9.12 |
| 9359 | 17 |
| 18 ## | |
| 19 ## VARIABLE DEFINITIONS | |
| 20 ## | |
| 21 | |
| 22 TARGET = libsilcgaim | |
| 23 | |
|
9570
24f84b7ffe8e
[gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9359
diff
changeset
|
24 NEEDED_DLLS = $(SILC_TOP)/win32/libsilc/Release/libsilc.dll \ |
|
24f84b7ffe8e
[gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9359
diff
changeset
|
25 $(SILC_TOP)/win32/libsilcclient/Release/libsilcclient.dll |
| 9359 | 26 |
| 27 # Compiler Options | |
| 28 | |
| 29 CFLAGS = | |
| 30 | |
| 31 DEFINES = | |
| 32 | |
| 33 # Static or Plugin... | |
| 34 ifeq ($(TYPE),STATIC) | |
| 35 DEFINES += -DSTATIC | |
| 36 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
| 37 else | |
| 38 ifeq ($(TYPE),PLUGIN) | |
| 39 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins | |
| 40 endif | |
| 41 endif | |
| 42 | |
| 43 | |
| 44 ## | |
| 45 ## INCLUDE MAKEFILES | |
| 46 ## | |
| 47 | |
| 48 include $(GAIM_TOP)/src/win32/global.mak | |
| 49 | |
| 50 ## | |
| 51 ## INCLUDE PATHS | |
| 52 ## | |
| 53 | |
| 54 INCLUDE_PATHS += -I$(SILC_ROOT) \ | |
| 55 -I$(GTK_TOP)/include \ | |
| 56 -I$(GTK_TOP)/include/gtk-2.0 \ | |
| 57 -I$(GTK_TOP)/include/glib-2.0 \ | |
| 58 -I$(GTK_TOP)/include/pango-1.0 \ | |
| 59 -I$(GTK_TOP)/include/atk-1.0 \ | |
| 60 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 61 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
| 62 -I$(GAIM_TOP)/src \ | |
| 63 -I$(GAIM_TOP)/src/win32 \ | |
| 64 -I$(GAIM_TOP) \ | |
|
9570
24f84b7ffe8e
[gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9359
diff
changeset
|
65 -I$(SILC_TOP)/win32 \ |
|
24f84b7ffe8e
[gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9359
diff
changeset
|
66 -I$(SILC_TOP)/win32/include |
| 9359 | 67 |
| 68 | |
|
9570
24f84b7ffe8e
[gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9359
diff
changeset
|
69 LIB_PATHS = -L$(GTK_TOP)/lib \ |
| 9359 | 70 -L$(GAIM_TOP)/src \ |
|
9570
24f84b7ffe8e
[gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9359
diff
changeset
|
71 -L$(SILC_TOP)/win32/libsilc/Release \ |
|
24f84b7ffe8e
[gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9359
diff
changeset
|
72 -L$(SILC_TOP)/win32/libsilcclient/Release \ |
| 9359 | 73 |
| 74 | |
| 75 ## | |
| 76 ## SOURCES, OBJECTS | |
| 77 ## | |
| 78 | |
|
9570
24f84b7ffe8e
[gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9359
diff
changeset
|
79 C_SRC = silc.c \ |
| 9359 | 80 buddy.c \ |
| 81 chat.c \ | |
| 82 ft.c \ | |
| 83 ops.c \ | |
| 84 pk.c \ | |
| 85 util.c | |
| 86 | |
| 87 | |
| 88 OBJECTS = $(C_SRC:%.c=%.o) | |
| 89 | |
| 90 | |
| 91 ## | |
| 92 ## LIBRARIES | |
| 93 ## | |
| 94 | |
|
9570
24f84b7ffe8e
[gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9359
diff
changeset
|
95 LIBS = -lgtk-win32-2.0 \ |
| 9359 | 96 -lglib-2.0 \ |
| 97 -lgdk-win32-2.0 \ | |
| 98 -lgmodule-2.0 \ | |
| 99 -lgobject-2.0 \ | |
| 100 -lws2_32 \ | |
| 101 -lintl \ | |
| 102 -lgaim \ | |
|
9570
24f84b7ffe8e
[gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9359
diff
changeset
|
103 -llibsilc \ |
|
24f84b7ffe8e
[gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9359
diff
changeset
|
104 -llibsilcclient \ |
| 9359 | 105 -lwsock32 |
| 106 | |
| 107 | |
| 108 ## | |
| 109 ## RULES | |
| 110 ## | |
| 111 | |
| 112 # How to make a C file | |
| 113 | |
| 114 %.o: %.c | |
| 115 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
| 116 | |
| 117 ## | |
| 118 ## TARGET DEFINITIONS | |
| 119 ## | |
| 120 | |
| 121 .PHONY: all clean | |
| 122 | |
| 123 all: $(TARGET).dll | |
| 124 | |
| 125 install: | |
| 126 cp $(SILC_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
| 127 cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR) | |
| 128 | |
| 129 | |
| 130 ## | |
| 131 ## BUILD Dependencies | |
| 132 ## | |
| 133 | |
| 134 $(GAIM_TOP)/src/gaim.lib: | |
| 135 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
| 136 | |
| 137 ## | |
| 138 ## BUILD DLL | |
| 139 ## | |
| 140 | |
| 141 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib | |
|
9570
24f84b7ffe8e
[gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9359
diff
changeset
|
142 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--image-base,0x64000000 -o $(TARGET).dll |
| 9359 | 143 |
| 144 ## | |
| 145 ## CLEAN RULES | |
| 146 ## | |
| 147 | |
| 148 clean: | |
| 149 rm -rf *.o | |
| 150 rm -rf $(TARGET).dll | |
| 151 rm -rf $(TARGET).lib |
