annotate gtk/Makefile.mingw @ 14585:bcf89a7c69db

[gaim-migrate @ 17309] Rename the gntgaim executable to gaim-text I feel like this is much more clear to end users, who will probably have no idea what gnt is. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 18 Sep 2006 06:20:36 +0000
parents 5d03b309b482
children a8c2af13b96d
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 # The Debug version of gaim is a console app, always having a console
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
21 CONSOLEAPP := -mconsole
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 LDFLAGS := $(WINAPP)
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
24
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 ## INCLUDE PATHS
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
27 ##
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
28 LIBGAIM_INCLUDE_PATHS = \
14315
8793fc8f7064 [gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14241
diff changeset
29 -I$(GAIM_LIB_TOP) \
8793fc8f7064 [gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14241
diff changeset
30 -I$(GAIM_LIB_TOP)/win32 \
14224
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
31 -I$(GAIM_TOP) \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
32 -I$(GTK_TOP)/include \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
33 -I$(GTK_TOP)/include/glib-2.0 \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
34 -I$(GTK_TOP)/lib/glib-2.0/include
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
35
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
36 INCLUDE_PATHS = \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
37 $(LIBGAIM_INCLUDE_PATHS) \
14315
8793fc8f7064 [gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14241
diff changeset
38 -I$(GAIM_GTK_IDLETRACK_TOP) \
8793fc8f7064 [gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14241
diff changeset
39 -I$(GAIM_GTK_TOP) \
8793fc8f7064 [gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14241
diff changeset
40 -I$(GAIM_GTK_TOP)/win32 \
14224
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
41 -I$(GTK_TOP)/include/gtk-2.0 \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
42 -I$(GTK_TOP)/include/pango-1.0 \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
43 -I$(GTK_TOP)/include/atk-1.0 \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
44 -I$(GTK_TOP)/lib/gtk-2.0/include \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
45 -I$(GTKSPELL_TOP) \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
46 -I$(ASPELL_TOP)/include
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
47
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
48 LIB_PATHS = -L$(GTK_TOP)/lib \
14315
8793fc8f7064 [gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14241
diff changeset
49 -L$(GAIM_LIB_TOP) \
8793fc8f7064 [gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14241
diff changeset
50 -L$(GAIM_GTK_TOP) \
8793fc8f7064 [gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14241
diff changeset
51 -L$(GAIM_GTK_IDLETRACK_TOP) \
14224
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
52 -L$(ASPELL_TOP)/lib
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
53
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 ## SOURCES, OBJECTS
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
56 ##
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
57 GTKGAIM_C_SRC = \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
58 gaimstock.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
59 gtkaccount.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
60 gtkblist.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
61 gtkconn.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
62 gtkconv.c \
14571
9366a5873ebf [gaim-migrate @ 17295]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14467
diff changeset
63 gtkcellrendererexpander.c \
14224
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
64 gtkcellrendererprogress.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
65 gtkdebug.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
66 gtkdialogs.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
67 gtkdnd-hints.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
68 gtkeventloop.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
69 gtkexpander.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
70 gtkft.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
71 gtkidle.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
72 gtkimhtml.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
73 gtkimhtmltoolbar.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
74 gtklog.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
75 gtkmain.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
76 gtkmenutray.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
77 gtknotify.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
78 gtkplugin.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
79 gtkpluginpref.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
80 gtkpounce.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
81 gtkprefs.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
82 gtkprivacy.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
83 gtkrequest.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
84 gtkroomlist.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
85 gtksavedstatuses.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
86 gtksound.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
87 gtksourceiter.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
88 gtkstatusbox.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
89 gtkthemes.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
90 gtkutils.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
91 gtkwhiteboard.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
92 win32/gtkwin32dep.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
93 win32/untar.c \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
94 win32/wspell.c
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
95
14467
fd45915c6988 [gaim-migrate @ 17183]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14447
diff changeset
96 GTKGAIM_RC_SRC = win32/gtkgaimrc.rc
fd45915c6988 [gaim-migrate @ 17183]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14447
diff changeset
97 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
98
fd45915c6988 [gaim-migrate @ 17183]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14447
diff changeset
99 EXE_RC_SRC = win32/gaimrc.rc
14315
8793fc8f7064 [gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14241
diff changeset
100 EXE_C_SRC = win32/win_gaim.c
14467
fd45915c6988 [gaim-migrate @ 17183]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14447
diff changeset
101 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
102
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 ## LIBRARIES
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
105 ##
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
106 LIBGAIM_LIBS = \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
107 -lgaim \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
108 -lglib-2.0 \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
109 -lgthread-2.0 \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
110 -lgobject-2.0 \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
111 -lgmodule-2.0 \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
112 -lintl \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
113 -lws2_32 \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
114 -lwinmm \
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
115 -lz \
14447
e88aae4f4c40 [gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14331
diff changeset
116 -liberty
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 ##
14576
5d03b309b482 [gaim-migrate @ 17300]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14572
diff changeset
132 .PHONY: all install 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
14315
8793fc8f7064 [gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14241
diff changeset
142 install: all $(GAIM_INSTALL_DIR)
8793fc8f7064 [gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14241
diff changeset
143 $(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
144 $(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
145 $(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
146 $(MAKE) -C $(GAIM_GTK_IDLETRACK_TOP) -f $(GAIM_WIN32_MAKEFILE) install
8793fc8f7064 [gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14241
diff changeset
147 cp $(EXE_TARGET).exe $(GTKGAIM_TARGET).dll $(GAIM_INSTALL_DIR)
8793fc8f7064 [gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14241
diff changeset
148 cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR)
14224
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
149
14467
fd45915c6988 [gaim-migrate @ 17183]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14447
diff changeset
150 ./win32/gtkgaimrc.rc: ./win32/gtkgaimrc.rc.in $(GAIM_TOP)/VERSION
fd45915c6988 [gaim-migrate @ 17183]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14447
diff changeset
151 sed -e 's/@GAIM_VERSION@/$(GAIM_VERSION)/g' \
fd45915c6988 [gaim-migrate @ 17183]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14447
diff changeset
152 $@.in > $@
fd45915c6988 [gaim-migrate @ 17183]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14447
diff changeset
153
fd45915c6988 [gaim-migrate @ 17183]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14447
diff changeset
154 $(EXE_OBJECTS) $(GTKGAIM_OBJECTS): $(GAIM_CONFIG_H)
14224
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
155
14315
8793fc8f7064 [gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14241
diff changeset
156 $(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
157 $(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
158
14315
8793fc8f7064 [gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14241
diff changeset
159 $(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
160 $(CC) $(LDFLAGS) $(EXE_OBJECTS) -o $(EXE_TARGET).exe
14224
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
161
14467
fd45915c6988 [gaim-migrate @ 17183]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14447
diff changeset
162 $(EXE_TARGET)-portable.exe: DEFINES += -DPORTABLE
fd45915c6988 [gaim-migrate @ 17183]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14447
diff changeset
163 $(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
164 $(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
165 $(CC) $(LDFLAGS) $(EXE_OBJECTS) -o $(EXE_TARGET)-portable.exe
fd45915c6988 [gaim-migrate @ 17183]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14447
diff changeset
166 $(MAKE) -f $(GAIM_WIN32_MAKEFILE) clean_exe
14224
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
167
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
168 ##
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
169 ## CLEAN RULES
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:
14315
8793fc8f7064 [gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14241
diff changeset
172 $(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
173 $(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
174 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
175 rm -f $(GTKGAIM_TARGET).dll $(GTKGAIM_TARGET).dll.a
fd45915c6988 [gaim-migrate @ 17183]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14447
diff changeset
176 rm -f $(EXE_TARGET).exe $(EXE_TARGET)-portable.exe
14224
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
177
ab8a105eff62 [gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
178 clean_exe:
14467
fd45915c6988 [gaim-migrate @ 17183]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14447
diff changeset
179 rm -f $(EXE_OBJECTS) $(EXE_RC_SRC)
14315
8793fc8f7064 [gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14241
diff changeset
180
8793fc8f7064 [gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14241
diff changeset
181 include $(GAIM_COMMON_TARGETS)