annotate libpurple/protocols/myspace/Makefile.mingw @ 23661:6659ba7b3941

Fix a crash when the user isn't in your list.
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 29 Jul 2008 18:55:03 +0000
parents bddc6a6fddf0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16395
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
1 #
16397
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
2 # Makefile.mingw
16395
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
3 #
16746
52357f6392a4 Add partial implementation of MsimMessage (not used anywhere yet).
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16397
diff changeset
4 # Description: Makefile for win32 (mingw) version of libmyspace
16395
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
5 #
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
6
16397
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
7 PIDGIN_TREE_TOP := ../../..
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
8 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
16395
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
9
16746
52357f6392a4 Add partial implementation of MsimMessage (not used anywhere yet).
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16397
diff changeset
10 TARGET = libmyspace
16397
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
11 TYPE = PLUGIN
16395
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
12
16397
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
13 # Static or Plugin...
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
14 ifeq ($(TYPE),STATIC)
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
15 DEFINES += -DSTATIC
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
16 DLL_INSTALL_DIR = $(PURPLE_INSTALL_DIR)
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
17 else
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
18 ifeq ($(TYPE),PLUGIN)
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
19 DLL_INSTALL_DIR = $(PURPLE_INSTALL_PLUGINS_DIR)
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
20 endif
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
21 endif
16395
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
22
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
23 ##
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
24 ## INCLUDE PATHS
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
25 ##
16397
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
26 INCLUDE_PATHS += -I. \
16395
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
27 -I$(GTK_TOP)/include \
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
28 -I$(GTK_TOP)/include/glib-2.0 \
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
29 -I$(GTK_TOP)/lib/glib-2.0/include \
16397
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
30 -I$(PURPLE_TOP) \
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
31 -I$(PURPLE_TOP)/win32 \
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
32 -I$(PIDGIN_TREE_TOP)
16395
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
33
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
34 LIB_PATHS = -L$(GTK_TOP)/lib \
16397
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
35 -L$(PURPLE_TOP)
16395
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
36
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
37 ##
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
38 ## SOURCES, OBJECTS
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
39 ##
19435
bddc6a6fddf0 In msimprpl, move user-related code to a new user module, and move other
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 19434
diff changeset
40 C_SRC = myspace.c message.c zap.c session.c markup.c user.c
16395
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
41
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
42 OBJECTS = $(C_SRC:%.c=%.o)
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
43
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
44 ##
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
45 ## LIBRARIES
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
46 ##
16397
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
47 LIBS = \
16395
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
48 -lglib-2.0 \
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
49 -lws2_32 \
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
50 -lintl \
16397
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
51 -lpurple
16395
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
52
16397
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
53 include $(PIDGIN_COMMON_RULES)
16395
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
54
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
55 ##
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
56 ## TARGET DEFINITIONS
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
57 ##
16397
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
58 .PHONY: all install clean
16395
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
59
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
60 all: $(TARGET).dll
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
61
16397
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
62 install: all $(DLL_INSTALL_DIR)
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
63 cp $(TARGET).dll $(DLL_INSTALL_DIR)
16395
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
64
16397
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
65 $(OBJECTS): $(PURPLE_CONFIG_H)
16395
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
66
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
67 ##
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
68 ## BUILD DLL
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
69 ##
16397
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
70 $(TARGET).dll: $(PURPLE_DLL).a $(OBJECTS)
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
71 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll
16395
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
72
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
73 ##
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
74 ## CLEAN RULES
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
75 ##
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
76
05e2df434077 Import msimprpl 0.4.
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
77 clean:
16397
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
78 rm -f $(OBJECTS)
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
79 rm -f $(TARGET).dll
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
80
70c069168459 Gaim -> Purple
Jeffrey Connelly <jaconnel@calpoly.edu>
parents: 16395
diff changeset
81 include $(PIDGIN_COMMON_TARGETS)