forked from aebrahim/pidgin-wincred
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
71 lines (55 loc) · 1.4 KB
/
Makefile
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
#
# Makefile.mingw
#
# Description: Makefile for win32 (mingw) version of libpurple Plugins
#
TARGET = pidgin-wincred.dll
PIDGIN_TREE_TOP := ..
include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
include $(PIDGIN_TREE_TOP)/local.mak
.SUFFIXES: .c .dll
##
## INCLUDE PATHS
##
INCLUDE_PATHS += \
-I$(GTK_TOP)/include \
-I$(GTK_TOP)/include/glib-2.0 \
-I$(GTK_TOP)/lib/glib-2.0/include \
-I$(PIDGIN_TREE_TOP) \
-I$(PIDGIN_TREE_TOP)/pidgin \
-I$(PURPLE_TOP) \
-I$(PURPLE_TOP)/win32 \
-I`pwd`
LIB_PATHS += \
-L$(GTK_TOP)/lib \
-L$(PURPLE_TOP) \
$(PIDGIN_TREE_TOP)/pidgin/pidgin.dll.a
##
## LIBRARIES
##
LIBS = \
-lws2_32 \
-lglib-2.0 \
-lgobject-2.0 \
-lgmodule-2.0 \
-lintl \
-lpurple \
-lcredui
CFLAGS = -O2 -Wall -Waggregate-return -Wcast-align -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wextra -Wno-sign-compare -Wno-unused-parameter -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef -pipe -mms-bitfields -g
##
## TARGET DEFINITIONS
##
.PHONY: all clean
all: $(TARGET)
.c.dll:
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -mwindows -o [email protected] -c $<
$(CC) -shared [email protected] $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $@
install: $(TARGET)
cp $(TARGET) /mnt/c/Users/$(USERNAME)/AppData/Roaming/.purple/plugins/
##
## CLEAN RULES
##
clean:
rm -f *.o *.dll
include $(PIDGIN_COMMON_TARGETS)