Mercurial > pidgin
comparison libpurple/plugins/perl/Makefile.mingw @ 16039:ded8da3de5f8
This should get all the Win32 Makefiles in line with
the names Pidgin and Purple. I tried to separate PIDGIN
and PURPLE values as much as a could to make it easier to
divide them later if that's ever desired.
author | Kevin Stange <kevin@simguy.net> |
---|---|
date | Tue, 10 Apr 2007 06:19:29 +0000 |
parents | 0e17470b47c2 |
children | 1843c0180fbe |
comparison
equal
deleted
inserted
replaced
16037:8f62c4177e0c | 16039:ded8da3de5f8 |
---|---|
2 # Makefile.mingw | 2 # Makefile.mingw |
3 # | 3 # |
4 # Description: Makefile for perl plugin loader plugin. | 4 # Description: Makefile for perl plugin loader plugin. |
5 # | 5 # |
6 | 6 |
7 GAIM_TOP := ../../.. | 7 PIDGIN_TREE_TOP := ../../.. |
8 include $(GAIM_TOP)/libpurple/win32/global.mak | 8 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak |
9 | 9 |
10 TARGET = perl | 10 TARGET = perl |
11 | 11 |
12 # Perl headers with /* /* */ type comments.. Turn off warnings. | 12 # Perl headers with /* /* */ type comments.. Turn off warnings. |
13 CFLAGS += -Wno-comment | 13 CFLAGS += -Wno-comment |
14 | 14 |
15 ## | 15 ## |
16 ## INCLUDE PATHS | 16 ## INCLUDE PATHS |
17 ## | 17 ## |
18 INCLUDE_PATHS += -I. \ | 18 INCLUDE_PATHS += -I. \ |
19 -I$(GAIM_TOP) \ | 19 -I$(PIDGIN_TREE_TOP) \ |
20 -I$(GAIM_LIB_TOP) \ | 20 -I$(PURPLE_TOP) \ |
21 -I$(GAIM_LIB_TOP)/win32 \ | 21 -I$(PURPLE_TOP)/win32 \ |
22 -I$(GTK_TOP)/include \ | 22 -I$(GTK_TOP)/include \ |
23 -I$(GTK_TOP)/include/glib-2.0 \ | 23 -I$(GTK_TOP)/include/glib-2.0 \ |
24 -I$(GTK_TOP)/lib/glib-2.0/include \ | 24 -I$(GTK_TOP)/lib/glib-2.0/include \ |
25 -I$(PERL_LIB_TOP)/CORE | 25 -I$(PERL_LIB_TOP)/CORE |
26 | 26 |
27 LIB_PATHS = -L$(GTK_TOP)/lib \ | 27 LIB_PATHS = -L$(GTK_TOP)/lib \ |
28 -L$(GAIM_LIB_TOP) \ | 28 -L$(PURPLE_TOP) \ |
29 -L$(PERL_LIB_TOP) | 29 -L$(PERL_LIB_TOP) |
30 | 30 |
31 ## | 31 ## |
32 ## SOURCES, OBJECTS | 32 ## SOURCES, OBJECTS |
33 ## | 33 ## |
47 -lws2_32 \ | 47 -lws2_32 \ |
48 -lintl \ | 48 -lintl \ |
49 -lpurple \ | 49 -lpurple \ |
50 -lperl58 | 50 -lperl58 |
51 | 51 |
52 include $(GAIM_COMMON_RULES) | 52 include $(PIDGIN_COMMON_RULES) |
53 | 53 |
54 ## | 54 ## |
55 ## TARGET DEFINITIONS | 55 ## TARGET DEFINITIONS |
56 ## | 56 ## |
57 .PHONY: all install clean | 57 .PHONY: all install clean |
58 | 58 |
59 all: $(TARGET).dll | 59 all: $(TARGET).dll |
60 $(MAKE) -C ./common -f $(GAIM_WIN32_MAKEFILE) | 60 $(MAKE) -C ./common -f $(MINGW_MAKEFILE) |
61 | 61 |
62 install: all $(GAIM_INSTALL_PLUGINS_DIR) | 62 install: all $(PURPLE_INSTALL_PLUGINS_DIR) |
63 cp $(TARGET).dll $(GAIM_INSTALL_PLUGINS_DIR) | 63 cp $(TARGET).dll $(PURPLE_INSTALL_PLUGINS_DIR) |
64 $(MAKE) -C ./common -f $(GAIM_WIN32_MAKEFILE) install | 64 $(MAKE) -C ./common -f $(MINGW_MAKEFILE) install |
65 | 65 |
66 $(OBJECTS): $(GAIM_CONFIG_H) | 66 $(OBJECTS): $(PURPLE_CONFIG_H) |
67 | 67 |
68 ## | 68 ## |
69 ## BUILD DLL | 69 ## BUILD DLL |
70 ## | 70 ## |
71 $(TARGET).dll $(TARGET).dll.a: $(GAIM_LIBGAIM_DLL).a $(OBJECTS) | 71 $(TARGET).dll $(TARGET).dll.a: $(PURPLE_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 | 72 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--export-all-symbols -Wl,--out-implib,$(TARGET).dll.a -o $(TARGET).dll |
73 | 73 |
74 ## | 74 ## |
75 ## CLEAN RULES | 75 ## CLEAN RULES |
76 ## | 76 ## |
77 clean: | 77 clean: |
78 rm -rf $(OBJECTS) | 78 rm -rf $(OBJECTS) |
79 rm -rf $(TARGET).dll $(TARGET).dll.a | 79 rm -rf $(TARGET).dll $(TARGET).dll.a |
80 $(MAKE) -C ./common -f $(GAIM_WIN32_MAKEFILE) clean | 80 $(MAKE) -C ./common -f $(MINGW_MAKEFILE) clean |
81 | 81 |
82 include $(GAIM_COMMON_TARGETS) | 82 include $(PIDGIN_COMMON_TARGETS) |