Mercurial > pidgin
annotate src/protocols/yahoo/Makefile.mingw @ 13330:e9cf00a30b49
[gaim-migrate @ 15700]
make sure disconnect messages get send before we disconnect
committer: Tailor Script <tailor@pidgin.im>
| author | Nathan Walp <nwalp@pidgin.im> |
|---|---|
| date | Sun, 26 Feb 2006 20:16:56 +0000 |
| parents | 6066f8e2782d |
| children |
| rev | line source |
|---|---|
| 3630 | 1 # |
| 2 # Makefile.mingw | |
| 3 # | |
| 4 # Description: Makefile for win32 (mingw) version of libyahoo | |
| 5 # | |
| 6 | |
| 7 # | |
| 8 # PATHS | |
| 9 # | |
| 10 | |
| 11 INCLUDE_DIR := . | |
| 12 GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
| 13 GAIM_TOP := ../../.. | |
| 14 YAHOO_ROOT := . | |
| 15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
| 16 | |
| 17 ## | |
| 18 ## VARIABLE DEFINITIONS | |
| 19 ## | |
| 20 | |
| 21 TARGET = libyahoo | |
| 22 | |
| 23 # Compiler Options | |
| 24 | |
|
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
25 CFLAGS = |
| 3630 | 26 |
|
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
27 DEFINES = |
| 3630 | 28 |
| 29 # Static or Plugin... | |
| 30 ifeq ($(TYPE),STATIC) | |
| 31 DEFINES += -DSTATIC | |
| 32 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
| 33 else | |
| 34 ifeq ($(TYPE),PLUGIN) | |
| 35 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins | |
| 36 endif | |
| 37 endif | |
| 38 | |
| 39 | |
| 40 ## | |
| 41 ## INCLUDE MAKEFILES | |
| 42 ## | |
| 43 | |
|
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
44 include $(GAIM_TOP)/src/win32/global.mak |
| 3630 | 45 |
| 46 ## | |
| 47 ## INCLUDE PATHS | |
| 48 ## | |
| 49 | |
| 50 INCLUDE_PATHS += -I$(YAHOO_ROOT) \ | |
| 51 -I$(GTK_TOP)/include \ | |
| 52 -I$(GTK_TOP)/include/glib-2.0 \ | |
| 53 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 54 -I$(GAIM_TOP)/src \ | |
| 55 -I$(GAIM_TOP)/src/win32 \ | |
| 56 -I$(GAIM_TOP) | |
| 57 | |
| 58 | |
| 59 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
| 60 -L$(GAIM_TOP)/src | |
| 61 | |
| 62 | |
| 63 ## | |
| 64 ## SOURCES, OBJECTS | |
| 65 ## | |
| 66 | |
|
12416
4aafa0c63898
[gaim-migrate @ 14723]
Richard Laager <rlaager@wiktel.com>
parents:
11476
diff
changeset
|
67 C_SRC = util.c \ |
|
12425
6066f8e2782d
[gaim-migrate @ 14732]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12416
diff
changeset
|
68 yahoo.c \ |
|
12416
4aafa0c63898
[gaim-migrate @ 14723]
Richard Laager <rlaager@wiktel.com>
parents:
11476
diff
changeset
|
69 yahoochat.c \ |
| 8349 | 70 yahoo_auth.c \ |
|
12416
4aafa0c63898
[gaim-migrate @ 14723]
Richard Laager <rlaager@wiktel.com>
parents:
11476
diff
changeset
|
71 yahoo_crypt.c \ |
|
11476
5d3f8d9e8f92
[gaim-migrate @ 13718]
Gary Kramlich <grim@reaperworld.com>
parents:
10393
diff
changeset
|
72 yahoo_doodle.c \ |
| 7659 | 73 yahoo_filexfer.c \ |
|
12416
4aafa0c63898
[gaim-migrate @ 14723]
Richard Laager <rlaager@wiktel.com>
parents:
11476
diff
changeset
|
74 yahoo_friend.c \ |
| 10393 | 75 yahoo_packet.c \ |
| 9306 | 76 yahoo_picture.c \ |
|
12416
4aafa0c63898
[gaim-migrate @ 14723]
Richard Laager <rlaager@wiktel.com>
parents:
11476
diff
changeset
|
77 yahoo_profile.c \ |
|
12425
6066f8e2782d
[gaim-migrate @ 14732]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12416
diff
changeset
|
78 ycht.c |
| 3630 | 79 |
| 80 | |
| 81 OBJECTS = $(C_SRC:%.c=%.o) | |
| 82 | |
| 83 | |
| 84 ## | |
| 85 ## LIBRARIES | |
| 86 ## | |
| 87 | |
|
12425
6066f8e2782d
[gaim-migrate @ 14732]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12416
diff
changeset
|
88 LIBS = \ |
|
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
89 -lglib-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
90 -lgobject-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
91 -lws2_32 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
92 -lintl \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
93 -lgaim |
| 3630 | 94 |
| 95 | |
| 96 ## | |
| 97 ## RULES | |
| 98 ## | |
| 99 | |
| 100 # How to make a C file | |
| 101 | |
| 102 %.o: %.c | |
| 103 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
| 104 | |
| 105 ## | |
| 106 ## TARGET DEFINITIONS | |
| 107 ## | |
| 108 | |
| 109 .PHONY: all clean | |
| 110 | |
| 111 all: $(TARGET).dll | |
| 112 | |
| 113 install: | |
| 114 cp $(YAHOO_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
| 115 | |
| 116 | |
| 117 ## | |
| 118 ## BUILD Dependencies | |
| 119 ## | |
| 120 | |
| 121 $(GAIM_TOP)/src/gaim.lib: | |
| 122 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
| 123 | |
| 124 ## | |
| 125 ## BUILD DLL | |
| 126 ## | |
| 127 | |
|
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
128 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
129 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll |
| 3630 | 130 |
| 131 | |
| 132 ## | |
| 133 ## CLEAN RULES | |
| 134 ## | |
| 135 | |
| 136 clean: | |
| 137 rm -rf *.o | |
| 138 rm -rf $(TARGET).dll | |
| 139 rm -rf $(TARGET).lib |
