Mercurial > pidgin.yaz
comparison libpurple/protocols/novell/Makefile.mingw @ 15374:5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sat, 20 Jan 2007 02:32:10 +0000 |
parents | |
children | 0e17470b47c2 |
comparison
equal
deleted
inserted
replaced
15373:f79e0f4df793 | 15374:5fe8042783c1 |
---|---|
1 # | |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32 (mingw) version of libnovell | |
5 # | |
6 | |
7 GAIM_TOP := ../../.. | |
8 include $(GAIM_TOP)/libgaim/win32/global.mak | |
9 | |
10 TARGET = libnovell | |
11 TYPE = PLUGIN | |
12 | |
13 # Static or Plugin... | |
14 ifeq ($(TYPE),STATIC) | |
15 DEFINES += -DSTATIC | |
16 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
17 else | |
18 ifeq ($(TYPE),PLUGIN) | |
19 DLL_INSTALL_DIR = $(GAIM_INSTALL_PLUGINS_DIR) | |
20 endif | |
21 endif | |
22 | |
23 ## | |
24 ## INCLUDE PATHS | |
25 ## | |
26 INCLUDE_PATHS += -I. \ | |
27 -I$(GTK_TOP)/include \ | |
28 -I$(GTK_TOP)/include/glib-2.0 \ | |
29 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
30 -I$(GAIM_LIB_TOP) \ | |
31 -I$(GAIM_LIB_TOP)/win32 \ | |
32 -I$(GAIM_TOP) | |
33 | |
34 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
35 -L$(GAIM_LIB_TOP) | |
36 | |
37 ## | |
38 ## SOURCES, OBJECTS | |
39 ## | |
40 C_SRC = \ | |
41 nmfield.c \ | |
42 nmconn.c \ | |
43 nmconference.c \ | |
44 nmcontact.c \ | |
45 nmevent.c \ | |
46 nmmessage.c \ | |
47 nmrequest.c \ | |
48 nmrtf.c \ | |
49 nmuser.c \ | |
50 nmuserrecord.c \ | |
51 novell.c | |
52 | |
53 OBJECTS = $(C_SRC:%.c=%.o) | |
54 | |
55 ## | |
56 ## LIBRARIES | |
57 ## | |
58 LIBS = \ | |
59 -lglib-2.0 \ | |
60 -lws2_32 \ | |
61 -lintl \ | |
62 -lgaim | |
63 | |
64 include $(GAIM_COMMON_RULES) | |
65 | |
66 ## | |
67 ## TARGET DEFINITIONS | |
68 ## | |
69 .PHONY: all install clean | |
70 | |
71 all: $(TARGET).dll | |
72 | |
73 install: all $(DLL_INSTALL_DIR) | |
74 cp $(TARGET).dll $(DLL_INSTALL_DIR) | |
75 | |
76 $(OBJECTS): $(GAIM_CONFIG_H) | |
77 | |
78 $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(OBJECTS) | |
79 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll | |
80 | |
81 ## | |
82 ## CLEAN RULES | |
83 ## | |
84 clean: | |
85 rm -f $(OBJECTS) | |
86 rm -f $(TARGET).dll | |
87 | |
88 include $(GAIM_COMMON_TARGETS) |