Mercurial > pidgin
annotate libgaim/protocols/sametime/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 libsametime | |
| 5 # | |
| 6 | |
| 7 # | |
| 8 # PATHS | |
| 9 # | |
| 10 | |
| 11 SAMETIME_ROOT := . | |
| 12 GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
| 13 MEANWHILE_TOP:= ../../../../win32-dev/meanwhile-1.0.2 | |
| 14 GAIM_TOP := ../../.. | |
|
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
15 LIBGAIM_TOP := ../.. |
| 14192 | 16 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir |
| 17 | |
| 18 ## | |
| 19 ## VARIABLE DEFINITIONS | |
| 20 ## | |
| 21 | |
| 22 TARGET = libsametime | |
| 23 | |
| 24 NEEDED_DLLS = $(MEANWHILE_TOP)/bin/libmeanwhile-1.dll | |
| 25 | |
| 26 # Compiler Options | |
| 27 | |
| 28 CFLAGS = | |
| 29 | |
| 30 DEFINES = | |
| 31 | |
| 32 # Static or Plugin... | |
| 33 ifeq ($(TYPE),STATIC) | |
| 34 DEFINES += -DSTATIC | |
| 35 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
| 36 else | |
| 37 ifeq ($(TYPE),PLUGIN) | |
| 38 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins | |
| 39 endif | |
| 40 endif | |
| 41 | |
| 42 | |
| 43 ## | |
| 44 ## INCLUDE MAKEFILES | |
| 45 ## | |
| 46 | |
|
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
47 include $(LIBGAIM_TOP)/win32/global.mak |
| 14192 | 48 |
| 49 ## | |
| 50 ## INCLUDE PATHS | |
| 51 ## | |
| 52 | |
| 53 INCLUDE_PATHS += -I$(SAMETIME_ROOT) \ | |
| 54 -I$(MEANWHILE_TOP)/include/meanwhile \ | |
| 55 -I$(GTK_TOP)/include \ | |
| 56 -I$(GTK_TOP)/include/glib-2.0 \ | |
| 57 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
|
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
58 -I$(LIBGAIM_TOP) \ |
|
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
59 -I$(LIBGAIM_TOP)/win32 \ |
| 14192 | 60 -I$(GAIM_TOP) |
| 61 | |
| 62 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
| 63 -L$(MEANWHILE_TOP)/lib \ | |
|
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
64 -L$(LIBGAIM_TOP) |
| 14192 | 65 |
| 66 | |
| 67 ## | |
| 68 ## SOURCES, OBJECTS | |
| 69 ## | |
| 70 | |
| 71 C_SRC = sametime.c | |
| 72 | |
| 73 OBJECTS = $(C_SRC:%.c=%.o) | |
| 74 | |
| 75 | |
| 76 ## | |
| 77 ## LIBRARIES | |
| 78 ## | |
| 79 | |
| 80 LIBS = \ | |
| 81 -lglib-2.0 \ | |
| 82 -lintl \ | |
| 83 -lws2_32 \ | |
| 84 -lmeanwhile \ | |
| 85 -lgaim \ | |
| 86 | |
| 87 ## | |
| 88 ## RULES | |
| 89 ## | |
| 90 | |
| 91 # How to make a C file | |
| 92 | |
| 93 %.o: %.c | |
| 94 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
| 95 | |
| 96 ## | |
| 97 ## TARGET DEFINITIONS | |
| 98 ## | |
| 99 | |
| 100 .PHONY: all clean | |
| 101 | |
| 102 all: $(TARGET).dll | |
| 103 | |
| 104 install: | |
| 105 cp $(SAMETIME_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
| 106 cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR) | |
| 107 | |
| 108 | |
| 109 ## | |
| 110 ## BUILD Dependencies | |
| 111 ## | |
| 112 | |
|
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
113 $(LIBGAIM_TOP)/libgaim.dll.a: |
|
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
114 $(MAKE) -C $(LIBGAIM_TOP) -f Makefile.mingw libgaim.dll.a |
| 14192 | 115 |
| 116 ## | |
| 117 ## BUILD DLL | |
| 118 ## | |
| 119 | |
|
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
120 $(TARGET).dll: $(OBJECTS) $(LIBGAIM_TOP)/libgaim.dll.a |
|
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
121 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
| 14192 | 122 |
| 123 ## | |
| 124 ## CLEAN RULES | |
| 125 ## | |
| 126 | |
| 127 clean: | |
| 128 rm -rf *.o | |
| 129 rm -rf $(TARGET).dll |
