comparison libpurple/plugins/perl/Makefile.mingw @ 15373: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
15372:f79e0f4df793 15373:5fe8042783c1
1 #
2 # Makefile.mingw
3 #
4 # Description: Makefile for perl plugin loader plugin.
5 #
6
7 GAIM_TOP := ../../..
8 include $(GAIM_TOP)/libgaim/win32/global.mak
9
10 TARGET = perl
11
12 # Perl headers with /* /* */ type comments.. Turn off warnings.
13 CFLAGS += -Wno-comment
14
15 ##
16 ## INCLUDE PATHS
17 ##
18 INCLUDE_PATHS += -I. \
19 -I$(GAIM_TOP) \
20 -I$(GAIM_LIB_TOP) \
21 -I$(GAIM_LIB_TOP)/win32 \
22 -I$(GTK_TOP)/include \
23 -I$(GTK_TOP)/include/glib-2.0 \
24 -I$(GTK_TOP)/lib/glib-2.0/include \
25 -I$(PERL_LIB_TOP)/CORE
26
27 LIB_PATHS = -L$(GTK_TOP)/lib \
28 -L$(GAIM_LIB_TOP) \
29 -L$(PERL_LIB_TOP)
30
31 ##
32 ## SOURCES, OBJECTS
33 ##
34 C_SRC = perl.c \
35 perl-common.c \
36 perl-handlers.c
37
38 OBJECTS = $(C_SRC:%.c=%.o)
39
40 ##
41 ## LIBRARIES
42 ##
43 LIBS = \
44 -lglib-2.0 \
45 -lgmodule-2.0 \
46 -lgobject-2.0 \
47 -lws2_32 \
48 -lintl \
49 -lgaim \
50 -lperl58
51
52 include $(GAIM_COMMON_RULES)
53
54 ##
55 ## TARGET DEFINITIONS
56 ##
57 .PHONY: all install clean
58
59 all: $(TARGET).dll
60 $(MAKE) -C ./common -f $(GAIM_WIN32_MAKEFILE)
61
62 install: all $(GAIM_INSTALL_PLUGINS_DIR)
63 cp $(TARGET).dll $(GAIM_INSTALL_PLUGINS_DIR)
64 $(MAKE) -C ./common -f $(GAIM_WIN32_MAKEFILE) install
65
66 $(OBJECTS): $(GAIM_CONFIG_H)
67
68 ##
69 ## BUILD DLL
70 ##
71 $(TARGET).dll $(TARGET).dll.a: $(GAIM_LIBGAIM_DLL).a $(OBJECTS)
72 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--export-all-symbols -Wl,--out-implib,$(TARGET).dll.a -o $(TARGET).dll
73
74 ##
75 ## CLEAN RULES
76 ##
77 clean:
78 rm -rf $(OBJECTS)
79 rm -rf $(TARGET).dll $(TARGET).dll.a
80 $(MAKE) -C ./common -f $(GAIM_WIN32_MAKEFILE) clean
81
82 include $(GAIM_COMMON_TARGETS)