Mercurial > pidgin
annotate src/protocols/sametime/Makefile.mingw @ 12514:4e40eecd13fc
[gaim-migrate @ 14826]
Looks like it's time to NEWS.
committer: Tailor Script <tailor@pidgin.im>
| author | Tim Ringenbach <marv@pidgin.im> |
|---|---|
| date | Sat, 17 Dec 2005 04:39:31 +0000 |
| parents | f9d0ab1474ac |
| children | 29c034547358 |
| rev | line source |
|---|---|
| 11090 | 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 GAIM_TOP := ../../.. | |
| 14 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
| 15 | |
| 16 ## | |
| 17 ## VARIABLE DEFINITIONS | |
| 18 ## | |
| 19 | |
| 20 TARGET = libsametime | |
| 21 | |
| 22 # Compiler Options | |
| 23 | |
| 24 CFLAGS = | |
| 25 | |
| 26 DEFINES = | |
| 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 | |
| 43 include $(GAIM_TOP)/src/win32/global.mak | |
| 44 | |
| 45 ## | |
| 46 ## INCLUDE PATHS | |
| 47 ## | |
| 48 | |
| 49 INCLUDE_PATHS += -I$(SAMETIME_ROOT) \ | |
| 50 -I$(GTK_TOP)/include \ | |
| 51 -I$(GTK_TOP)/include/glib-2.0 \ | |
| 52 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 53 -I$(GAIM_TOP)/src \ | |
| 54 -I$(GAIM_TOP)/src/win32 \ | |
|
12496
f9d0ab1474ac
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12268
diff
changeset
|
55 -I$(GAIM_TOP) \ |
|
f9d0ab1474ac
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12268
diff
changeset
|
56 $(MEANWHILE_CFLAGS) |
| 11090 | 57 |
| 58 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
| 59 -L$(GAIM_TOP)/src | |
| 60 | |
| 61 | |
| 62 ## | |
| 63 ## SOURCES, OBJECTS | |
| 64 ## | |
| 65 | |
|
12496
f9d0ab1474ac
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12268
diff
changeset
|
66 C_SRC = sametime.c |
| 11090 | 67 |
| 68 OBJECTS = $(C_SRC:%.c=%.o) | |
| 69 | |
| 70 | |
| 71 ## | |
| 72 ## LIBRARIES | |
| 73 ## | |
| 74 | |
|
12268
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
75 LIBS = \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
76 -lglib-2.0 \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
77 -lgobject-2.0 \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
78 -lintl \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
79 -lws2_32 \ |
|
12496
f9d0ab1474ac
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12268
diff
changeset
|
80 -lgaim \ |
|
f9d0ab1474ac
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12268
diff
changeset
|
81 $(MEANWHILE_LIBS) |
| 11090 | 82 |
| 83 ## | |
| 84 ## RULES | |
| 85 ## | |
| 86 | |
| 87 # How to make a C file | |
| 88 | |
| 89 %.o: %.c | |
| 90 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
| 91 | |
| 92 ## | |
| 93 ## TARGET DEFINITIONS | |
| 94 ## | |
| 95 | |
| 96 .PHONY: all clean | |
| 97 | |
| 98 all: $(TARGET).dll | |
| 99 | |
| 100 install: | |
|
11091
5e29428077fc
[gaim-migrate @ 13112]
Gary Kramlich <grim@reaperworld.com>
parents:
11090
diff
changeset
|
101 cp $(SAMETIME_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) |
| 11090 | 102 |
| 103 | |
| 104 ## | |
| 105 ## BUILD Dependencies | |
| 106 ## | |
| 107 | |
| 108 $(GAIM_TOP)/src/gaim.lib: | |
| 109 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
| 110 | |
| 111 ## | |
| 112 ## BUILD DLL | |
| 113 ## | |
| 114 | |
| 115 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib | |
| 116 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll | |
| 117 | |
| 118 ## | |
| 119 ## CLEAN RULES | |
| 120 ## | |
| 121 | |
| 122 clean: | |
| 123 rm -rf *.o | |
| 124 rm -rf $(TARGET).dll | |
| 125 rm -rf $(TARGET).lib |
