Mercurial > pidgin
annotate libgaim/protocols/novell/Makefile.mingw @ 14315:8793fc8f7064
[gaim-migrate @ 17008]
Lee Roach revamped the win32 makefiles. This makes me happy, they were in dire need of some loving.
This makes life a great deal easier for anyone who wants to build out-of-tree plugins.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Wed, 23 Aug 2006 21:34:43 +0000 |
parents | a7590884324d |
children | 12cb76aeb21c |
rev | line source |
---|---|
14192 | 1 # |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32 (mingw) version of libnovell | |
5 # | |
6 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
7 GAIM_TOP := ../../.. |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
8 include $(GAIM_TOP)/libgaim/win32/global.mak |
14192 | 9 |
10 TARGET = libnovell | |
11 | |
14232
a7590884324d
[gaim-migrate @ 16914]
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:
14232
diff
changeset
|
18 DLL_INSTALL_DIR = $(GAIM_INSTALL_PLUGINS_DIR) |
14192 | 19 endif |
20 endif | |
21 | |
22 ## | |
23 ## INCLUDE PATHS | |
24 ## | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
25 INCLUDE_PATHS += -I. \ |
14192 | 26 -I$(GTK_TOP)/include \ |
27 -I$(GTK_TOP)/include/glib-2.0 \ | |
28 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
29 -I$(GAIM_LIB_TOP) \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
30 -I$(GAIM_LIB_TOP)/win32 \ |
14192 | 31 -I$(GAIM_TOP) |
32 | |
33 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
34 -L$(GAIM_LIB_TOP) |
14192 | 35 |
36 ## | |
37 ## SOURCES, OBJECTS | |
38 ## | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
39 C_SRC = \ |
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
40 nmfield.c \ |
14192 | 41 nmconn.c \ |
42 nmconference.c \ | |
43 nmcontact.c \ | |
44 nmevent.c \ | |
45 nmmessage.c \ | |
46 nmrequest.c \ | |
47 nmrtf.c \ | |
48 nmuser.c \ | |
49 nmuserrecord.c \ | |
50 novell.c | |
51 | |
52 OBJECTS = $(C_SRC:%.c=%.o) | |
53 | |
54 ## | |
55 ## LIBRARIES | |
56 ## | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
57 LIBS = \ |
14192 | 58 -lglib-2.0 \ |
59 -lws2_32 \ | |
60 -lintl \ | |
61 -lgaim | |
62 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
63 include $(GAIM_COMMON_RULES) |
14192 | 64 |
65 ## | |
66 ## TARGET DEFINITIONS | |
67 ## | |
68 .PHONY: all clean | |
69 | |
70 all: $(TARGET).dll | |
71 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
72 install: all $(DLL_INSTALL_DIR) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
73 cp $(TARGET).dll $(DLL_INSTALL_DIR) |
14192 | 74 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
75 $(OBJECTS): $(GAIM_CONFIG_H) |
14192 | 76 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
77 $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(OBJECTS) |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
78 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
14192 | 79 |
80 ## | |
81 ## CLEAN RULES | |
82 ## | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
83 clean: |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
84 rm -rf $(OBJECTS) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
85 rm -rf $(TARGET).dll |
14192 | 86 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
87 include $(GAIM_COMMON_TARGETS) |