Mon, 31 Mar 2003 07:19:46 +0000
[gaim-migrate @ 5250]
Buddy list editing.
Does this work? I don't know; I don't test things. It compiles though.
It probably does work though, because I'm perfect.
So, see, I did really terribly in school last semester (really terribly--
like, why didn't they kick me out terribly) and so I'm working really hard
to do well this semester (and I am so far :)). Anyway, that's why you may
have noticed I'm a bit slow with the development of late. In fact, I would
test and fix this stuff up, but I really need to work on an English paper,
so I figured it'd be best just to commit it as is and let Rob, Nathan, Chip
and the boys work out the kinks. Besides, I've had most of this code written
for weeks already.
Thank you all for your patience.
Oh, so there's now an Edit menu on your buddy list (which makes the minimum
buddy list width wider :-D) and here you'll find things with which to edit
your list and privacy, prefs and accounts. It should all be real intuitive.
Feel free to IM me if you want to talk about my paper.
| 3630 | 1 | # |
| 2 | # Makefile.mingw | |
| 3 | # | |
| 4 | # Description: Makefile for win32 (mingw) version of libjabber | |
| 5 | # | |
| 6 | ||
| 7 | # | |
| 8 | # PATHS | |
| 9 | # | |
| 10 | ||
| 11 | INCLUDE_DIR := . | |
| 12 | GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
| 13 | GAIM_TOP := ../../.. | |
| 14 | JABBER_ROOT := . | |
| 15 | GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
| 16 | ||
| 17 | ## | |
| 18 | ## VARIABLE DEFINITIONS | |
| 19 | ## | |
| 20 | ||
| 21 | TARGET = libjabber | |
| 22 | ||
| 23 | # Compiler Options | |
| 24 | ||
|
3718
6db53e60577c
[gaim-migrate @ 3851]
Herman Bloggs <herman@bluedigits.com>
parents:
3630
diff
changeset
|
25 | CFLAGS = |
| 3630 | 26 | |
|
3718
6db53e60577c
[gaim-migrate @ 3851]
Herman Bloggs <herman@bluedigits.com>
parents:
3630
diff
changeset
|
27 | DEFINES = |
| 3630 | 28 | |
| 29 | # Static or Plugin... | |
| 30 | ifeq ($(TYPE),STATIC) | |
| 31 | DEFINES += -DSTATIC | |
| 32 | DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
| 33 | else | |
| 34 | ifeq ($(TYPE),PLUGIN) | |
| 35 | DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins | |
| 36 | endif | |
| 37 | endif | |
| 38 | ||
| 39 | ||
| 40 | ## | |
| 41 | ## INCLUDE MAKEFILES | |
| 42 | ## | |
| 43 | ||
|
3718
6db53e60577c
[gaim-migrate @ 3851]
Herman Bloggs <herman@bluedigits.com>
parents:
3630
diff
changeset
|
44 | include $(GAIM_TOP)/src/win32/global.mak |
| 3630 | 45 | |
| 46 | ## | |
| 47 | ## INCLUDE PATHS | |
| 48 | ## | |
| 49 | ||
| 50 | INCLUDE_PATHS += -I$(JABBER_ROOT) \ | |
| 51 | -I$(JABBER_ROOT)/win32 \ | |
| 52 | -I$(GTK_TOP)/include \ | |
| 53 | -I$(GTK_TOP)/include/gtk-2.0 \ | |
| 54 | -I$(GTK_TOP)/include/glib-2.0 \ | |
| 55 | -I$(GTK_TOP)/include/pango-1.0 \ | |
| 56 | -I$(GTK_TOP)/include/atk-1.0 \ | |
| 57 | -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 58 | -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
| 59 | -I$(GAIM_TOP)/src \ | |
| 60 | -I$(GAIM_TOP)/src/win32 \ | |
| 61 | -I$(GAIM_TOP) | |
| 62 | ||
| 63 | ||
| 64 | LIB_PATHS = -L$(GTK_TOP)/lib \ | |
| 65 | -L$(GAIM_TOP)/src | |
| 66 | ||
| 67 | ||
| 68 | ## | |
| 69 | ## SOURCES, OBJECTS | |
| 70 | ## | |
| 71 | ||
| 72 | C_SRC = jabber.c \ | |
| 73 | expat.c \ | |
| 74 | genhash.c \ | |
| 75 | hashtable.c \ | |
| 76 | jconn.c \ | |
| 77 | jid.c \ | |
| 78 | jpacket.c \ | |
| 79 | jutil.c \ | |
| 80 | karma.c \ | |
| 81 | log.c \ | |
| 82 | pool.c \ | |
| 83 | pproxy.c \ | |
| 84 | rate.c \ | |
| 85 | sha.c \ | |
| 86 | socket.c \ | |
| 87 | str.c \ | |
| 88 | xhash.c \ | |
| 89 | xmlnode.c \ | |
| 90 | xmlparse.c \ | |
| 91 | xmlrole.c \ | |
| 92 | xmltok.c \ | |
| 93 | xstream.c \ | |
| 94 | win32/posix.uname.c | |
| 95 | ||
| 96 | ||
| 97 | OBJECTS = $(C_SRC:%.c=%.o) | |
| 98 | ||
| 99 | ||
| 100 | ## | |
| 101 | ## LIBRARIES | |
| 102 | ## | |
| 103 | ||
| 104 | LIBS = -lgtk-win32-2.0 -lglib-2.0 -lgdk-win32-2.0 -lgmodule-2.0 -lgobject-2.0 -lws2_32 -lintl -lgaim | |
| 105 | ||
| 106 | # -liberty | |
| 107 | ||
| 108 | ||
| 109 | ## | |
| 110 | ## RULES | |
| 111 | ## | |
| 112 | ||
| 113 | # How to make a C file | |
| 114 | ||
| 115 | %.o: %.c | |
| 116 | $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
| 117 | ||
| 118 | ## | |
| 119 | ## TARGET DEFINITIONS | |
| 120 | ## | |
| 121 | ||
| 122 | .PHONY: all clean | |
| 123 | ||
| 124 | all: $(TARGET).dll | |
| 125 | ||
| 126 | install: | |
| 127 | cp $(JABBER_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
| 128 | ||
| 129 | ||
| 130 | ## | |
| 131 | ## BUILD Dependencies | |
| 132 | ## | |
| 133 | ||
| 134 | $(GAIM_TOP)/src/gaim.lib: | |
| 135 | $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
| 136 | ||
| 137 | ## | |
| 138 | ## BUILD DLL | |
| 139 | ## | |
| 140 | ||
| 141 | $(TARGET).def: $(OBJECTS) | |
| 142 | dlltool --dllname $(TARGET).dll -z $(TARGET).def \ | |
| 143 | $(OBJECTS) | |
| 144 | ||
| 145 | $(TARGET).base: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib | |
|
3718
6db53e60577c
[gaim-migrate @ 3851]
Herman Bloggs <herman@bluedigits.com>
parents:
3630
diff
changeset
|
146 | $(CC) -mdll -o junk.tmp -Wl,--base-file,$@ $(OBJECTS) $(LIB_PATHS) $(LIBS) |
| 3630 | 147 | rm -rf junk.tmp |
| 148 | ||
| 149 | $(TARGET).exp: $(TARGET).def $(TARGET).base | |
| 150 | dlltool --dllname $(TARGET).dll --base-file $(TARGET).base \ | |
| 151 | --output-exp $(TARGET).exp --def $(TARGET).def | |
| 152 | rm -rf $(TARGET).base | |
| 153 | ||
| 154 | $(TARGET).dll: $(OBJECTS) $(TARGET).exp $(GAIM_TOP)/src/gaim.lib | |
| 155 | dlltool -D $(TARGET).dll -d $(TARGET).def -l $(TARGET).lib | |
|
3718
6db53e60577c
[gaim-migrate @ 3851]
Herman Bloggs <herman@bluedigits.com>
parents:
3630
diff
changeset
|
156 | $(CC) -mdll -o $(TARGET).dll $(OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(LIBS) |
| 3630 | 157 | rm -rf $(TARGET).exp |
| 158 | ||
| 159 | ||
| 160 | ## | |
| 161 | ## CLEAN RULES | |
| 162 | ## | |
| 163 | ||
| 164 | clean: | |
| 165 | rm -rf *.o | |
| 166 | rm -rf ./win32/*.o | |
| 167 | rm -rf $(TARGET).dll | |
| 168 | rm -rf $(TARGET).lib | |
| 169 | rm -rf $(TARGET).def |