Mercurial > pidgin
annotate libgaim/protocols/toc/Makefile.mingw @ 14476:218a36c1c9e2
[gaim-migrate @ 17194]
The signal to noise ratio here isn't very good, but I hate comments that don't
wrap cleanly.
Anyway, apparently libxml2 has intermittent start-parsing errors, so we need
to force it to actually start with this line. Sean pulled it out a bit ago but
that was causing issues with logins just hanging sometimes.
committer: Tailor Script <tailor@pidgin.im>
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Fri, 08 Sep 2006 22:47:36 +0000 |
parents | 8793fc8f7064 |
children | 12cb76aeb21c |
rev | line source |
---|---|
14192 | 1 # |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32 (mingw) version of libtoc | |
5 # | |
6 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
7 GAIM_TOP := ../../.. |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
8 include $(GAIM_TOP)/libgaim/win32/global.mak |
14192 | 9 |
10 TARGET = libtoc | |
11 | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
12 # Static or Plugin... |
14192 | 13 ifeq ($(TYPE),STATIC) |
14 DEFINES += -DSTATIC | |
15 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
16 else | |
17 ifeq ($(TYPE),PLUGIN) | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
18 DLL_INSTALL_DIR = $(GAIM_INSTALL_PLUGINS_DIR) |
14192 | 19 endif |
20 endif | |
21 | |
22 ## | |
23 ## INCLUDE PATHS | |
24 ## | |
25 INCLUDE_PATHS += -I$(TOC_ROOT) \ | |
26 -I$(GTK_TOP)/include \ | |
27 -I$(GTK_TOP)/include/glib-2.0 \ | |
28 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
29 -I$(LIBGAIM_TOP) \ |
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
30 -I$(LIBGAIM_TOP)/win32 \ |
14192 | 31 -I$(GAIM_TOP) |
32 | |
33 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
34 -L$(LIBGAIM_TOP) |
14192 | 35 |
36 ## | |
37 ## SOURCES, OBJECTS | |
38 ## | |
39 C_SRC = toc.c | |
40 | |
41 OBJECTS = $(C_SRC:%.c=%.o) | |
42 | |
43 ## | |
44 ## LIBRARIES | |
45 ## | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
46 LIBS = \ |
14192 | 47 -lglib-2.0 \ |
48 -lws2_32 \ | |
49 -lintl \ | |
50 -lgaim | |
51 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
52 include $(GAIM_COMMON_RULES) |
14192 | 53 |
54 ## | |
55 ## TARGET DEFINITIONS | |
56 ## | |
57 | |
58 .PHONY: all clean | |
59 | |
60 all: $(TARGET).dll | |
61 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
62 install: all $(DLL_INSTALL_DIR) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
63 cp $(TARGET).dll $(DLL_INSTALL_DIR) |
14192 | 64 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
65 $(OBJECTS): $(GAIM_CONFIG_H) |
14192 | 66 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
67 $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(OBJECTS) |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
68 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
14192 | 69 |
70 ## | |
71 ## CLEAN RULES | |
72 ## | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
73 clean: |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
74 rm -rf $(OBJECTS) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
75 rm -rf $(TARGET).dll |
14192 | 76 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
77 include $(GAIM_COMMON_TARGETS) |