Mercurial > pidgin.yaz
comparison libpurple/plugins/perl/common/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 | 2f8274ce570a |
children | 6dedf7542b44 |
comparison
equal
deleted
inserted
replaced
16037:8f62c4177e0c | 16039:ded8da3de5f8 |
---|---|
2 # Makefile.mingw | 2 # Makefile.mingw |
3 # | 3 # |
4 # Description: Makefile for Purple perl module. | 4 # Description: Makefile for Purple perl module. |
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 = Purple | 10 TARGET = Purple |
11 AUTOSPLIT = lib/auto/Purple/autosplit.ix | 11 AUTOSPLIT = lib/auto/Purple/autosplit.ix |
12 EXTUTILS ?= C:/perl/lib/ExtUtils | 12 EXTUTILS ?= C:/perl/lib/ExtUtils |
13 PERL_PLUGIN_TOP := .. | 13 PERL_PLUGIN_TOP := .. |
16 | 16 |
17 ## | 17 ## |
18 ## INCLUDE PATHS | 18 ## INCLUDE PATHS |
19 ## | 19 ## |
20 INCLUDE_PATHS = -I. \ | 20 INCLUDE_PATHS = -I. \ |
21 -I$(GAIM_TOP) \ | 21 -I$(PIDGIN_TREE_TOP) \ |
22 -I$(GAIM_LIB_TOP) \ | 22 -I$(PURPLE_TOP) \ |
23 -I$(GTK_TOP)/include \ | 23 -I$(GTK_TOP)/include \ |
24 -I$(GTK_TOP)/include/glib-2.0 \ | 24 -I$(GTK_TOP)/include/glib-2.0 \ |
25 -I$(GTK_TOP)/lib/glib-2.0/include \ | 25 -I$(GTK_TOP)/lib/glib-2.0/include \ |
26 -I$(PERL_LIB_TOP)/CORE | 26 -I$(PERL_LIB_TOP)/CORE |
27 | 27 |
28 LIB_PATHS = -L$(PERL_LIB_TOP) \ | 28 LIB_PATHS = -L$(PERL_LIB_TOP) \ |
29 -L$(PERL_PLUGIN_TOP) \ | 29 -L$(PERL_PLUGIN_TOP) \ |
30 -L$(GAIM_LIB_TOP) \ | 30 -L$(PURPLE_TOP) \ |
31 -L$(GTK_TOP)/lib | 31 -L$(GTK_TOP)/lib |
32 | 32 |
33 ## | 33 ## |
34 ## SOURCES, OBJECTS | 34 ## SOURCES, OBJECTS |
35 ## | 35 ## |
78 LIBS = -lperl58 \ | 78 LIBS = -lperl58 \ |
79 -lperl \ | 79 -lperl \ |
80 -lpurple \ | 80 -lpurple \ |
81 -lglib-2.0 | 81 -lglib-2.0 |
82 | 82 |
83 include $(GAIM_COMMON_RULES) | 83 include $(PIDGIN_COMMON_RULES) |
84 | 84 |
85 %.inc: | 85 %.inc: |
86 cp fallback/$@ ./ | 86 cp fallback/$@ ./ |
87 | 87 |
88 ## | 88 ## |
91 .PHONY: all install clean | 91 .PHONY: all install clean |
92 | 92 |
93 all: $(TARGET).dll $(AUTOSPLIT) | 93 all: $(TARGET).dll $(AUTOSPLIT) |
94 | 94 |
95 install: all | 95 install: all |
96 rm -rf $(GAIM_INSTALL_PERLMOD_DIR) | 96 rm -rf $(PURPLE_INSTALL_PERLMOD_DIR) |
97 cp -R lib $(GAIM_INSTALL_PERLMOD_DIR) | 97 cp -R lib $(PURPLE_INSTALL_PERLMOD_DIR) |
98 cp $(TARGET).dll $(GAIM_INSTALL_PERLMOD_DIR) | 98 cp $(TARGET).dll $(PURPLE_INSTALL_PERLMOD_DIR) |
99 | 99 |
100 $(C_FILES): $(GAIM_CONFIG_H) | 100 $(C_FILES): $(PURPLE_CONFIG_H) |
101 | 101 |
102 $(AUTOSPLIT): | 102 $(AUTOSPLIT): |
103 mkdir -p ./lib/auto | 103 mkdir -p ./lib/auto |
104 cp Purple.pm ./lib | 104 cp Purple.pm ./lib |
105 $(PERL) -MAutoSplit -e 'autosplit("lib/Purple.pm")' | 105 $(PERL) -MAutoSplit -e 'autosplit("lib/Purple.pm")' |
106 | 106 |
107 $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(GAIM_LIBGAIM_PERL_DLL).a $(FALLBACKS) $(OBJECTS) | 107 $(TARGET).dll: $(PURPLE_DLL).a $(PURPLE_PERL_DLL).a $(FALLBACKS) $(OBJECTS) |
108 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) -o $(TARGET).dll | 108 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) -o $(TARGET).dll |
109 | 109 |
110 ## | 110 ## |
111 ## CLEAN | 111 ## CLEAN |
112 ## | 112 ## |
113 clean: | 113 clean: |
114 rm -rf $(TARGET).dll $(FALLBACKS) lib | 114 rm -rf $(TARGET).dll $(FALLBACKS) lib |
115 rm -f *.o $(C_FILES) | 115 rm -f *.o $(C_FILES) |
116 | 116 |
117 include $(GAIM_COMMON_TARGETS) | 117 include $(PIDGIN_COMMON_TARGETS) |