Mercurial > pidgin
annotate src/Makefile.mingw @ 3913:419bf1bc8fa2
[gaim-migrate @ 4072]
This should fix the bug where closing the debug window with the "X"
would not uncheck the preference for it.
Previously, it got unchecked then rechecked. The line I'm removing used
to be "misc_options_new ^= OPT_MISC_DEBUG;", which I guess is a hold
over or something of when prefs had that apply button, maybe.
I dunno. I think this should be good...
Roof.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Thu, 07 Nov 2002 03:34:46 +0000 |
| parents | 3e508dd31b76 |
| children | 7cb474d8d613 |
| 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 |
| 21 | |
| 22 ## | |
| 23 ## VARIABLE DEFINITIONS | |
| 24 ## | |
| 25 | |
| 26 TARGET = gaim | |
| 27 | |
| 28 # Compiler and Linker Options | |
| 29 | |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
30 CFLAGS = |
| 3638 | 31 |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
32 DEFINES = |
| 3638 | 33 |
| 34 LDFLAGS = -mwindows | |
| 35 | |
| 36 #-mconsole | |
| 37 #-mwindows | |
| 38 | |
| 39 ## | |
| 40 ## INCLUDE MAKEFILES | |
| 41 ## | |
| 42 | |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
43 include $(GAIM_TOP)/src/win32/global.mak |
| 3638 | 44 |
| 45 ## | |
| 46 ## INCLUDE PATHS | |
| 47 ## | |
| 48 | |
| 49 INCLUDE_PATHS = -I$(INCLUDE_DIR) \ | |
| 50 -I$(INCLUDE_DIR)/win32 \ | |
|
3905
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
51 -I$(IDLETRACKER_TOP) \ |
| 3638 | 52 -I$(GAIM_TOP) \ |
| 53 -I$(GTK_TOP)/include \ | |
| 54 -I$(GTK_TOP)/include/gtk-2.0 \ | |
| 55 -I$(GTK_TOP)/include/glib-2.0 \ | |
| 56 -I$(GTK_TOP)/include/pango-1.0 \ | |
| 57 -I$(GTK_TOP)/include/atk-1.0 \ | |
| 58 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 59 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
|
3853
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
60 -I$(PERL_INCLUDE) \ |
|
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
61 -I$(ASPELL_TOP)/include \ |
|
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
62 -I$(GTKSPELL_TOP) |
| 3638 | 63 |
| 64 | |
| 65 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
| 66 -L$(GAIM_SRC) \ | |
|
3905
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
67 -L$(IDLETRACKER_TOP) \ |
|
3853
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
68 -L$(PERL_LIB_DIR) \ |
|
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
69 -L$(ASPELL_TOP)/lib \ |
|
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
70 -L$(GTKSPELL_TOP)/gtkspell |
| 3638 | 71 |
| 72 | |
| 73 ## | |
| 74 ## SOURCES, OBJECTS | |
| 75 ## | |
| 76 | |
| 77 SOUND_H_FILES = $(GAIM_TOP)/sounds/BuddyArrive.h \ | |
| 78 $(GAIM_TOP)/sounds/BuddyLeave.h \ | |
| 79 $(GAIM_TOP)/sounds/Receive.h \ | |
| 80 $(GAIM_TOP)/sounds/RedAlert.h \ | |
| 81 $(GAIM_TOP)/sounds/Send.h | |
| 82 | |
| 83 HEADER_DEPS = $(SOUND_H_FILES) | |
| 84 | |
| 85 DLL_C_SRC = aim.c \ | |
| 86 about.c \ | |
| 87 away.c \ | |
| 88 browser.c \ | |
| 89 buddy.c \ | |
| 90 buddy_chat.c \ | |
| 91 conversation.c \ | |
| 92 core.c \ | |
| 93 dialogs.c \ | |
| 94 ft.c \ | |
| 95 gaimrc.c \ | |
| 96 gtkimhtml.c \ | |
| 97 html.c \ | |
| 98 idle.c \ | |
| 99 list.c \ | |
| 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 \ | |
| 109 util.c \ | |
| 110 win32/win32dep.c \ | |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
111 win32/MinimizeToTray.c \ |
|
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
112 win32/libc_interface.c |
| 3638 | 113 |
| 114 RC_SRC = win32/gaimrc.rc | |
| 115 | |
| 116 EXE_C_SRC = win_aim.c | |
| 117 | |
| 118 DLL_OBJECTS = $(DLL_C_SRC:%.c=%.o) | |
| 119 | |
| 120 EXE_OBJECTS = $(EXE_C_SRC:%.c=%.o) $(RC_SRC:%.rc=%.o) | |
| 121 | |
| 122 ## | |
| 123 ## LIBRARIES | |
| 124 ## | |
| 125 | |
|
3905
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
126 DLL_LIBS = -lgtkspell \ |
|
3853
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
127 -lgtk-win32-2.0 \ |
| 3638 | 128 -lpango-1.0 \ |
| 129 -lglib-2.0 \ | |
| 130 -lgdk-win32-2.0 \ | |
| 131 -lgobject-2.0 \ | |
| 132 -lintl \ | |
| 133 -lgmodule-2.0 \ | |
| 134 -lgdk_pixbuf-2.0 \ | |
| 135 -lws2_32 \ | |
| 136 -liberty \ | |
| 137 -lwinmm \ | |
|
3853
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
138 -lperl56 \ |
|
3905
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
139 -laspell-15 \ |
|
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
140 -lIdleTrac |
|
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
141 |
| 3638 | 142 |
| 143 | |
| 144 EXE_LIBS = -lgaim -lglib-2.0 | |
| 145 | |
| 146 ## | |
| 147 ## RULES | |
| 148 ## | |
| 149 | |
| 150 # Make Sound headers | |
| 151 $(GAIM_TOP)/sounds/%.h: | |
| 152 $(MAKE) -C $(GAIM_TOP)/sounds -f Makefile.mingw $(@F) | |
| 153 | |
| 154 # How to make a C file | |
| 155 %.o: %.c | |
| 156 $(CC) $(CFLAGS) $(INCLUDE_PATHS) $(DEFINES) -c $< -o $@ | |
| 157 | |
| 158 # How to make an RC file | |
| 159 %.o: %.rc | |
| 160 windres -i $< -o $@ | |
| 161 | |
| 162 ## | |
| 163 ## TARGET DEFINITIONS | |
| 164 ## | |
| 165 | |
| 166 .PHONY: all clean | |
| 167 | |
| 168 all: $(TARGET).exe $(TARGET).dll | |
| 169 | |
| 170 install: | |
| 171 cp $(GAIM_SRC)/gaim.exe $(GAIM_SRC)/gaim.dll $(GAIM_INSTALL_DIR) | |
| 172 | |
|
3905
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
173 $(GAIM_SRC)/win32/IdleTracker/IdleTrac.dll: |
|
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
174 $(MAKE) -C $(GAIM_SRC)/win32/IdleTracker -f Makefile.mingw |
| 3638 | 175 |
| 176 # | |
| 177 # BUILD DLL | |
| 178 # | |
| 179 | |
| 180 $(TARGET).def: $(HEADER_DEPS) $(DLL_OBJECTS) | |
| 181 dlltool -D $(TARGET).dll -z $(TARGET).def --export-all-symbols \ | |
| 182 --exclude-symbols WinMain@16 $^ | |
| 183 | |
| 184 $(TARGET).base: $(HEADER_DEPS) $(DLL_OBJECTS) | |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
185 $(CC) -mdll $(LDFLAGS) -o junk.tmp -Wl,--base-file,$@ $(DLL_OBJECTS) $(LIB_PATHS) $(DLL_LIBS) |
| 3638 | 186 rm -rf junk.tmp |
| 187 | |
| 188 $(TARGET).exp: $(TARGET).base $(TARGET).def | |
| 189 dlltool --dllname $(TARGET).dll --base-file $(TARGET).base \ | |
| 190 --output-exp $(TARGET).exp --def $(TARGET).def | |
| 191 | |
|
3905
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
192 $(TARGET).dll: $(HEADER_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
|
193 $(CC) -mdll $(LDFLAGS) -o $(TARGET).dll $(DLL_OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(DLL_LIBS) |
| 3638 | 194 rm -rf $(TARGET).exp $(TARGET).def $(TARGET).base |
| 195 | |
| 196 $(TARGET).lib: $(TARGET).def | |
| 197 dlltool -D $(TARGET).dll -d $(TARGET).def -l $(TARGET).lib | |
| 198 | |
| 199 # | |
| 200 # BUILD EXE | |
| 201 # | |
| 202 | |
| 203 $(TARGET).exe: $(TARGET).lib $(EXE_OBJECTS) | |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
204 $(CC) $(LDFLAGS) $(EXE_OBJECTS) $(LIB_PATHS) $(EXE_LIBS) -o $(TARGET).exe |
| 3638 | 205 |
| 206 ## | |
| 207 ## CLEAN RULES | |
| 208 ## | |
| 209 | |
| 210 clean: | |
| 211 $(MAKE) -C $(GAIM_TOP)/sounds -f Makefile.mingw clean | |
|
3905
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
212 $(MAKE) -C $(GAIM_SRC)/win32/IdleTracker -f Makefile.mingw clean |
| 3638 | 213 rm -rf *.o ./win32/*.o |
| 214 rm -rf $(TARGET).dll | |
| 215 rm -rf $(TARGET).lib | |
| 216 rm -rf $(TARGET).exe | |
| 217 | |
| 218 |
