Mercurial > pidgin
annotate libgaim/protocols/msn/Makefile.mingw @ 14253:dc0afefc19d8
[gaim-migrate @ 16935]
If gstreamer fails, show an error message and continue to load.
committer: Tailor Script <tailor@pidgin.im>
| author | Sadrul Habib Chowdhury <imadil@gmail.com> |
|---|---|
| date | Mon, 21 Aug 2006 03:04:12 +0000 |
| parents | a7590884324d |
| children | 8793fc8f7064 |
| rev | line source |
|---|---|
| 14192 | 1 # |
| 2 # Makefile.mingw | |
| 3 # | |
| 4 # Description: Makefile for win32 (mingw) version of libmsn | |
| 5 # | |
| 6 | |
| 7 # | |
| 8 # PATHS | |
| 9 # | |
| 10 | |
| 11 GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
| 12 GAIM_TOP := ../../.. | |
|
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
13 LIBGAIM_TOP := ../.. |
| 14192 | 14 MSN_ROOT := . |
| 15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
| 16 | |
| 17 ## | |
| 18 ## VARIABLE DEFINITIONS | |
| 19 ## | |
| 20 | |
| 21 TARGET = libmsn | |
| 22 | |
| 23 # Compiler Options | |
| 24 | |
| 25 CFLAGS = | |
| 26 | |
| 27 DEFINES = | |
| 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 | |
|
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
44 include $(LIBGAIM_TOP)/win32/global.mak |
| 14192 | 45 |
| 46 ## | |
| 47 ## INCLUDE PATHS | |
| 48 ## | |
| 49 | |
| 50 INCLUDE_PATHS += -I$(MSN_ROOT) \ | |
| 51 -I$(GTK_TOP)/include \ | |
| 52 -I$(GTK_TOP)/include/glib-2.0 \ | |
| 53 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
|
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
54 -I$(LIBGAIM_TOP) \ |
|
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
55 -I$(LIBGAIM_TOP)/win32 \ |
| 14192 | 56 -I$(GAIM_TOP) |
| 57 | |
| 58 | |
| 59 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
|
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
60 -L$(LIBGAIM_TOP) |
| 14192 | 61 |
| 62 | |
| 63 ## | |
| 64 ## SOURCES, OBJECTS | |
| 65 ## | |
| 66 | |
| 67 C_SRC = cmdproc.c \ | |
| 68 command.c \ | |
| 69 dialog.c \ | |
| 70 directconn.c \ | |
| 71 error.c \ | |
| 72 group.c \ | |
| 73 history.c \ | |
| 74 httpconn.c \ | |
| 75 msg.c \ | |
| 76 msn.c \ | |
| 77 nexus.c \ | |
| 78 notification.c \ | |
| 79 object.c \ | |
| 80 page.c \ | |
| 81 servconn.c \ | |
| 82 session.c \ | |
| 83 slp.c \ | |
| 84 slpcall.c \ | |
| 85 slplink.c \ | |
| 86 slpmsg.c \ | |
| 87 slpsession.c \ | |
| 88 state.c \ | |
| 89 switchboard.c \ | |
| 90 sync.c \ | |
| 91 table.c \ | |
| 92 transaction.c \ | |
| 93 user.c \ | |
| 94 userlist.c \ | |
| 95 msn-utils.c | |
| 96 | |
| 97 | |
| 98 OBJECTS = $(C_SRC:%.c=%.o) | |
| 99 | |
| 100 | |
| 101 ## | |
| 102 ## LIBRARIES | |
| 103 ## | |
| 104 | |
|
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
105 LIBS = \ |
| 14192 | 106 -lglib-2.0 \ |
|
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
107 -lintl \ |
| 14192 | 108 -lws2_32 \ |
| 109 -lgaim | |
| 110 | |
|
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
111 |
| 14192 | 112 ## |
| 113 ## RULES | |
| 114 ## | |
| 115 | |
| 116 # How to make a C file | |
| 117 | |
| 118 %.o: %.c | |
| 119 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
| 120 | |
| 121 ## | |
| 122 ## TARGET DEFINITIONS | |
| 123 ## | |
| 124 | |
| 125 .PHONY: all clean | |
| 126 | |
| 127 all: $(TARGET).dll | |
| 128 | |
| 129 install: | |
| 130 cp $(MSN_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
| 131 | |
| 132 | |
| 133 ## | |
| 134 ## BUILD Dependencies | |
| 135 ## | |
| 136 | |
|
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
137 $(LIBGAIM_TOP)/libgaim.dll.a: |
|
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
138 $(MAKE) -C $(LIBGAIM_TOP) -f Makefile.mingw libgaim.dll.a |
| 14192 | 139 |
| 140 ## | |
| 141 ## BUILD DLL | |
| 142 ## | |
| 143 | |
|
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
144 $(TARGET).dll: $(OBJECTS) $(LIBGAIM_TOP)/libgaim.dll.a |
|
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
145 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
| 14192 | 146 |
| 147 | |
| 148 ## | |
| 149 ## CLEAN RULES | |
| 150 ## | |
| 151 | |
| 152 clean: | |
| 153 rm -rf *.o | |
| 154 rm -rf $(TARGET).dll |
