annotate plugins/perl/Makefile.mingw @ 6063:5239a3b4ab33

[gaim-migrate @ 6513] clean up a lot of compiler warnings. Hopefully I didn't break anything too badly. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 08 Jul 2003 06:11:49 +0000
parents bb7723f0b4b9
children b931dcf6febc
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 := ../..
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
13 PERL_LIB_DIR := ../../../win32-dev/perl56
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
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
67 C_SRC = perl.c
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
68
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
69
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
70 OBJECTS = $(C_SRC:%.c=%.o)
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
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 ## LIBRARIES
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
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
77 LIBS = -lgtk-win32-2.0 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
78 -lglib-2.0 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
79 -lgdk-win32-2.0 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
80 -lgmodule-2.0 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
81 -lgobject-2.0 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
82 -lws2_32 \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
83 -lintl \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
84 -lgaim \
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
85 -lperl56
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
86
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
87
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 ## RULES
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
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
92 # How to make a C file
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 %.o: %.c
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
95 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $<
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
96
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
97 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
98 ## TARGET DEFINITIONS
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
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
101 .PHONY: all clean
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 all: $(TARGET).dll
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 install:
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
106 cp $(TARGET).dll $(DLL_INSTALL_DIR)
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
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
109 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
110 ## BUILD Dependencies
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 $(GAIM_TOP)/src/gaim.lib:
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
114 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib
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 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
117 ## BUILD DLL
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
5932
bb7723f0b4b9 [gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5467
diff changeset
120 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib
bb7723f0b4b9 [gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5467
diff changeset
121 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll
5467
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
122
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
123
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
124 ##
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
125 ## CLEAN RULES
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:
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
129 rm -rf *.o
95e1e9ed82cc [gaim-migrate @ 5859]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff changeset
130 rm -rf $(TARGET).dll