Mercurial > pidgin
annotate src/Makefile.mingw @ 3978:4aae287ea06d
[gaim-migrate @ 4166]
comment some things
committer: Tailor Script <tailor@pidgin.im>
| author | Luke Schierer <lschiere@pidgin.im> |
|---|---|
| date | Sun, 17 Nov 2002 00:55:55 +0000 |
| parents | 020345f97ceb |
| children | e0f868943dee |
| 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 |
|
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
18 GTKSPELL_TOP := ../../win32-dev/gtkspell-2.0.2 |
|
3905
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
19 IDLETRACKER_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 |
| 35 LDFLAGS = -mwindows | |
| 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) \ |
|
3905
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
53 -I$(IDLETRACKER_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) \ | |
|
3905
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
69 -L$(IDLETRACKER_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 \ |
|
3969
020345f97ceb
[gaim-migrate @ 4153]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3947
diff
changeset
|
72 -L$(GTKSPELL_TOP)/gtkspell \ |
|
020345f97ceb
[gaim-migrate @ 4153]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3947
diff
changeset
|
73 -L$(MINGW_PLUS_DIR) |
| 3638 | 74 |
| 75 | |
| 76 ## | |
| 77 ## SOURCES, OBJECTS | |
| 78 ## | |
| 79 | |
| 80 SOUND_H_FILES = $(GAIM_TOP)/sounds/BuddyArrive.h \ | |
| 81 $(GAIM_TOP)/sounds/BuddyLeave.h \ | |
| 82 $(GAIM_TOP)/sounds/Receive.h \ | |
| 83 $(GAIM_TOP)/sounds/RedAlert.h \ | |
| 84 $(GAIM_TOP)/sounds/Send.h | |
| 85 | |
| 86 HEADER_DEPS = $(SOUND_H_FILES) | |
| 87 | |
|
3969
020345f97ceb
[gaim-migrate @ 4153]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3947
diff
changeset
|
88 LIB_DEPS = $(MINGW_PLUS_DIR)/user32plus.lib |
|
020345f97ceb
[gaim-migrate @ 4153]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3947
diff
changeset
|
89 |
| 3638 | 90 DLL_C_SRC = aim.c \ |
| 91 about.c \ | |
| 92 away.c \ | |
| 93 browser.c \ | |
| 94 buddy.c \ | |
| 95 buddy_chat.c \ | |
| 96 conversation.c \ | |
| 97 core.c \ | |
| 98 dialogs.c \ | |
| 99 ft.c \ | |
| 100 gaimrc.c \ | |
| 101 gtkimhtml.c \ | |
| 102 html.c \ | |
| 103 idle.c \ | |
| 104 list.c \ | |
| 105 md5.c \ | |
| 106 module.c \ | |
| 107 multi.c \ | |
| 108 perl.c \ | |
| 109 prefs.c \ | |
| 110 proxy.c \ | |
| 111 prpl.c \ | |
| 112 server.c \ | |
| 113 sound.c \ | |
| 114 util.c \ | |
| 115 win32/win32dep.c \ | |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
116 win32/MinimizeToTray.c \ |
|
3947
7cb474d8d613
[gaim-migrate @ 4126]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3905
diff
changeset
|
117 win32/libc_interface.c \ |
|
7cb474d8d613
[gaim-migrate @ 4126]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3905
diff
changeset
|
118 win32/systray.c |
| 3638 | 119 |
| 120 RC_SRC = win32/gaimrc.rc | |
| 121 | |
| 122 EXE_C_SRC = win_aim.c | |
| 123 | |
| 124 DLL_OBJECTS = $(DLL_C_SRC:%.c=%.o) | |
| 125 | |
| 126 EXE_OBJECTS = $(EXE_C_SRC:%.c=%.o) $(RC_SRC:%.rc=%.o) | |
| 127 | |
| 128 ## | |
| 129 ## LIBRARIES | |
| 130 ## | |
| 131 | |
|
3905
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
132 DLL_LIBS = -lgtkspell \ |
|
3853
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
133 -lgtk-win32-2.0 \ |
| 3638 | 134 -lpango-1.0 \ |
| 135 -lglib-2.0 \ | |
| 136 -lgdk-win32-2.0 \ | |
| 137 -lgobject-2.0 \ | |
| 138 -lintl \ | |
| 139 -lgmodule-2.0 \ | |
| 140 -lgdk_pixbuf-2.0 \ | |
| 141 -lws2_32 \ | |
| 142 -liberty \ | |
| 143 -lwinmm \ | |
|
3969
020345f97ceb
[gaim-migrate @ 4153]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3947
diff
changeset
|
144 -luser32plus \ |
|
3853
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
145 -lperl56 \ |
|
3905
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
146 -laspell-15 \ |
|
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
147 -lIdleTrac |
|
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
148 |
| 3638 | 149 |
| 150 | |
| 151 EXE_LIBS = -lgaim -lglib-2.0 | |
| 152 | |
| 153 ## | |
| 154 ## RULES | |
| 155 ## | |
| 156 | |
| 157 # Make Sound headers | |
| 158 $(GAIM_TOP)/sounds/%.h: | |
| 159 $(MAKE) -C $(GAIM_TOP)/sounds -f Makefile.mingw $(@F) | |
| 160 | |
| 161 # How to make a C file | |
| 162 %.o: %.c | |
| 163 $(CC) $(CFLAGS) $(INCLUDE_PATHS) $(DEFINES) -c $< -o $@ | |
| 164 | |
| 165 # How to make an RC file | |
| 166 %.o: %.rc | |
| 167 windres -i $< -o $@ | |
| 168 | |
| 169 ## | |
| 170 ## TARGET DEFINITIONS | |
| 171 ## | |
| 172 | |
| 173 .PHONY: all clean | |
| 174 | |
| 175 all: $(TARGET).exe $(TARGET).dll | |
| 176 | |
| 177 install: | |
| 178 cp $(GAIM_SRC)/gaim.exe $(GAIM_SRC)/gaim.dll $(GAIM_INSTALL_DIR) | |
| 179 | |
|
3905
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
180 $(GAIM_SRC)/win32/IdleTracker/IdleTrac.dll: |
|
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
181 $(MAKE) -C $(GAIM_SRC)/win32/IdleTracker -f Makefile.mingw |
| 3638 | 182 |
| 183 # | |
|
3969
020345f97ceb
[gaim-migrate @ 4153]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3947
diff
changeset
|
184 # BUILD DEPS |
|
020345f97ceb
[gaim-migrate @ 4153]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3947
diff
changeset
|
185 # |
|
020345f97ceb
[gaim-migrate @ 4153]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3947
diff
changeset
|
186 |
|
020345f97ceb
[gaim-migrate @ 4153]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3947
diff
changeset
|
187 $(MINGW_PLUS_DIR)/user32plus.lib: $(MINGW_PLUS_DIR)/user32plus.def |
|
020345f97ceb
[gaim-migrate @ 4153]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3947
diff
changeset
|
188 $(MAKE) -C $(MINGW_PLUS_DIR) -f Makefile.mingw user32plus.lib |
|
020345f97ceb
[gaim-migrate @ 4153]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3947
diff
changeset
|
189 |
|
020345f97ceb
[gaim-migrate @ 4153]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3947
diff
changeset
|
190 # |
| 3638 | 191 # BUILD DLL |
| 192 # | |
| 193 | |
| 194 $(TARGET).def: $(HEADER_DEPS) $(DLL_OBJECTS) | |
| 195 dlltool -D $(TARGET).dll -z $(TARGET).def --export-all-symbols \ | |
| 196 --exclude-symbols WinMain@16 $^ | |
| 197 | |
|
3969
020345f97ceb
[gaim-migrate @ 4153]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3947
diff
changeset
|
198 $(TARGET).base: $(HEADER_DEPS) $(LIB_DEPS) $(DLL_OBJECTS) |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
199 $(CC) -mdll $(LDFLAGS) -o junk.tmp -Wl,--base-file,$@ $(DLL_OBJECTS) $(LIB_PATHS) $(DLL_LIBS) |
| 3638 | 200 rm -rf junk.tmp |
| 201 | |
| 202 $(TARGET).exp: $(TARGET).base $(TARGET).def | |
| 203 dlltool --dllname $(TARGET).dll --base-file $(TARGET).base \ | |
| 204 --output-exp $(TARGET).exp --def $(TARGET).def | |
| 205 | |
|
3969
020345f97ceb
[gaim-migrate @ 4153]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3947
diff
changeset
|
206 $(TARGET).dll: $(HEADER_DEPS) $(LIB_DEPS) $(DLL_OBJECTS) $(GAIM_SRC)/win32/IdleTracker/IdleTrac.dll $(TARGET).exp |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
207 $(CC) -mdll $(LDFLAGS) -o $(TARGET).dll $(DLL_OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(DLL_LIBS) |
| 3638 | 208 rm -rf $(TARGET).exp $(TARGET).def $(TARGET).base |
| 209 | |
| 210 $(TARGET).lib: $(TARGET).def | |
|
3969
020345f97ceb
[gaim-migrate @ 4153]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3947
diff
changeset
|
211 dlltool -D $(TARGET).dll -d $(TARGET).def -l $(TARGET).lib |
| 3638 | 212 |
| 213 # | |
| 214 # BUILD EXE | |
| 215 # | |
| 216 | |
| 217 $(TARGET).exe: $(TARGET).lib $(EXE_OBJECTS) | |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
218 $(CC) $(LDFLAGS) $(EXE_OBJECTS) $(LIB_PATHS) $(EXE_LIBS) -o $(TARGET).exe |
| 3638 | 219 |
| 220 ## | |
| 221 ## CLEAN RULES | |
| 222 ## | |
| 223 | |
| 224 clean: | |
| 225 $(MAKE) -C $(GAIM_TOP)/sounds -f Makefile.mingw clean | |
|
3905
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
226 $(MAKE) -C $(GAIM_SRC)/win32/IdleTracker -f Makefile.mingw clean |
| 3638 | 227 rm -rf *.o ./win32/*.o |
| 228 rm -rf $(TARGET).dll | |
| 229 rm -rf $(TARGET).lib | |
| 230 rm -rf $(TARGET).exe | |
| 231 | |
| 232 |
