comparison pidgin/Makefile.mingw @ 15374:5fe8042783c1

Rename gtk/ and libgaim/ to pidgin/ and libpurple/
author Sean Egan <seanegan@gmail.com>
date Sat, 20 Jan 2007 02:32:10 +0000
parents
children 0e17470b47c2
comparison
equal deleted inserted replaced
15373:f79e0f4df793 15374:5fe8042783c1
1 #
2 # Makefile.mingw
3 #
4 # Description: Makefile for win32 (mingw) version of Gaim
5 #
6
7 GAIM_TOP := ..
8 include $(GAIM_TOP)/libgaim/win32/global.mak
9
10 NEEDED_DLLS = $(GTKSPELL_TOP)/gtkspell/libgtkspell.dll
11
12 ##
13 ## VARIABLE DEFINITIONS
14 ##
15 EXE_TARGET := gaim
16 GTKGAIM_TARGET := gtkgaim
17 EXE_NAME := $(EXE_TARGET).exe
18
19 WINAPP := -mwindows
20
21 LDFLAGS := $(WINAPP)
22
23 ##
24 ## INCLUDE PATHS
25 ##
26 LIBGAIM_INCLUDE_PATHS = \
27 -I$(GAIM_LIB_TOP) \
28 -I$(GAIM_LIB_TOP)/win32 \
29 -I$(GAIM_TOP) \
30 -I$(GTK_TOP)/include \
31 -I$(GTK_TOP)/include/glib-2.0 \
32 -I$(GTK_TOP)/lib/glib-2.0/include
33
34 INCLUDE_PATHS = \
35 $(LIBGAIM_INCLUDE_PATHS) \
36 -I$(GAIM_GTK_IDLETRACK_TOP) \
37 -I$(GAIM_GTK_TOP) \
38 -I$(GAIM_GTK_TOP)/win32 \
39 -I$(GTK_TOP)/include/gtk-2.0 \
40 -I$(GTK_TOP)/include/pango-1.0 \
41 -I$(GTK_TOP)/include/atk-1.0 \
42 -I$(GTK_TOP)/lib/gtk-2.0/include \
43 -I$(GTKSPELL_TOP) \
44 -I$(ASPELL_TOP)/include
45
46 LIB_PATHS = -L$(GTK_TOP)/lib \
47 -L$(GAIM_LIB_TOP) \
48 -L$(GAIM_GTK_TOP) \
49 -L$(GAIM_GTK_IDLETRACK_TOP) \
50 -L$(ASPELL_TOP)/lib
51
52 ##
53 ## SOURCES, OBJECTS
54 ##
55 GTKGAIM_C_SRC = \
56 gaimstock.c \
57 gtkaccount.c \
58 gtkblist.c \
59 gtkconn.c \
60 gtkconv.c \
61 gtkcellrendererexpander.c \
62 gtkcellrendererprogress.c \
63 gtkdebug.c \
64 gtkdialogs.c \
65 gtkdnd-hints.c \
66 gtkdocklet.c \
67 gtkeventloop.c \
68 gtkexpander.c \
69 gtkft.c \
70 gtkidle.c \
71 gtkimhtml.c \
72 gtkimhtmltoolbar.c \
73 gtklog.c \
74 gtkmain.c \
75 gtkmenutray.c \
76 gtknotify.c \
77 gtkplugin.c \
78 gtkpluginpref.c \
79 gtkpounce.c \
80 gtkprefs.c \
81 gtkprivacy.c \
82 gtkrequest.c \
83 gtkroomlist.c \
84 gtksavedstatuses.c \
85 gtkscrollbook.c \
86 gtksound.c \
87 gtksourceiter.c \
88 gtkstatusbox.c \
89 gtkthemes.c \
90 gtkutils.c \
91 gtkwhiteboard.c \
92 win32/MinimizeToTray.c \
93 win32/gtkdocklet-win32.c \
94 win32/gtkwin32dep.c \
95 win32/untar.c \
96 win32/wspell.c
97
98 GTKGAIM_RC_SRC = win32/gtkgaimrc.rc
99 GTKGAIM_OBJECTS = $(GTKGAIM_C_SRC:%.c=%.o) $(GTKGAIM_RC_SRC:%.rc=%.o)
100
101 EXE_RC_SRC = win32/gaimrc.rc
102 EXE_C_SRC = win32/win_gaim.c
103 EXE_OBJECTS = $(EXE_C_SRC:%.c=%.o) $(EXE_RC_SRC:%.rc=%.o)
104
105 ##
106 ## LIBRARIES
107 ##
108 LIBGAIM_LIBS = \
109 -lgaim \
110 -lglib-2.0 \
111 -lgthread-2.0 \
112 -lgobject-2.0 \
113 -lgmodule-2.0 \
114 -lintl \
115 -lws2_32 \
116 -lwinmm \
117 -lz
118
119 GTKGAIM_LIBS = \
120 $(LIBGAIM_LIBS) \
121 -lidletrack \
122 -lgtk-win32-2.0 \
123 -latk-1.0 \
124 -lpango-1.0 \
125 -lgdk-win32-2.0 \
126 -lgdk_pixbuf-2.0
127
128 include $(GAIM_COMMON_RULES)
129
130 ##
131 ## TARGET DEFINITIONS
132 ##
133 .PHONY: all install install_shallow clean clean_exe
134
135 all: $(EXE_TARGET).exe $(GTKGAIM_TARGET).dll
136 $(MAKE) -C $(GAIM_GTK_PLUGINS_TOP) -f $(GAIM_WIN32_MAKEFILE)
137
138 ./win32/gaimrc.rc: ./win32/gaimrc.rc.in $(GAIM_TOP)/VERSION
139 sed -e 's/@GAIM_VERSION@/$(GAIM_VERSION)/g' \
140 -e 's/@ORIGINAL_FILENAME@/$(EXE_NAME)/' \
141 $@.in > $@
142
143 install_shallow: $(GAIM_INSTALL_DIR) $(EXE_TARGET).exe $(GTKGAIM_TARGET).dll
144 cp $(EXE_TARGET).exe $(GTKGAIM_TARGET).dll $(GAIM_INSTALL_DIR)
145 cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR)
146
147 install: install_shallow all
148 $(MAKE) -C $(GAIM_GTK_PLUGINS_TOP) -f $(GAIM_WIN32_MAKEFILE) install
149 $(MAKE) -C $(GAIM_GTK_PIXMAPS_TOP) -f $(GAIM_WIN32_MAKEFILE) install
150 $(MAKE) -C $(GAIM_GTK_SOUNDS_TOP) -f $(GAIM_WIN32_MAKEFILE) install
151 $(MAKE) -C $(GAIM_GTK_IDLETRACK_TOP) -f $(GAIM_WIN32_MAKEFILE) install
152
153 ./win32/gtkgaimrc.rc: ./win32/gtkgaimrc.rc.in $(GAIM_TOP)/VERSION
154 sed -e 's/@GAIM_VERSION@/$(GAIM_VERSION)/g' \
155 $@.in > $@
156
157 $(EXE_OBJECTS) $(GTKGAIM_OBJECTS): $(GAIM_CONFIG_H)
158
159 $(GTKGAIM_TARGET).dll $(GTKGAIM_TARGET).dll.a: $(GAIM_LIBGAIM_DLL).a $(GAIM_IDLETRACK_DLL).a $(GTKGAIM_OBJECTS)
160 $(CC) -shared $(GTKGAIM_OBJECTS) $(LIB_PATHS) $(GTKGAIM_LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(GTKGAIM_TARGET).dll.a -o $(GTKGAIM_TARGET).dll
161
162 $(EXE_TARGET).exe: $(GAIM_CONFIG_H) $(GAIM_GTKGAIM_DLL).a $(GAIM_IDLETRACK_DLL).a $(EXE_OBJECTS)
163 $(CC) $(LDFLAGS) $(EXE_OBJECTS) -o $(EXE_TARGET).exe
164
165 $(EXE_TARGET)-portable.exe: DEFINES += -DPORTABLE
166 $(EXE_TARGET)-portable.exe: EXE_NAME := $(EXE_TARGET)-portable.exe
167 $(EXE_TARGET)-portable.exe: clean_exe $(GAIM_CONFIG_H) $(GAIM_GTKGAIM_DLL).a $(GAIM_IDLETRACK_DLL).a $(EXE_OBJECTS)
168 $(CC) $(LDFLAGS) $(EXE_OBJECTS) -o $(EXE_TARGET)-portable.exe
169 $(MAKE) -f $(GAIM_WIN32_MAKEFILE) clean_exe
170
171 ##
172 ## CLEAN RULES
173 ##
174 clean:
175 $(MAKE) -C $(GAIM_GTK_IDLETRACK_TOP) -f $(GAIM_WIN32_MAKEFILE) clean
176 $(MAKE) -C $(GAIM_GTK_PLUGINS_TOP) -f $(GAIM_WIN32_MAKEFILE) clean
177 rm -f $(GTKGAIM_OBJECTS) $(GTKGAIM_RC_SRC) $(EXE_OBJECTS) $(EXE_RC_SRC)
178 rm -f $(GTKGAIM_TARGET).dll $(GTKGAIM_TARGET).dll.a
179 rm -f $(EXE_TARGET).exe $(EXE_TARGET)-portable.exe
180
181 clean_exe:
182 rm -f $(EXE_OBJECTS) $(EXE_RC_SRC)
183
184 include $(GAIM_COMMON_TARGETS)