Mercurial > pidgin
annotate src/Makefile.mingw @ 3862:fbdcaa2b46cf
[gaim-migrate @ 4014]
updated fr.po file
committer: Tailor Script <tailor@pidgin.im>
| author | Luke Schierer <lschiere@pidgin.im> |
|---|---|
| date | Sat, 02 Nov 2002 15:38:00 +0000 |
| parents | eddcb3a8c74e |
| children | 3e508dd31b76 |
| 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 |
| 3638 | 19 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir |
| 20 | |
| 21 ## | |
| 22 ## VARIABLE DEFINITIONS | |
| 23 ## | |
| 24 | |
| 25 TARGET = gaim | |
| 26 | |
| 27 # Compiler and Linker Options | |
| 28 | |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
29 CFLAGS = |
| 3638 | 30 |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
31 DEFINES = |
| 3638 | 32 |
| 33 LDFLAGS = -mwindows | |
| 34 | |
| 35 #-mconsole | |
| 36 #-mwindows | |
| 37 | |
| 38 ## | |
| 39 ## INCLUDE MAKEFILES | |
| 40 ## | |
| 41 | |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
42 include $(GAIM_TOP)/src/win32/global.mak |
| 3638 | 43 |
| 44 ## | |
| 45 ## INCLUDE PATHS | |
| 46 ## | |
| 47 | |
| 48 INCLUDE_PATHS = -I$(INCLUDE_DIR) \ | |
| 49 -I$(INCLUDE_DIR)/win32 \ | |
| 50 -I$(GAIM_TOP) \ | |
| 51 -I$(GTK_TOP)/include \ | |
| 52 -I$(GTK_TOP)/include/gtk-2.0 \ | |
| 53 -I$(GTK_TOP)/include/glib-2.0 \ | |
| 54 -I$(GTK_TOP)/include/pango-1.0 \ | |
| 55 -I$(GTK_TOP)/include/atk-1.0 \ | |
| 56 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 57 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
|
3853
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
58 -I$(PERL_INCLUDE) \ |
|
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
59 -I$(ASPELL_TOP)/include \ |
|
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
60 -I$(GTKSPELL_TOP) |
| 3638 | 61 |
| 62 | |
| 63 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
| 64 -L$(GAIM_SRC) \ | |
|
3853
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
65 -L$(PERL_LIB_DIR) \ |
|
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
66 -L$(ASPELL_TOP)/lib \ |
|
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
67 -L$(GTKSPELL_TOP)/gtkspell |
| 3638 | 68 |
| 69 | |
| 70 ## | |
| 71 ## SOURCES, OBJECTS | |
| 72 ## | |
| 73 | |
| 74 SOUND_H_FILES = $(GAIM_TOP)/sounds/BuddyArrive.h \ | |
| 75 $(GAIM_TOP)/sounds/BuddyLeave.h \ | |
| 76 $(GAIM_TOP)/sounds/Receive.h \ | |
| 77 $(GAIM_TOP)/sounds/RedAlert.h \ | |
| 78 $(GAIM_TOP)/sounds/Send.h | |
| 79 | |
| 80 HEADER_DEPS = $(SOUND_H_FILES) | |
| 81 | |
| 82 DLL_C_SRC = aim.c \ | |
| 83 about.c \ | |
| 84 away.c \ | |
| 85 browser.c \ | |
| 86 buddy.c \ | |
| 87 buddy_chat.c \ | |
| 88 conversation.c \ | |
| 89 core.c \ | |
| 90 dialogs.c \ | |
| 91 ft.c \ | |
| 92 gaimrc.c \ | |
| 93 gtkimhtml.c \ | |
| 94 html.c \ | |
| 95 idle.c \ | |
| 96 list.c \ | |
| 97 md5.c \ | |
| 98 module.c \ | |
| 99 multi.c \ | |
| 100 perl.c \ | |
| 101 prefs.c \ | |
| 102 proxy.c \ | |
| 103 prpl.c \ | |
| 104 server.c \ | |
| 105 sound.c \ | |
| 106 util.c \ | |
| 107 win32/win32dep.c \ | |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
108 win32/MinimizeToTray.c \ |
|
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
109 win32/libc_interface.c |
| 3638 | 110 |
| 111 RC_SRC = win32/gaimrc.rc | |
| 112 | |
| 113 EXE_C_SRC = win_aim.c | |
| 114 | |
| 115 DLL_OBJECTS = $(DLL_C_SRC:%.c=%.o) | |
| 116 | |
| 117 EXE_OBJECTS = $(EXE_C_SRC:%.c=%.o) $(RC_SRC:%.rc=%.o) | |
| 118 | |
| 119 ## | |
| 120 ## LIBRARIES | |
| 121 ## | |
| 122 | |
|
3853
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
123 DLL_LIBS = -lgtkspell \ |
|
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
124 -lgtk-win32-2.0 \ |
| 3638 | 125 -lpango-1.0 \ |
| 126 -lglib-2.0 \ | |
| 127 -lgdk-win32-2.0 \ | |
| 128 -lgobject-2.0 \ | |
| 129 -lintl \ | |
| 130 -lgmodule-2.0 \ | |
| 131 -lgdk_pixbuf-2.0 \ | |
| 132 -lws2_32 \ | |
| 133 -liberty \ | |
| 134 -lwinmm \ | |
|
3853
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
135 -lperl56 \ |
|
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3826
diff
changeset
|
136 -laspell-15 |
| 3638 | 137 |
| 138 | |
| 139 EXE_LIBS = -lgaim -lglib-2.0 | |
| 140 | |
| 141 ## | |
| 142 ## RULES | |
| 143 ## | |
| 144 | |
| 145 # Make Sound headers | |
| 146 $(GAIM_TOP)/sounds/%.h: | |
| 147 $(MAKE) -C $(GAIM_TOP)/sounds -f Makefile.mingw $(@F) | |
| 148 | |
| 149 # How to make a C file | |
| 150 %.o: %.c | |
| 151 $(CC) $(CFLAGS) $(INCLUDE_PATHS) $(DEFINES) -c $< -o $@ | |
| 152 | |
| 153 # How to make an RC file | |
| 154 %.o: %.rc | |
| 155 windres -i $< -o $@ | |
| 156 | |
| 157 ## | |
| 158 ## TARGET DEFINITIONS | |
| 159 ## | |
| 160 | |
| 161 .PHONY: all clean | |
| 162 | |
| 163 all: $(TARGET).exe $(TARGET).dll | |
| 164 | |
| 165 install: | |
| 166 cp $(GAIM_SRC)/gaim.exe $(GAIM_SRC)/gaim.dll $(GAIM_INSTALL_DIR) | |
| 167 | |
| 168 | |
| 169 # | |
| 170 # BUILD DLL | |
| 171 # | |
| 172 | |
| 173 $(TARGET).def: $(HEADER_DEPS) $(DLL_OBJECTS) | |
| 174 dlltool -D $(TARGET).dll -z $(TARGET).def --export-all-symbols \ | |
| 175 --exclude-symbols WinMain@16 $^ | |
| 176 | |
| 177 $(TARGET).base: $(HEADER_DEPS) $(DLL_OBJECTS) | |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
178 $(CC) -mdll $(LDFLAGS) -o junk.tmp -Wl,--base-file,$@ $(DLL_OBJECTS) $(LIB_PATHS) $(DLL_LIBS) |
| 3638 | 179 rm -rf junk.tmp |
| 180 | |
| 181 $(TARGET).exp: $(TARGET).base $(TARGET).def | |
| 182 dlltool --dllname $(TARGET).dll --base-file $(TARGET).base \ | |
| 183 --output-exp $(TARGET).exp --def $(TARGET).def | |
| 184 | |
| 185 $(TARGET).dll: $(HEADER_DEPS) $(DLL_OBJECTS) $(TARGET).exp | |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
186 $(CC) -mdll $(LDFLAGS) -o $(TARGET).dll $(DLL_OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(DLL_LIBS) |
| 3638 | 187 rm -rf $(TARGET).exp $(TARGET).def $(TARGET).base |
| 188 | |
| 189 $(TARGET).lib: $(TARGET).def | |
| 190 dlltool -D $(TARGET).dll -d $(TARGET).def -l $(TARGET).lib | |
| 191 | |
| 192 # | |
| 193 # BUILD EXE | |
| 194 # | |
| 195 | |
| 196 $(TARGET).exe: $(TARGET).lib $(EXE_OBJECTS) | |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3638
diff
changeset
|
197 $(CC) $(LDFLAGS) $(EXE_OBJECTS) $(LIB_PATHS) $(EXE_LIBS) -o $(TARGET).exe |
| 3638 | 198 |
| 199 ## | |
| 200 ## CLEAN RULES | |
| 201 ## | |
| 202 | |
| 203 clean: | |
| 204 $(MAKE) -C $(GAIM_TOP)/sounds -f Makefile.mingw clean | |
| 205 rm -rf *.o ./win32/*.o | |
| 206 rm -rf $(TARGET).dll | |
| 207 rm -rf $(TARGET).lib | |
| 208 rm -rf $(TARGET).exe | |
| 209 | |
| 210 |
