Mercurial > pidgin
annotate src/protocols/oscar/Makefile.mingw @ 11173:91ca67258564
[gaim-migrate @ 13278]
The DBus plugin example I forgot to upload last time.
committer: Tailor Script <tailor@pidgin.im>
| author | Piotr Zielinski <zielaj> |
|---|---|
| date | Sat, 30 Jul 2005 16:34:18 +0000 |
| parents | 212946f774c0 |
| children | 677a3862260f |
| rev | line source |
|---|---|
| 3630 | 1 # |
| 2 # Makefile.mingw | |
| 3 # | |
| 4 # Description: Makefile for win32 (mingw) version of liboscar | |
| 5 # | |
| 6 | |
| 7 # | |
| 8 # PATHS | |
| 9 # | |
| 10 | |
| 11 OSCAR_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 = liboscar | |
| 21 | |
| 22 # Compiler Options | |
| 23 | |
|
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3695
diff
changeset
|
24 CFLAGS = |
| 3630 | 25 |
|
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3695
diff
changeset
|
26 DEFINES = |
| 3630 | 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 | |
|
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3695
diff
changeset
|
43 include $(GAIM_TOP)/src/win32/global.mak |
| 3630 | 44 |
| 45 ## | |
| 46 ## INCLUDE PATHS | |
| 47 ## | |
| 48 | |
| 49 INCLUDE_PATHS += -I$(OSCAR_ROOT) \ | |
| 50 -I$(GTK_TOP)/include \ | |
| 51 -I$(GTK_TOP)/include/gtk-2.0 \ | |
| 52 -I$(GTK_TOP)/include/glib-2.0 \ | |
| 53 -I$(GTK_TOP)/include/pango-1.0 \ | |
| 54 -I$(GTK_TOP)/include/atk-1.0 \ | |
| 55 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 56 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
| 57 -I$(GAIM_TOP)/src \ | |
| 58 -I$(GAIM_TOP)/src/win32 \ | |
| 59 -I$(GAIM_TOP) | |
| 60 | |
| 61 | |
| 62 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
| 63 -L$(GAIM_TOP)/src | |
| 64 | |
| 65 | |
| 66 ## | |
| 67 ## SOURCES, OBJECTS | |
| 68 ## | |
| 69 | |
| 70 C_SRC = admin.c \ | |
| 71 adverts.c \ | |
| 72 auth.c \ | |
| 6879 | 73 bart.c \ |
| 3630 | 74 bos.c \ |
| 3952 | 75 bstream.c \ |
| 3630 | 76 buddylist.c \ |
| 77 chat.c \ | |
| 78 chatnav.c \ | |
| 79 conn.c \ | |
| 3695 | 80 email.c \ |
| 3630 | 81 ft.c \ |
| 82 icq.c \ | |
| 83 im.c \ | |
| 84 invite.c \ | |
| 7011 | 85 locate.c \ |
| 3630 | 86 misc.c \ |
|
10686
212946f774c0
[gaim-migrate @ 12233]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
7011
diff
changeset
|
87 md5.c \ |
| 3630 | 88 msgcookie.c \ |
| 6879 | 89 odir.c \ |
| 3630 | 90 popups.c \ |
| 91 rxhandlers.c \ | |
| 92 rxqueue.c \ | |
| 93 search.c \ | |
| 94 service.c \ | |
| 95 snac.c \ | |
| 96 ssi.c \ | |
| 97 stats.c \ | |
| 98 tlv.c \ | |
| 99 translate.c \ | |
| 100 txqueue.c \ | |
| 101 util.c \ | |
| 102 oscar.c | |
| 103 | |
| 104 | |
| 105 OBJECTS = $(C_SRC:%.c=%.o) | |
| 106 | |
| 107 | |
| 108 ## | |
| 109 ## LIBRARIES | |
| 110 ## | |
| 111 | |
|
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
112 LIBS = -lgtk-win32-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
113 -lglib-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
114 -lgdk-win32-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
115 -lgmodule-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
116 -lgobject-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
117 -lintl \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
118 -lws2_32 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
119 -lgaim |
| 3630 | 120 |
| 121 | |
| 122 ## | |
| 123 ## RULES | |
| 124 ## | |
| 125 | |
| 126 # How to make a C file | |
| 127 | |
| 128 %.o: %.c | |
| 129 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
| 130 | |
| 131 ## | |
| 132 ## TARGET DEFINITIONS | |
| 133 ## | |
| 134 | |
| 135 .PHONY: all clean | |
| 136 | |
| 137 all: $(TARGET).dll | |
| 138 | |
| 139 install: | |
| 140 cp $(OSCAR_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
| 141 | |
| 142 | |
| 143 ## | |
| 144 ## BUILD Dependencies | |
| 145 ## | |
| 146 | |
| 147 $(GAIM_TOP)/src/gaim.lib: | |
| 148 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
| 149 | |
| 150 ## | |
| 151 ## BUILD DLL | |
| 152 ## | |
| 153 | |
|
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
154 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
155 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll |
| 3630 | 156 |
| 157 ## | |
| 158 ## CLEAN RULES | |
| 159 ## | |
| 160 | |
| 161 clean: | |
| 162 rm -rf *.o | |
| 163 rm -rf $(TARGET).dll | |
| 164 rm -rf $(TARGET).lib |
