annotate gtk/Makefile.mingw @ 14942:77ca54a3af31

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