Mercurial > pidgin
annotate src/protocols/gg/Makefile.mingw @ 13918:61ba85cf05a6
[gaim-migrate @ 16421]
Paco-Paco thinks it would be good to make libgnt configure look for ncursesw.
Thanks to rekkanoryo and grim, we can do that.
committer: Tailor Script <tailor@pidgin.im>
| author | Sadrul Habib Chowdhury <imadil@gmail.com> |
|---|---|
| date | Tue, 04 Jul 2006 18:49:13 +0000 |
| parents | fa7313d125ac |
| children |
| rev | line source |
|---|---|
| 3630 | 1 # |
| 2 # Makefile.mingw | |
| 3 # | |
| 4 # Description: Makefile for win32 (mingw) version of libgg | |
| 5 # | |
| 6 | |
| 7 # | |
| 8 # PATHS | |
| 9 # | |
| 10 | |
| 11 INCLUDE_DIR := . | |
| 12 GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
| 13 GAIM_TOP := ../../.. | |
| 14 GG_ROOT := . | |
| 15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
| 16 | |
| 17 ## | |
| 18 ## VARIABLE DEFINITIONS | |
| 19 ## | |
| 20 | |
| 21 TARGET = libgg | |
| 22 | |
| 23 # Compiler Options | |
| 24 | |
|
11546
3c536224f0d0
[gaim-migrate @ 13801]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11360
diff
changeset
|
25 CFLAGS = -include win32dep.h |
| 3630 | 26 |
|
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
27 DEFINES = |
| 3630 | 28 |
|
11546
3c536224f0d0
[gaim-migrate @ 13801]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11360
diff
changeset
|
29 # Static or Plugin... |
| 3630 | 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$(GG_ROOT) \ | |
| 11360 | 51 -I$(GG_ROOT)/lib \ |
| 3630 | 52 -I$(GTK_TOP)/include \ |
| 53 -I$(GTK_TOP)/include/gtk-2.0 \ | |
| 54 -I$(GTK_TOP)/include/glib-2.0 \ | |
| 55 -I$(GTK_TOP)/include/pango-1.0 \ | |
| 56 -I$(GTK_TOP)/include/atk-1.0 \ | |
| 57 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 58 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
| 59 -I$(GAIM_TOP)/src \ | |
| 60 -I$(GAIM_TOP)/src/win32 \ | |
| 61 -I$(GAIM_TOP) | |
| 62 | |
| 63 | |
| 64 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
| 65 -L$(GAIM_TOP)/src \ | |
| 66 | |
| 67 | |
| 68 ## | |
| 69 ## SOURCES, OBJECTS | |
| 70 ## | |
| 71 | |
| 11360 | 72 C_SRC = \ |
| 73 lib/common.c \ | |
| 74 lib/events.c \ | |
| 75 lib/http.c \ | |
| 76 lib/libgadu.c \ | |
| 77 lib/obsolete.c \ | |
| 78 lib/pubdir.c \ | |
| 79 lib/pubdir50.c \ | |
|
11546
3c536224f0d0
[gaim-migrate @ 13801]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11360
diff
changeset
|
80 buddylist.c \ |
|
3c536224f0d0
[gaim-migrate @ 13801]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11360
diff
changeset
|
81 confer.c \ |
|
3c536224f0d0
[gaim-migrate @ 13801]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11360
diff
changeset
|
82 gg.c \ |
|
3c536224f0d0
[gaim-migrate @ 13801]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11360
diff
changeset
|
83 search.c \ |
|
13626
fa7313d125ac
[gaim-migrate @ 16013]
Evan Schoenberg <evan.s@dreskin.net>
parents:
11546
diff
changeset
|
84 gg-utils.c |
| 3630 | 85 |
| 86 OBJECTS = $(C_SRC:%.c=%.o) | |
| 87 | |
| 88 | |
| 89 ## | |
| 90 ## LIBRARIES | |
| 91 ## | |
| 92 | |
|
11546
3c536224f0d0
[gaim-migrate @ 13801]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11360
diff
changeset
|
93 LIBS = \ |
|
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4058
diff
changeset
|
94 -lglib-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4058
diff
changeset
|
95 -lgmodule-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4058
diff
changeset
|
96 -lgobject-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4058
diff
changeset
|
97 -lintl \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4058
diff
changeset
|
98 -lgaim \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4058
diff
changeset
|
99 -lws2_32 |
| 3630 | 100 |
| 101 | |
| 102 ## | |
| 103 ## RULES | |
| 104 ## | |
| 105 | |
| 106 # How to make a C file | |
| 107 | |
| 108 %.o: %.c | |
|
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
109 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< |
| 3630 | 110 |
| 111 ## | |
| 112 ## TARGET DEFINITIONS | |
| 113 ## | |
| 114 | |
| 115 .PHONY: all clean | |
| 116 | |
| 117 all: $(TARGET).dll | |
| 118 | |
| 119 install: | |
| 120 cp $(GG_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
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4058
diff
changeset
|
134 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4058
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 | |
|
11546
3c536224f0d0
[gaim-migrate @ 13801]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11360
diff
changeset
|
143 rm -rf $(GG_ROOT)/lib/*.o |
| 3630 | 144 rm -rf $(TARGET).dll |
| 145 rm -rf $(TARGET).lib |
