Thu, 05 Jan 2006 05:29:51 +0000
[gaim-migrate @ 15077]
jabber.c:389: warning: ISO C90 forbids mixed declarations and code
| 11090 | 1 | # |
| 2 | # Makefile.mingw | |
| 3 | # | |
| 4 | # Description: Makefile for win32 (mingw) version of libsametime | |
| 5 | # | |
| 6 | ||
| 7 | # | |
| 8 | # PATHS | |
| 9 | # | |
| 10 | ||
|
12643
4d1099e80097
[gaim-migrate @ 14980]
Daniel Atallah <datallah@pidgin.im>
parents:
12496
diff
changeset
|
11 | SAMETIME_ROOT := . |
| 11090 | 12 | GTK_TOP := ../../../../win32-dev/gtk_2_0 |
|
12706
9fd4cdb75869
[gaim-migrate @ 15049]
Daniel Atallah <datallah@pidgin.im>
parents:
12643
diff
changeset
|
13 | MEANWHILE_TOP:= ../../../../win32-dev/meanwhile-1.0.2 |
| 11090 | 14 | GAIM_TOP := ../../.. |
| 15 | GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
| 16 | ||
| 17 | ## | |
| 18 | ## VARIABLE DEFINITIONS | |
| 19 | ## | |
| 20 | ||
| 21 | TARGET = libsametime | |
| 22 | ||
|
12643
4d1099e80097
[gaim-migrate @ 14980]
Daniel Atallah <datallah@pidgin.im>
parents:
12496
diff
changeset
|
23 | NEEDED_DLLS = $(MEANWHILE_TOP)/bin/libmeanwhile-1.dll |
|
4d1099e80097
[gaim-migrate @ 14980]
Daniel Atallah <datallah@pidgin.im>
parents:
12496
diff
changeset
|
24 | |
| 11090 | 25 | # Compiler Options |
| 26 | ||
| 27 | CFLAGS = | |
| 28 | ||
| 29 | DEFINES = | |
| 30 | ||
| 31 | # Static or Plugin... | |
| 32 | ifeq ($(TYPE),STATIC) | |
| 33 | DEFINES += -DSTATIC | |
| 34 | DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
|
12643
4d1099e80097
[gaim-migrate @ 14980]
Daniel Atallah <datallah@pidgin.im>
parents:
12496
diff
changeset
|
35 | else |
| 11090 | 36 | ifeq ($(TYPE),PLUGIN) |
| 37 | DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins | |
| 38 | endif | |
| 39 | endif | |
| 40 | ||
| 41 | ||
| 42 | ## | |
| 43 | ## INCLUDE MAKEFILES | |
| 44 | ## | |
| 45 | ||
| 46 | include $(GAIM_TOP)/src/win32/global.mak | |
| 47 | ||
| 48 | ## | |
| 49 | ## INCLUDE PATHS | |
| 50 | ## | |
| 51 | ||
| 52 | INCLUDE_PATHS += -I$(SAMETIME_ROOT) \ | |
|
12643
4d1099e80097
[gaim-migrate @ 14980]
Daniel Atallah <datallah@pidgin.im>
parents:
12496
diff
changeset
|
53 | -I$(MEANWHILE_TOP)/include/meanwhile \ |
| 11090 | 54 | -I$(GTK_TOP)/include \ |
| 55 | -I$(GTK_TOP)/include/glib-2.0 \ | |
| 56 | -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 57 | -I$(GAIM_TOP)/src \ | |
| 58 | -I$(GAIM_TOP)/src/win32 \ | |
|
12643
4d1099e80097
[gaim-migrate @ 14980]
Daniel Atallah <datallah@pidgin.im>
parents:
12496
diff
changeset
|
59 | -I$(GAIM_TOP) |
| 11090 | 60 | |
| 61 | LIB_PATHS = -L$(GTK_TOP)/lib \ | |
|
12643
4d1099e80097
[gaim-migrate @ 14980]
Daniel Atallah <datallah@pidgin.im>
parents:
12496
diff
changeset
|
62 | -L$(MEANWHILE_TOP)/lib \ |
| 11090 | 63 | -L$(GAIM_TOP)/src |
| 64 | ||
| 65 | ||
| 66 | ## | |
| 67 | ## SOURCES, OBJECTS | |
| 68 | ## | |
| 69 | ||
|
12496
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12268
diff
changeset
|
70 | C_SRC = sametime.c |
| 11090 | 71 | |
| 72 | OBJECTS = $(C_SRC:%.c=%.o) | |
| 73 | ||
| 74 | ||
| 75 | ## | |
| 76 | ## LIBRARIES | |
| 77 | ## | |
| 78 | ||
|
12268
55a202e87e18
[gaim-migrate @ 14570]
Daniel Atallah <datallah@pidgin.im>
parents:
11091
diff
changeset
|
79 | LIBS = \ |
|
55a202e87e18
[gaim-migrate @ 14570]
Daniel Atallah <datallah@pidgin.im>
parents:
11091
diff
changeset
|
80 | -lglib-2.0 \ |
|
55a202e87e18
[gaim-migrate @ 14570]
Daniel Atallah <datallah@pidgin.im>
parents:
11091
diff
changeset
|
81 | -lintl \ |
|
55a202e87e18
[gaim-migrate @ 14570]
Daniel Atallah <datallah@pidgin.im>
parents:
11091
diff
changeset
|
82 | -lws2_32 \ |
|
12643
4d1099e80097
[gaim-migrate @ 14980]
Daniel Atallah <datallah@pidgin.im>
parents:
12496
diff
changeset
|
83 | -lmeanwhile \ |
|
12496
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12268
diff
changeset
|
84 | -lgaim \ |
| 11090 | 85 | |
| 86 | ## | |
| 87 | ## RULES | |
| 88 | ## | |
| 89 | ||
| 90 | # How to make a C file | |
| 91 | ||
| 92 | %.o: %.c | |
| 93 | $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
| 94 | ||
| 95 | ## | |
| 96 | ## TARGET DEFINITIONS | |
| 97 | ## | |
| 98 | ||
| 99 | .PHONY: all clean | |
| 100 | ||
| 101 | all: $(TARGET).dll | |
| 102 | ||
| 103 | install: | |
|
11091
1e518b98be44
[gaim-migrate @ 13112]
Gary Kramlich <grim@reaperworld.com>
parents:
11090
diff
changeset
|
104 | cp $(SAMETIME_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) |
|
12643
4d1099e80097
[gaim-migrate @ 14980]
Daniel Atallah <datallah@pidgin.im>
parents:
12496
diff
changeset
|
105 | cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR) |
| 11090 | 106 | |
| 107 | ||
| 108 | ## | |
| 109 | ## BUILD Dependencies | |
| 110 | ## | |
| 111 | ||
|
12707
e3c6bc93bbf2
[gaim-migrate @ 15050]
Daniel Atallah <datallah@pidgin.im>
parents:
12706
diff
changeset
|
112 | $(GAIM_TOP)/src/gaim.lib: |
|
e3c6bc93bbf2
[gaim-migrate @ 15050]
Daniel Atallah <datallah@pidgin.im>
parents:
12706
diff
changeset
|
113 | $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib |
| 11090 | 114 | |
| 115 | ## | |
| 116 | ## BUILD DLL | |
| 117 | ## | |
| 118 | ||
|
12707
e3c6bc93bbf2
[gaim-migrate @ 15050]
Daniel Atallah <datallah@pidgin.im>
parents:
12706
diff
changeset
|
119 | $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib |
|
e3c6bc93bbf2
[gaim-migrate @ 15050]
Daniel Atallah <datallah@pidgin.im>
parents:
12706
diff
changeset
|
120 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll |
| 11090 | 121 | |
| 122 | ## | |
| 123 | ## CLEAN RULES | |
| 124 | ## | |
| 125 | ||
| 126 | clean: | |
| 127 | rm -rf *.o | |
| 128 | rm -rf $(TARGET).dll | |
|
12707
e3c6bc93bbf2
[gaim-migrate @ 15050]
Daniel Atallah <datallah@pidgin.im>
parents:
12706
diff
changeset
|
129 | rm -rf $(TARGET).lib |