Mercurial > pidgin
comparison libgaim/protocols/sametime/Makefile.mingw @ 14232:a7590884324d
[gaim-migrate @ 16914]
Protocols now compile on win32.
Next, everything needs to be put all together.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Sun, 20 Aug 2006 18:49:08 +0000 |
parents | 60b1bc8dbf37 |
children | 8793fc8f7064 |
comparison
equal
deleted
inserted
replaced
14231:4249e5debe3a | 14232:a7590884324d |
---|---|
10 | 10 |
11 SAMETIME_ROOT := . | 11 SAMETIME_ROOT := . |
12 GTK_TOP := ../../../../win32-dev/gtk_2_0 | 12 GTK_TOP := ../../../../win32-dev/gtk_2_0 |
13 MEANWHILE_TOP:= ../../../../win32-dev/meanwhile-1.0.2 | 13 MEANWHILE_TOP:= ../../../../win32-dev/meanwhile-1.0.2 |
14 GAIM_TOP := ../../.. | 14 GAIM_TOP := ../../.. |
15 LIBGAIM_TOP := ../.. | |
15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | 16 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir |
16 | 17 |
17 ## | 18 ## |
18 ## VARIABLE DEFINITIONS | 19 ## VARIABLE DEFINITIONS |
19 ## | 20 ## |
41 | 42 |
42 ## | 43 ## |
43 ## INCLUDE MAKEFILES | 44 ## INCLUDE MAKEFILES |
44 ## | 45 ## |
45 | 46 |
46 include $(GAIM_TOP)/src/win32/global.mak | 47 include $(LIBGAIM_TOP)/win32/global.mak |
47 | 48 |
48 ## | 49 ## |
49 ## INCLUDE PATHS | 50 ## INCLUDE PATHS |
50 ## | 51 ## |
51 | 52 |
52 INCLUDE_PATHS += -I$(SAMETIME_ROOT) \ | 53 INCLUDE_PATHS += -I$(SAMETIME_ROOT) \ |
53 -I$(MEANWHILE_TOP)/include/meanwhile \ | 54 -I$(MEANWHILE_TOP)/include/meanwhile \ |
54 -I$(GTK_TOP)/include \ | 55 -I$(GTK_TOP)/include \ |
55 -I$(GTK_TOP)/include/glib-2.0 \ | 56 -I$(GTK_TOP)/include/glib-2.0 \ |
56 -I$(GTK_TOP)/lib/glib-2.0/include \ | 57 -I$(GTK_TOP)/lib/glib-2.0/include \ |
57 -I$(GAIM_TOP)/src \ | 58 -I$(LIBGAIM_TOP) \ |
58 -I$(GAIM_TOP)/src/win32 \ | 59 -I$(LIBGAIM_TOP)/win32 \ |
59 -I$(GAIM_TOP) | 60 -I$(GAIM_TOP) |
60 | 61 |
61 LIB_PATHS = -L$(GTK_TOP)/lib \ | 62 LIB_PATHS = -L$(GTK_TOP)/lib \ |
62 -L$(MEANWHILE_TOP)/lib \ | 63 -L$(MEANWHILE_TOP)/lib \ |
63 -L$(GAIM_TOP)/src | 64 -L$(LIBGAIM_TOP) |
64 | 65 |
65 | 66 |
66 ## | 67 ## |
67 ## SOURCES, OBJECTS | 68 ## SOURCES, OBJECTS |
68 ## | 69 ## |
107 | 108 |
108 ## | 109 ## |
109 ## BUILD Dependencies | 110 ## BUILD Dependencies |
110 ## | 111 ## |
111 | 112 |
112 $(GAIM_TOP)/src/gaim.lib: | 113 $(LIBGAIM_TOP)/libgaim.dll.a: |
113 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | 114 $(MAKE) -C $(LIBGAIM_TOP) -f Makefile.mingw libgaim.dll.a |
114 | 115 |
115 ## | 116 ## |
116 ## BUILD DLL | 117 ## BUILD DLL |
117 ## | 118 ## |
118 | 119 |
119 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib | 120 $(TARGET).dll: $(OBJECTS) $(LIBGAIM_TOP)/libgaim.dll.a |
120 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll | 121 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
121 | 122 |
122 ## | 123 ## |
123 ## CLEAN RULES | 124 ## CLEAN RULES |
124 ## | 125 ## |
125 | 126 |
126 clean: | 127 clean: |
127 rm -rf *.o | 128 rm -rf *.o |
128 rm -rf $(TARGET).dll | 129 rm -rf $(TARGET).dll |
129 rm -rf $(TARGET).lib |