annotate plugins/perl/Makefile.mingw @ 7251:bdf0e5f71124

[gaim-migrate @ 7828] it bothers me that this fixes it, but this fixes the scrolling in the history plugin committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Mon, 13 Oct 2003 21:51:53 +0000
parents 5aeba37b303c
children f05d0a317f45
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5467
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
1 #
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
2 # Makefile.mingw
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
3 #
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
4 # Description: Makefile for perl plugin loader plugin.
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
5 #
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
6
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
7 #
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
8 # PATHS
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
9 #
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
10
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
11 GTK_TOP := ../../../win32-dev/gtk_2_0
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
12 GAIM_TOP := ../..
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6576
diff changeset
13 PERL_LIB_DIR := ../../../win32-dev/perl58
5467
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
14 PERL_INCLUDE := $(PERL_LIB_DIR)/CORE
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
16 DLL_INSTALL_DIR := $(GAIM_INSTALL_DIR)/plugins
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
17
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
18 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
19 ## VARIABLE DEFINITIONS
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
20 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
21
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
22 TARGET = perl
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
23
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
24 CC = gcc.exe
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
25
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
26 # Compiler Options
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
27
5932
bb7723f0b4b9 [gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5467
diff changeset
28 CFLAGS =
5467
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
29
5932
bb7723f0b4b9 [gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5467
diff changeset
30 DEFINES =
5467
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
31
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
32 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
33 ## INCLUDE MAKEFILES
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
34 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
35
5932
bb7723f0b4b9 [gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5467
diff changeset
36 include $(GAIM_TOP)/src/win32/global.mak
5467
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
37
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
38 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
39 ## INCLUDE PATHS
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
40 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
41
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
42 INCLUDE_PATHS += -I. \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
43 -I$(GAIM_TOP) \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
44 -I$(GAIM_TOP)/src \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
45 -I$(GAIM_TOP)/src/win32 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
46 -I$(GTK_TOP)/include \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
47 -I$(GTK_TOP)/include/gtk-2.0 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
48 -I$(GTK_TOP)/include/glib-2.0 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
49 -I$(GTK_TOP)/include/pango-1.0 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
50 -I$(GTK_TOP)/include/atk-1.0 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
51 -I$(GTK_TOP)/lib/glib-2.0/include \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
52 -I$(GTK_TOP)/lib/gtk-2.0/include \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
53 -I$(PERL_INCLUDE)
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
54
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
55
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
56
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
57
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
58 LIB_PATHS = -L$(GTK_TOP)/lib \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
59 -L$(GAIM_TOP)/src \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
60 -L$(PERL_LIB_DIR)
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
61
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
62
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
63 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
64 ## SOURCES, OBJECTS
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
65 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
66
6576
b931dcf6febc [gaim-migrate @ 7098]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5932
diff changeset
67 C_SRC = perl.c \
b931dcf6febc [gaim-migrate @ 7098]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5932
diff changeset
68 perl-common.c \
b931dcf6febc [gaim-migrate @ 7098]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5932
diff changeset
69 perl-handlers.c
5467
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
70
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
71
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
72 OBJECTS = $(C_SRC:%.c=%.o)
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
73
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
74
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
75 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
76 ## LIBRARIES
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
77 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
78
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
79 LIBS = -lgtk-win32-2.0 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
80 -lglib-2.0 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
81 -lgdk-win32-2.0 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
82 -lgmodule-2.0 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
83 -lgobject-2.0 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
84 -lws2_32 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
85 -lintl \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
86 -lgaim \
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6576
diff changeset
87 -lperl58
5467
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
88
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
89
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
90 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
91 ## RULES
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
92 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
93
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
94 # How to make a C file
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
95
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
96 %.o: %.c
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
97 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $<
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
98
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
99 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
100 ## TARGET DEFINITIONS
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
101 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
102
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
103 .PHONY: all clean
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
104
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
105 all: $(TARGET).dll
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6576
diff changeset
106 $(MAKE) -C ./common -f Makefile.mingw
5467
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
107
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
108 install:
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
109 cp $(TARGET).dll $(DLL_INSTALL_DIR)
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6576
diff changeset
110 $(MAKE) -C ./common -f Makefile.mingw install
5467
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
111
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
112 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
113 ## BUILD Dependencies
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
114 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
115
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
116 $(GAIM_TOP)/src/gaim.lib:
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
117 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
118
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
119 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
120 ## BUILD DLL
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
121 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
122
5932
bb7723f0b4b9 [gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5467
diff changeset
123 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6576
diff changeset
124 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--export-all-symbols -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll
5467
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
125
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
126
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
127 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
128 ## CLEAN RULES
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
129 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
130
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
131 clean:
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
132 rm -rf *.o
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6576
diff changeset
133 rm -rf $(TARGET).dll $(TARGET).lib
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6576
diff changeset
134 $(MAKE) -C ./common -f Makefile.mingw clean