Mercurial > pidgin
annotate src/Makefile.mingw @ 4683:dfd1fe914da2
[gaim-migrate @ 4994]
Fix compiling when audiofile.h exists outside the main include directories.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Sun, 09 Mar 2003 23:54:36 +0000 |
| parents | f7f0c7fef6be |
| children | a912a14f99cf |
| rev | line source |
|---|---|
| 3638 | 1 # |
| 2 # Makefile.mingw | |
| 3 # | |
| 4 # Description: Makefile for win32 (mingw) version of Gaim | |
| 5 # | |
| 6 | |
| 7 # | |
| 8 # PATHS | |
| 9 # | |
| 10 | |
| 11 INCLUDE_DIR := . | |
| 12 GTK_TOP := ../../win32-dev/gtk_2_0 | |
| 13 GAIM_TOP := .. | |
| 14 GAIM_SRC := . | |
| 15 PERL_LIB_DIR := ../../win32-dev/perl56 | |
| 16 PERL_INCLUDE := $(PERL_LIB_DIR)/CORE | |
|
3853
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
17 ASPELL_TOP := ../../win32-dev/aspell-15 |
|
4127
00c4040f630f
[gaim-migrate @ 4344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4042
diff
changeset
|
18 GTKSPELL_TOP := ../../win32-dev/gtkspell-2.0.3 |
|
4536
ba99d30afc14
[gaim-migrate @ 4815]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4524
diff
changeset
|
19 IDLETRACK_TOP := $(GAIM_TOP)/src/win32/IdleTracker |
| 3638 | 20 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir |
|
3969
020345f97ceb
[gaim-migrate @ 4153]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3947
diff
changeset
|
21 MINGW_PLUS_DIR := $(GAIM_SRC)/win32/mingw_plus |
| 3638 | 22 |
| 23 ## | |
| 24 ## VARIABLE DEFINITIONS | |
| 25 ## | |
| 26 | |
| 27 TARGET = gaim | |
| 28 | |
| 29 # Compiler and Linker Options | |
| 30 | |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
31 CFLAGS = |
| 3638 | 32 |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
33 DEFINES = |
| 3638 | 34 |
|
4524
78403c4f62dc
[gaim-migrate @ 4802]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4523
diff
changeset
|
35 LDFLAGS = -mconsole -mwindows |
| 3638 | 36 |
| 37 #-mconsole | |
| 38 #-mwindows | |
| 39 | |
| 40 ## | |
| 41 ## INCLUDE MAKEFILES | |
| 42 ## | |
| 43 | |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
44 include $(GAIM_TOP)/src/win32/global.mak |
| 3638 | 45 |
| 46 ## | |
| 47 ## INCLUDE PATHS | |
| 48 ## | |
| 49 | |
| 50 INCLUDE_PATHS = -I$(INCLUDE_DIR) \ | |
| 51 -I$(INCLUDE_DIR)/win32 \ | |
|
3969
020345f97ceb
[gaim-migrate @ 4153]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3947
diff
changeset
|
52 -I$(MINGW_PLUS_DIR) \ |
|
4536
ba99d30afc14
[gaim-migrate @ 4815]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4524
diff
changeset
|
53 -I$(IDLETRACK_TOP) \ |
| 3638 | 54 -I$(GAIM_TOP) \ |
| 55 -I$(GTK_TOP)/include \ | |
| 56 -I$(GTK_TOP)/include/gtk-2.0 \ | |
| 57 -I$(GTK_TOP)/include/glib-2.0 \ | |
| 58 -I$(GTK_TOP)/include/pango-1.0 \ | |
| 59 -I$(GTK_TOP)/include/atk-1.0 \ | |
| 60 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 61 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
|
3853
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
62 -I$(PERL_INCLUDE) \ |
|
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
63 -I$(ASPELL_TOP)/include \ |
|
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
64 -I$(GTKSPELL_TOP) |
| 3638 | 65 |
| 66 | |
| 67 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
| 68 -L$(GAIM_SRC) \ | |
|
4536
ba99d30afc14
[gaim-migrate @ 4815]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4524
diff
changeset
|
69 -L$(IDLETRACK_TOP) \ |
|
3853
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
70 -L$(PERL_LIB_DIR) \ |
|
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
71 -L$(ASPELL_TOP)/lib \ |
|
3984
e0f868943dee
[gaim-migrate @ 4175]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3969
diff
changeset
|
72 -L$(GTKSPELL_TOP)/gtkspell |
| 3638 | 73 |
| 74 ## | |
| 75 ## SOURCES, OBJECTS | |
| 76 ## | |
| 77 | |
|
4536
ba99d30afc14
[gaim-migrate @ 4815]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4524
diff
changeset
|
78 DLL_C_SRC = about.c \ |
| 3638 | 79 away.c \ |
| 80 browser.c \ | |
| 81 buddy.c \ | |
| 82 buddy_chat.c \ | |
| 83 conversation.c \ | |
| 84 core.c \ | |
| 85 dialogs.c \ | |
|
4363
65d98b565fbe
[gaim-migrate @ 4629]
Christian Hammond <chipx86@chipx86.com>
parents:
4359
diff
changeset
|
86 dnd-hints.c \ |
| 3638 | 87 ft.c \ |
|
4556
f7f0c7fef6be
[gaim-migrate @ 4836]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4536
diff
changeset
|
88 gaim-disclosure.c \ |
| 3638 | 89 gaimrc.c \ |
|
4359
5fb47ec9bfe4
[gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
4300
diff
changeset
|
90 gtkconv.c \ |
|
4363
65d98b565fbe
[gaim-migrate @ 4629]
Christian Hammond <chipx86@chipx86.com>
parents:
4359
diff
changeset
|
91 gtkcellrendererprogress.c \ |
|
4523
64d03b6a0864
[gaim-migrate @ 4801]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4489
diff
changeset
|
92 gtkft.c \ |
| 3638 | 93 gtkimhtml.c \ |
|
4359
5fb47ec9bfe4
[gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
4300
diff
changeset
|
94 gtkutils.c \ |
| 3638 | 95 html.c \ |
| 96 idle.c \ | |
| 97 list.c \ | |
|
4191
c626503ac2fc
[gaim-migrate @ 4422]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4127
diff
changeset
|
98 log.c \ |
| 4489 | 99 main.c \ |
| 3638 | 100 md5.c \ |
| 101 module.c \ | |
| 102 multi.c \ | |
| 103 perl.c \ | |
| 104 prefs.c \ | |
| 105 proxy.c \ | |
| 106 prpl.c \ | |
| 107 server.c \ | |
| 108 sound.c \ | |
|
4363
65d98b565fbe
[gaim-migrate @ 4629]
Christian Hammond <chipx86@chipx86.com>
parents:
4359
diff
changeset
|
109 stock.c \ |
|
4300
b191b8080ebc
[gaim-migrate @ 4554]
Christian Hammond <chipx86@chipx86.com>
parents:
4191
diff
changeset
|
110 themes.c \ |
| 3638 | 111 util.c \ |
| 112 win32/win32dep.c \ | |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
113 win32/MinimizeToTray.c \ |
|
3947
7cb474d8d613
[gaim-migrate @ 4126]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3905
diff
changeset
|
114 win32/libc_interface.c \ |
|
4042
a3ec0146c73e
[gaim-migrate @ 4250]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4027
diff
changeset
|
115 win32/systray.c |
| 3638 | 116 |
| 117 RC_SRC = win32/gaimrc.rc | |
| 118 | |
| 4489 | 119 EXE_C_SRC = win_gaim.c |
| 3638 | 120 |
| 121 DLL_OBJECTS = $(DLL_C_SRC:%.c=%.o) | |
| 122 | |
| 123 EXE_OBJECTS = $(EXE_C_SRC:%.c=%.o) $(RC_SRC:%.rc=%.o) | |
| 124 | |
| 125 ## | |
| 126 ## LIBRARIES | |
| 127 ## | |
| 128 | |
|
3905
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
129 DLL_LIBS = -lgtkspell \ |
|
3853
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
130 -lgtk-win32-2.0 \ |
| 3638 | 131 -lpango-1.0 \ |
| 132 -lglib-2.0 \ | |
| 133 -lgdk-win32-2.0 \ | |
| 134 -lgobject-2.0 \ | |
| 135 -lintl \ | |
| 136 -lgmodule-2.0 \ | |
| 137 -lgdk_pixbuf-2.0 \ | |
| 138 -lws2_32 \ | |
| 139 -liberty \ | |
| 140 -lwinmm \ | |
|
3853
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
141 -lperl56 \ |
|
3905
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
142 -laspell-15 \ |
|
4536
ba99d30afc14
[gaim-migrate @ 4815]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4524
diff
changeset
|
143 -lidletrack |
|
3905
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
144 |
| 3638 | 145 |
| 146 | |
| 147 EXE_LIBS = -lgaim -lglib-2.0 | |
| 148 | |
| 149 ## | |
| 150 ## RULES | |
| 151 ## | |
| 152 | |
| 153 # How to make a C file | |
| 154 %.o: %.c | |
| 155 $(CC) $(CFLAGS) $(INCLUDE_PATHS) $(DEFINES) -c $< -o $@ | |
| 156 | |
| 157 # How to make an RC file | |
| 158 %.o: %.rc | |
| 159 windres -i $< -o $@ | |
| 160 | |
| 161 ## | |
| 162 ## TARGET DEFINITIONS | |
| 163 ## | |
| 164 | |
| 165 .PHONY: all clean | |
| 166 | |
| 167 all: $(TARGET).exe $(TARGET).dll | |
| 168 | |
| 169 install: | |
| 170 cp $(GAIM_SRC)/gaim.exe $(GAIM_SRC)/gaim.dll $(GAIM_INSTALL_DIR) | |
| 171 | |
|
4536
ba99d30afc14
[gaim-migrate @ 4815]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4524
diff
changeset
|
172 $(IDLETRACK_TOP)/idletrack.dll: |
|
ba99d30afc14
[gaim-migrate @ 4815]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4524
diff
changeset
|
173 $(MAKE) -C $(IDLETRACK_TOP) -f Makefile.mingw |
| 3638 | 174 |
| 175 # | |
| 176 # BUILD DLL | |
| 177 # | |
| 178 | |
|
4018
1e9dbcdf8455
[gaim-migrate @ 4218]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3984
diff
changeset
|
179 $(TARGET).def: $(DLL_OBJECTS) |
| 3638 | 180 dlltool -D $(TARGET).dll -z $(TARGET).def --export-all-symbols \ |
| 181 --exclude-symbols WinMain@16 $^ | |
| 182 | |
|
4018
1e9dbcdf8455
[gaim-migrate @ 4218]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3984
diff
changeset
|
183 $(TARGET).base: $(DLL_OBJECTS) |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
184 $(CC) -mdll $(LDFLAGS) -o junk.tmp -Wl,--base-file,$@ $(DLL_OBJECTS) $(LIB_PATHS) $(DLL_LIBS) |
| 3638 | 185 rm -rf junk.tmp |
| 186 | |
| 187 $(TARGET).exp: $(TARGET).base $(TARGET).def | |
| 188 dlltool --dllname $(TARGET).dll --base-file $(TARGET).base \ | |
| 189 --output-exp $(TARGET).exp --def $(TARGET).def | |
| 190 | |
|
4536
ba99d30afc14
[gaim-migrate @ 4815]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4524
diff
changeset
|
191 $(TARGET).dll: $(DLL_OBJECTS) $(IDLETRACK_TOP)/idletrack.dll $(TARGET).exp |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
192 $(CC) -mdll $(LDFLAGS) -o $(TARGET).dll $(DLL_OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(DLL_LIBS) |
| 3638 | 193 rm -rf $(TARGET).exp $(TARGET).def $(TARGET).base |
| 194 | |
| 195 $(TARGET).lib: $(TARGET).def | |
|
3969
020345f97ceb
[gaim-migrate @ 4153]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3947
diff
changeset
|
196 dlltool -D $(TARGET).dll -d $(TARGET).def -l $(TARGET).lib |
| 3638 | 197 |
| 198 # | |
| 199 # BUILD EXE | |
| 200 # | |
| 201 | |
| 202 $(TARGET).exe: $(TARGET).lib $(EXE_OBJECTS) | |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
203 $(CC) $(LDFLAGS) $(EXE_OBJECTS) $(LIB_PATHS) $(EXE_LIBS) -o $(TARGET).exe |
| 3638 | 204 |
| 205 ## | |
| 206 ## CLEAN RULES | |
| 207 ## | |
| 208 | |
| 209 clean: | |
|
4536
ba99d30afc14
[gaim-migrate @ 4815]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4524
diff
changeset
|
210 $(MAKE) -C $(IDLETRACK_TOP) -f Makefile.mingw clean |
| 3638 | 211 rm -rf *.o ./win32/*.o |
| 212 rm -rf $(TARGET).dll | |
| 213 rm -rf $(TARGET).lib | |
| 214 rm -rf $(TARGET).exe | |
| 215 | |
| 216 |
