annotate plugins/perl/common/Makefile.mingw @ 8618:70aad91d9cb5

[gaim-migrate @ 9369] (00:55:17) JBSilvest: oh, btw, the other part of my Changelog.diff was to capitalize the first letter of the prior entry...it wasn't completely pointless (00:55:30) Luke: your diff didn't apply (00:55:37) JBSilvest: oh, right (00:55:37) Luke: cause i'd already fixed one mistake in it (00:55:44) JBSilvest: because of the other... (00:55:54) Luke: so i tried to manually merge it. i'm not very good at that (00:56:00) JBSilvest: (just consider it a future FYI ) committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Thu, 08 Apr 2004 04:43:53 +0000
parents f1fe68ef00c7
children 6dcfec6f2f7c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
1 #
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
2 # Makefile.mingw
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
3 #
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
4 # Description: Makefile for Gaim perl module.
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
5 #
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
6
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
7 TARGET = Gaim
7383
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
8 AUTOSPLIT = lib/auto/Gaim/autosplit.ix
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
9
7383
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
10 ##
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
11 ## TOOLS
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
12 ##
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
13
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
14 CC = gcc
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
15 PERL = /cygdrive/c/perl/bin/perl
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
16
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
17 ##
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
18 ## PATHS
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
19 ##
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
20
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
21 EXTUTILS := C:/perl/lib/ExtUtils
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
22 GAIM_TOP := ../../..
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
23 GTK_TOP := ../../../../win32-dev/gtk_2_0
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
24 PERL_TOP := ../../../../win32-dev/perl58
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
25 PERL_PLUGIN_TOP := ..
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
26 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
27 PERLMOD_INSTALL_DIR := $(GAIM_INSTALL_DIR)/perlmod
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
28
7383
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
29
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
30 INCLUDE_PATHS = -I. \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
31 -I$(GAIM_TOP) \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
32 -I$(GAIM_TOP)/src \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
33 -I$(GTK_TOP)/include/glib-2.0 \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
34 -I$(GTK_TOP)/lib/glib-2.0/include \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
35 -I$(PERL_TOP)/CORE
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
36
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
37 LIB_PATHS = -L$(PERL_TOP) \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
38 -L$(PERL_PLUGIN_TOP) \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
39 -L$(GAIM_TOP)/src \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
40 -L$(GTK_TOP)/lib
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
41
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
42
7383
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
43 ##
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
44 ## SOURCES, OBJECTS
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
45 ##
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
46
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
47 XS_FILES = Account.xs \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
48 BuddyList.xs \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
49 BuddyList_Buddy.xs \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
50 BuddyList_Chat.xs \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
51 BuddyList_Group.xs \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
52 Connection.xs \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
53 ConvWindow.xs \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
54 Conversation.xs \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
55 Conversation_Chat.xs \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
56 Conversation_IM.xs \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
57 Gaim.xs
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
58
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
59 FALLBACKS = const-c.inc const-xs.inc
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
60
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
61 C_FILES = $(XS_FILES:%.xs=%.c)
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
62
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
63 OBJECTS = $(C_FILES:%.c=%.o)
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
64
7383
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
65 ##
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
66 ## LIBRARIES
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
67 ##
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
68
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
69 LIBS = -lperl58 \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
70 -lperl \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
71 -lgaim \
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
72 -lglib-2.0
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
73
7383
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
74 ##
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
75 ## RULES
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
76 ##
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
77
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
78 # How to make a C file
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
79 %.o: %.c
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
80 $(CC) $(CFLAGS) $(INCLUDE_PATHS) $(DEFINES) -c $< -o $@
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
81
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
82 # How to make a XS file
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
83 %.c: %.xs
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
84 $(PERL) $(EXTUTILS)/xsubpp -typemap $(EXTUTILS)/typemap -typemap typemap $< > $@
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
85
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
86 %.inc:
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
87 cp fallback/$@ ./
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
88
7383
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
89 ##
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
90 ## TARGETS
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
91 ##
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
92
7383
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
93 .PHONY: all clean
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
94
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
95 all: $(TARGET).dll $(AUTOSPLIT)
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
96
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
97 install:
7383
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
98 rm -rf $(PERLMOD_INSTALL_DIR)
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
99 cp -R lib $(PERLMOD_INSTALL_DIR)
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
100 cp $(TARGET).dll $(PERLMOD_INSTALL_DIR)
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
101
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
102 $(AUTOSPLIT): Gaim.pm
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
103 mkdir -p ./lib/auto
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
104 cp Gaim.pm ./lib
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
105 $(PERL) -MAutoSplit -e 'autosplit("lib/Gaim.pm")'
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
106
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
107 $(TARGET).dll: $(FALLBACKS) $(OBJECTS)
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
108 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) -o $(TARGET).dll
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
109
7383
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
110 ##
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
111 ## CLEAN
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
112 ##
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
113
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
114 clean:
7383
f1fe68ef00c7 [gaim-migrate @ 7978]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
115 rm -rf *.o $(TARGET).dll $(FALLBACKS) lib