Mercurial > pidgin
annotate src/protocols/oscar/Makefile.mingw @ 4443:00a22e2e8367
[gaim-migrate @ 4718]
Thanks to David Walluck for pointing out the incorrect comment.
And I'm commenting out the cleanlist thing until I have more time
to look at why it's crashing for Luke.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Tue, 28 Jan 2003 06:45:08 +0000 |
| parents | 2a2d6d21f1d7 |
| children | 9810ce8e7a96 |
| rev | line source |
|---|---|
| 3630 | 1 # |
| 2 # Makefile.mingw | |
| 3 # | |
| 4 # Description: Makefile for win32 (mingw) version of liboscar | |
| 5 # | |
| 6 | |
| 7 # | |
| 8 # PATHS | |
| 9 # | |
| 10 | |
| 11 OSCAR_ROOT := . | |
| 12 GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
| 13 GAIM_TOP := ../../.. | |
| 14 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
| 15 | |
| 16 ## | |
| 17 ## VARIABLE DEFINITIONS | |
| 18 ## | |
| 19 | |
| 20 TARGET = liboscar | |
| 21 | |
| 22 # Compiler Options | |
| 23 | |
|
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3695
diff
changeset
|
24 CFLAGS = |
| 3630 | 25 |
|
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3695
diff
changeset
|
26 DEFINES = |
| 3630 | 27 |
| 28 # Static or Plugin... | |
| 29 ifeq ($(TYPE),STATIC) | |
| 30 DEFINES += -DSTATIC | |
| 31 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
| 32 else | |
| 33 ifeq ($(TYPE),PLUGIN) | |
| 34 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins | |
| 35 endif | |
| 36 endif | |
| 37 | |
| 38 | |
| 39 ## | |
| 40 ## INCLUDE MAKEFILES | |
| 41 ## | |
| 42 | |
|
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3695
diff
changeset
|
43 include $(GAIM_TOP)/src/win32/global.mak |
| 3630 | 44 |
| 45 ## | |
| 46 ## INCLUDE PATHS | |
| 47 ## | |
| 48 | |
| 49 INCLUDE_PATHS += -I$(OSCAR_ROOT) \ | |
| 50 -I$(GTK_TOP)/include \ | |
| 51 -I$(GTK_TOP)/include/gtk-2.0 \ | |
| 52 -I$(GTK_TOP)/include/glib-2.0 \ | |
| 53 -I$(GTK_TOP)/include/pango-1.0 \ | |
| 54 -I$(GTK_TOP)/include/atk-1.0 \ | |
| 55 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 56 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
| 57 -I$(GAIM_TOP)/src \ | |
| 58 -I$(GAIM_TOP)/src/win32 \ | |
| 59 -I$(GAIM_TOP) | |
| 60 | |
| 61 | |
| 62 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
| 63 -L$(GAIM_TOP)/src | |
| 64 | |
| 65 | |
| 66 ## | |
| 67 ## SOURCES, OBJECTS | |
| 68 ## | |
| 69 | |
| 70 C_SRC = admin.c \ | |
| 71 adverts.c \ | |
| 72 auth.c \ | |
| 73 bos.c \ | |
| 3952 | 74 bstream.c \ |
| 3630 | 75 buddylist.c \ |
| 76 chat.c \ | |
| 77 chatnav.c \ | |
| 78 conn.c \ | |
| 3695 | 79 email.c \ |
| 3630 | 80 ft.c \ |
| 81 icq.c \ | |
| 82 im.c \ | |
| 83 info.c \ | |
| 84 invite.c \ | |
| 85 misc.c \ | |
| 86 msgcookie.c \ | |
| 3952 | 87 newsearch.c \ |
| 3630 | 88 popups.c \ |
| 89 rxhandlers.c \ | |
| 90 rxqueue.c \ | |
| 91 search.c \ | |
| 92 service.c \ | |
| 93 snac.c \ | |
| 94 ssi.c \ | |
| 95 stats.c \ | |
| 96 tlv.c \ | |
| 97 translate.c \ | |
| 98 txqueue.c \ | |
| 99 util.c \ | |
| 100 oscar.c | |
| 101 | |
| 102 | |
| 103 OBJECTS = $(C_SRC:%.c=%.o) | |
| 104 | |
| 105 | |
| 106 ## | |
| 107 ## LIBRARIES | |
| 108 ## | |
| 109 | |
| 110 LIBS = -lgtk-win32-2.0 -lglib-2.0 -lgdk-win32-2.0 -lgmodule-2.0 -lgobject-2.0 -lintl -lws2_32 -liberty -lgaim | |
| 111 | |
| 112 | |
| 113 ## | |
| 114 ## RULES | |
| 115 ## | |
| 116 | |
| 117 # How to make a C file | |
| 118 | |
| 119 %.o: %.c | |
| 120 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
| 121 | |
| 122 ## | |
| 123 ## TARGET DEFINITIONS | |
| 124 ## | |
| 125 | |
| 126 .PHONY: all clean | |
| 127 | |
| 128 all: $(TARGET).dll | |
| 129 | |
| 130 install: | |
| 131 cp $(OSCAR_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
| 132 | |
| 133 | |
| 134 ## | |
| 135 ## BUILD Dependencies | |
| 136 ## | |
| 137 | |
| 138 $(GAIM_TOP)/src/gaim.lib: | |
| 139 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
| 140 | |
| 141 ## | |
| 142 ## BUILD DLL | |
| 143 ## | |
| 144 | |
| 145 $(TARGET).def: $(OBJECTS) | |
| 146 dlltool --dllname $(TARGET).dll -z $(TARGET).def --export-all-symbols $(OBJECTS) | |
| 147 | |
| 148 $(TARGET).base: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib | |
|
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3695
diff
changeset
|
149 $(CC) -mdll -o junk.tmp -Wl,--base-file,$@ $(OBJECTS) $(LIB_PATHS) $(LIBS) |
| 3630 | 150 rm -rf junk.tmp |
| 151 | |
| 152 $(TARGET).exp: $(TARGET).def $(TARGET).base | |
| 153 dlltool --dllname $(TARGET).dll --base-file $(TARGET).base \ | |
| 154 --output-exp $(TARGET).exp --def $(TARGET).def | |
| 155 rm -rf $(TARGET).base | |
| 156 | |
| 157 $(TARGET).dll: $(OBJECTS) $(TARGET).exp $(GAIM_TOP)/src/gaim.lib | |
| 158 dlltool -D $(TARGET).dll -d $(TARGET).def -l $(TARGET).lib | |
|
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3695
diff
changeset
|
159 $(CC) -mdll -o $(TARGET).dll $(OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(LIBS) |
| 3630 | 160 rm -rf $(TARGET).exp |
| 161 | |
| 162 ## | |
| 163 ## CLEAN RULES | |
| 164 ## | |
| 165 | |
| 166 clean: | |
| 167 rm -rf *.o | |
| 168 rm -rf $(TARGET).dll | |
| 169 rm -rf $(TARGET).lib | |
| 170 rm -rf $(TARGET).def |
