Mercurial > pidgin.yaz
comparison src/Makefile.mingw @ 4536:ba99d30afc14
[gaim-migrate @ 4815]
New idletracker
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Wed, 05 Feb 2003 23:50:05 +0000 |
parents | 78403c4f62dc |
children | f7f0c7fef6be |
comparison
equal
deleted
inserted
replaced
4535:de9f45c815df | 4536:ba99d30afc14 |
---|---|
14 GAIM_SRC := . | 14 GAIM_SRC := . |
15 PERL_LIB_DIR := ../../win32-dev/perl56 | 15 PERL_LIB_DIR := ../../win32-dev/perl56 |
16 PERL_INCLUDE := $(PERL_LIB_DIR)/CORE | 16 PERL_INCLUDE := $(PERL_LIB_DIR)/CORE |
17 ASPELL_TOP := ../../win32-dev/aspell-15 | 17 ASPELL_TOP := ../../win32-dev/aspell-15 |
18 GTKSPELL_TOP := ../../win32-dev/gtkspell-2.0.3 | 18 GTKSPELL_TOP := ../../win32-dev/gtkspell-2.0.3 |
19 IDLETRACKER_TOP := $(GAIM_TOP)/src/win32/IdleTracker | 19 IDLETRACK_TOP := $(GAIM_TOP)/src/win32/IdleTracker |
20 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | 20 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir |
21 MINGW_PLUS_DIR := $(GAIM_SRC)/win32/mingw_plus | 21 MINGW_PLUS_DIR := $(GAIM_SRC)/win32/mingw_plus |
22 | 22 |
23 ## | 23 ## |
24 ## VARIABLE DEFINITIONS | 24 ## VARIABLE DEFINITIONS |
48 ## | 48 ## |
49 | 49 |
50 INCLUDE_PATHS = -I$(INCLUDE_DIR) \ | 50 INCLUDE_PATHS = -I$(INCLUDE_DIR) \ |
51 -I$(INCLUDE_DIR)/win32 \ | 51 -I$(INCLUDE_DIR)/win32 \ |
52 -I$(MINGW_PLUS_DIR) \ | 52 -I$(MINGW_PLUS_DIR) \ |
53 -I$(IDLETRACKER_TOP) \ | 53 -I$(IDLETRACK_TOP) \ |
54 -I$(GAIM_TOP) \ | 54 -I$(GAIM_TOP) \ |
55 -I$(GTK_TOP)/include \ | 55 -I$(GTK_TOP)/include \ |
56 -I$(GTK_TOP)/include/gtk-2.0 \ | 56 -I$(GTK_TOP)/include/gtk-2.0 \ |
57 -I$(GTK_TOP)/include/glib-2.0 \ | 57 -I$(GTK_TOP)/include/glib-2.0 \ |
58 -I$(GTK_TOP)/include/pango-1.0 \ | 58 -I$(GTK_TOP)/include/pango-1.0 \ |
64 -I$(GTKSPELL_TOP) | 64 -I$(GTKSPELL_TOP) |
65 | 65 |
66 | 66 |
67 LIB_PATHS = -L$(GTK_TOP)/lib \ | 67 LIB_PATHS = -L$(GTK_TOP)/lib \ |
68 -L$(GAIM_SRC) \ | 68 -L$(GAIM_SRC) \ |
69 -L$(IDLETRACKER_TOP) \ | 69 -L$(IDLETRACK_TOP) \ |
70 -L$(PERL_LIB_DIR) \ | 70 -L$(PERL_LIB_DIR) \ |
71 -L$(ASPELL_TOP)/lib \ | 71 -L$(ASPELL_TOP)/lib \ |
72 -L$(GTKSPELL_TOP)/gtkspell | 72 -L$(GTKSPELL_TOP)/gtkspell |
73 | 73 |
74 ## | 74 ## |
75 ## SOURCES, OBJECTS | 75 ## SOURCES, OBJECTS |
76 ## | 76 ## |
77 | 77 |
78 DLL_C_SRC = about.c \ | 78 DLL_C_SRC = about.c \ |
79 away.c \ | 79 away.c \ |
80 browser.c \ | 80 browser.c \ |
81 buddy.c \ | 81 buddy.c \ |
82 buddy_chat.c \ | 82 buddy_chat.c \ |
83 conversation.c \ | 83 conversation.c \ |
137 -lws2_32 \ | 137 -lws2_32 \ |
138 -liberty \ | 138 -liberty \ |
139 -lwinmm \ | 139 -lwinmm \ |
140 -lperl56 \ | 140 -lperl56 \ |
141 -laspell-15 \ | 141 -laspell-15 \ |
142 -lIdleTrac | 142 -lidletrack |
143 | 143 |
144 | 144 |
145 | 145 |
146 EXE_LIBS = -lgaim -lglib-2.0 | 146 EXE_LIBS = -lgaim -lglib-2.0 |
147 | 147 |
166 all: $(TARGET).exe $(TARGET).dll | 166 all: $(TARGET).exe $(TARGET).dll |
167 | 167 |
168 install: | 168 install: |
169 cp $(GAIM_SRC)/gaim.exe $(GAIM_SRC)/gaim.dll $(GAIM_INSTALL_DIR) | 169 cp $(GAIM_SRC)/gaim.exe $(GAIM_SRC)/gaim.dll $(GAIM_INSTALL_DIR) |
170 | 170 |
171 $(GAIM_SRC)/win32/IdleTracker/IdleTrac.dll: | 171 $(IDLETRACK_TOP)/idletrack.dll: |
172 $(MAKE) -C $(GAIM_SRC)/win32/IdleTracker -f Makefile.mingw | 172 $(MAKE) -C $(IDLETRACK_TOP) -f Makefile.mingw |
173 | 173 |
174 # | 174 # |
175 # BUILD DLL | 175 # BUILD DLL |
176 # | 176 # |
177 | 177 |
185 | 185 |
186 $(TARGET).exp: $(TARGET).base $(TARGET).def | 186 $(TARGET).exp: $(TARGET).base $(TARGET).def |
187 dlltool --dllname $(TARGET).dll --base-file $(TARGET).base \ | 187 dlltool --dllname $(TARGET).dll --base-file $(TARGET).base \ |
188 --output-exp $(TARGET).exp --def $(TARGET).def | 188 --output-exp $(TARGET).exp --def $(TARGET).def |
189 | 189 |
190 $(TARGET).dll: $(DLL_OBJECTS) $(GAIM_SRC)/win32/IdleTracker/IdleTrac.dll $(TARGET).exp | 190 $(TARGET).dll: $(DLL_OBJECTS) $(IDLETRACK_TOP)/idletrack.dll $(TARGET).exp |
191 $(CC) -mdll $(LDFLAGS) -o $(TARGET).dll $(DLL_OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(DLL_LIBS) | 191 $(CC) -mdll $(LDFLAGS) -o $(TARGET).dll $(DLL_OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(DLL_LIBS) |
192 rm -rf $(TARGET).exp $(TARGET).def $(TARGET).base | 192 rm -rf $(TARGET).exp $(TARGET).def $(TARGET).base |
193 | 193 |
194 $(TARGET).lib: $(TARGET).def | 194 $(TARGET).lib: $(TARGET).def |
195 dlltool -D $(TARGET).dll -d $(TARGET).def -l $(TARGET).lib | 195 dlltool -D $(TARGET).dll -d $(TARGET).def -l $(TARGET).lib |
204 ## | 204 ## |
205 ## CLEAN RULES | 205 ## CLEAN RULES |
206 ## | 206 ## |
207 | 207 |
208 clean: | 208 clean: |
209 $(MAKE) -C $(GAIM_SRC)/win32/IdleTracker -f Makefile.mingw clean | 209 $(MAKE) -C $(IDLETRACK_TOP) -f Makefile.mingw clean |
210 rm -rf *.o ./win32/*.o | 210 rm -rf *.o ./win32/*.o |
211 rm -rf $(TARGET).dll | 211 rm -rf $(TARGET).dll |
212 rm -rf $(TARGET).lib | 212 rm -rf $(TARGET).lib |
213 rm -rf $(TARGET).exe | 213 rm -rf $(TARGET).exe |
214 | 214 |