Mercurial > pidgin
annotate src/protocols/irc/Makefile.mingw @ 5954:fccc33d4b8fa
[gaim-migrate @ 6398]
I made serv_set_info or whatever it's called take a const char *
I don't really remember why
I also made some other small changes
There should be no functionality change
I'm still struggling to get available messages working. They haunt my
dreams. Like the gray gorilla, or the Silhouette of the past, fading
into the dim light of the moon.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Wed, 25 Jun 2003 04:20:30 +0000 |
| parents | bb7723f0b4b9 |
| children | c7de2a502d7c |
| rev | line source |
|---|---|
| 3630 | 1 # |
| 2 # Makefile.mingw | |
| 3 # | |
| 4 # Description: Makefile for win32 (mingw) version of libirc | |
| 5 # | |
| 6 | |
| 7 # | |
| 8 # PATHS | |
| 9 # | |
| 10 | |
| 11 INCLUDE_DIR := . | |
| 12 GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
| 13 GAIM_TOP := ../../.. | |
| 14 IRC_ROOT := . | |
| 15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
| 16 | |
| 17 ## | |
| 18 ## VARIABLE DEFINITIONS | |
| 19 ## | |
| 20 | |
| 21 TARGET = libirc | |
| 22 | |
| 23 # Compiler Options | |
| 24 | |
|
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
25 CFLAGS = |
| 3630 | 26 |
|
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.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
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.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$(IRC_ROOT) \ | |
| 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 \ | |
| 58 -I$(GAIM_TOP)/src \ | |
| 59 -I$(GAIM_TOP)/src/win32 \ | |
| 60 -I$(GAIM_TOP) | |
| 61 | |
| 62 | |
| 63 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
| 64 -L$(GAIM_TOP)/src | |
| 65 | |
| 66 | |
| 67 ## | |
| 68 ## SOURCES, OBJECTS | |
| 69 ## | |
| 70 | |
|
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
71 C_SRC = irc.c |
| 3630 | 72 |
| 73 | |
| 74 OBJECTS = $(C_SRC:%.c=%.o) | |
| 75 | |
| 76 | |
| 77 ## | |
| 78 ## LIBRARIES | |
| 79 ## | |
| 80 | |
|
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
81 LIBS = -lgtk-win32-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
82 -lglib-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
83 -lgdk-win32-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
84 -lgmodule-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
85 -lgobject-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
86 -lws2_32 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
87 -lintl \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
88 -lgaim |
| 3630 | 89 |
| 90 | |
| 91 ## | |
| 92 ## RULES | |
| 93 ## | |
| 94 | |
| 95 # How to make a C file | |
| 96 | |
| 97 %.o: %.c | |
| 98 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
| 99 | |
| 100 ## | |
| 101 ## TARGET DEFINITIONS | |
| 102 ## | |
| 103 | |
| 104 .PHONY: all clean | |
| 105 | |
| 106 all: $(TARGET).dll | |
| 107 | |
| 108 install: | |
| 109 cp $(IRC_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
| 110 | |
| 111 | |
| 112 ## | |
| 113 ## BUILD Dependencies | |
| 114 ## | |
| 115 | |
| 116 $(GAIM_TOP)/src/gaim.lib: | |
| 117 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
| 118 | |
| 119 ## | |
| 120 ## BUILD DLL | |
| 121 ## | |
| 122 | |
|
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
123 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
124 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll |
| 3630 | 125 |
| 126 ## | |
| 127 ## CLEAN RULES | |
| 128 ## | |
| 129 | |
| 130 clean: | |
| 131 rm -rf *.o | |
| 132 rm -rf $(TARGET).dll | |
| 133 rm -rf $(TARGET).lib |
