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