Mercurial > pidgin
annotate src/protocols/oscar/Makefile.mingw @ 13561:104fbbfc91fb
[gaim-migrate @ 15940]
beta3 for the RPM spec file too
committer: Tailor Script <tailor@pidgin.im>
| author | Stu Tomlinson <stu@nosnilmot.com> |
|---|---|
| date | Sat, 25 Mar 2006 15:17:15 +0000 |
| parents | e9802db22b06 |
| children | 6519aeb66b31 |
| 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 | |
| 11404 | 31 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) |
| 32 else | |
| 3630 | 33 ifeq ($(TYPE),PLUGIN) |
| 11404 | 34 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins |
| 3630 | 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 | |
| 13234 | 70 C_SRC = \ |
| 71 bstream.c \ | |
| 72 conn.c \ | |
| 73 family_admin.c \ | |
| 74 family_advert.c \ | |
| 75 family_alert.c \ | |
| 76 family_auth.c \ | |
| 77 family_bart.c \ | |
| 78 family_bos.c \ | |
| 13238 | 79 family_buddy.c \ |
| 13234 | 80 family_chat.c \ |
| 81 family_chatnav.c \ | |
| 82 family_icq.c \ | |
| 83 family_icbm.c \ | |
| 84 family_invite.c \ | |
| 85 family_locate.c \ | |
| 86 family_odir.c \ | |
| 87 family_popup.c \ | |
| 88 family_oservice.c \ | |
| 89 family_feedbag.c \ | |
| 90 family_stats.c \ | |
| 91 family_translate.c \ | |
| 92 family_userlookup.c \ | |
| 93 misc.c \ | |
| 94 msgcookie.c \ | |
| 95 oscar.c \ | |
| 96 peer.c \ | |
| 97 rxhandlers.c \ | |
| 98 rxqueue.c \ | |
| 13254 | 99 session.c \ |
| 13234 | 100 snac.c \ |
| 101 tlv.c \ | |
| 102 txqueue.c \ | |
| 103 util.c | |
| 3630 | 104 |
| 105 | |
| 106 OBJECTS = $(C_SRC:%.c=%.o) | |
| 107 | |
| 108 | |
| 109 ## | |
| 110 ## LIBRARIES | |
| 111 ## | |
| 112 | |
|
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
113 LIBS = -lgtk-win32-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
114 -lglib-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
115 -lgdk-win32-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
116 -lgmodule-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
117 -lgobject-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
118 -lintl \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
119 -lws2_32 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
120 -lgaim |
| 3630 | 121 |
| 122 | |
| 123 ## | |
| 124 ## RULES | |
| 125 ## | |
| 126 | |
| 127 # How to make a C file | |
| 128 | |
| 129 %.o: %.c | |
| 130 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
| 131 | |
| 132 ## | |
| 133 ## TARGET DEFINITIONS | |
| 134 ## | |
| 135 | |
| 136 .PHONY: all clean | |
| 137 | |
| 138 all: $(TARGET).dll | |
| 139 | |
| 140 install: | |
| 141 cp $(OSCAR_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
| 142 | |
| 143 | |
| 144 ## | |
| 145 ## BUILD Dependencies | |
| 146 ## | |
| 147 | |
| 148 $(GAIM_TOP)/src/gaim.lib: | |
| 149 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
| 150 | |
| 151 ## | |
| 152 ## BUILD DLL | |
| 153 ## | |
| 154 | |
|
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
155 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
156 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll |
| 3630 | 157 |
| 158 ## | |
| 159 ## CLEAN RULES | |
| 160 ## | |
| 161 | |
| 162 clean: | |
| 163 rm -rf *.o | |
| 164 rm -rf $(TARGET).dll | |
| 165 rm -rf $(TARGET).lib |
