forked from mikeage/prpltwtr
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.telepathy
75 lines (55 loc) · 1.54 KB
/
Makefile.telepathy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#
# Microblog protocol plug-in
#
all: build
IS_PIDGIN=0
include global.mak
SUBDIRS = data
TARGETS = prpltwtr$(PLUGIN_SUFFIX)
LD = $(CC)
ifeq ($(strip $(IS_WIN32)), 1)
TWITTER_INC_PATHS += -I$(GTK_TOP)/include/gtk-2.0 \
-I$(GTK_TOP)/include/pango-1.0 \
-I$(GTK_TOP)/include/atk-1.0 \
-I$(GTK_TOP)/include/cairo \
-I$(GTK_TOP)/lib/gtk-2.0/include \
-I$(PIDGIN_TOP)/win32
LIB_PATHS += -L$(GTK_TOP)/lib \
-L$(PURPLE_TOP) \
-L$(PIDGIN_TOP)
LIBS = -lgtk-win32-2.0 \
-lglib-2.0 \
-lgdk-win32-2.0 \
-lgobject-2.0 \
-lintl \
-lpurple \
-lpidgin
CFLAGS := $(PURPLE_CFLAGS) $(TWITTER_INC_PATHS)
else
CFLAGS := $(PURPLE_CFLAGS) $(PIDGIN_CFLAGS) -D_HAZE_=1
LIB_PATHS =
LIBS = $(PIDGIN_LIBS)
endif
TWITTER_H_SRC = $(TWITTER_C_SRC:%.c=%.h) config.h
TWITTER_OBJ = $(TWITTER_C_SRC:%.c=%.o)
DISTFILES = $(TWITTER_C_SRC) $(TWITTER_H_SRC) Makefile global.mak version.mak
OBJECTS = $(TWITTER_OBJ)
.PHONY: clean install build
build: $(TARGETS)
test: test.c
install: $(TARGETS)
rm -f $(PURPLE_PLUGIN_DIR)/prpltwtr$(PLUGIN_SUFFIX)
install -m 0755 -d $(PURPLE_PLUGIN_DIR)
cp prpltwtr$(PLUGIN_SUFFIX) $(PURPLE_PLUGIN_DIR)/prpltwtr$(PLUGIN_SUFFIX)
for dir in $(SUBDIRS); do \
make -C "$$dir" $@ || exit 1; \
done
uninstall:
rm -f $(PURPLE_PLUGIN_DIR)/prpltwtr$(PLUGIN_SUFFIX)
for dir in $(SUBDIRS); do \
make -C "$$dir" $@ || exit 1; \
done
clean:
rm -f $(TARGETS) $(OBJECTS)
prpltwtr$(PLUGIN_SUFFIX): $(TWITTER_OBJ)
$(LD) $(LDFLAGS) -shared $(TWITTER_OBJ) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o prpltwtr$(PLUGIN_SUFFIX)