Tue, 02 Mar 2004 07:41:05 +0000
[gaim-migrate @ 9113]
strcasecmp is declared in strings.h, but that was not #included
I figured it was just as easy to change the function to this instead
of adding the include
| 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 | ||
|
7058
c62db98b7a2a
[gaim-migrate @ 7621]
Herman Bloggs <herman@bluedigits.com>
parents:
7017
diff
changeset
|
72 | C_SRC = auth.c \ |
| 7017 | 73 | buddy.c \ |
| 74 | chat.c \ | |
| 8313 | 75 | disco.c \ |
| 7017 | 76 | iq.c \ |
| 77 | jabber.c \ | |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
78 | jutil.c \ |
| 7017 | 79 | message.c \ |
| 7170 | 80 | oob.c \ |
| 7017 | 81 | parser.c \ |
| 82 | presence.c \ | |
| 83 | roster.c \ | |
| 7395 | 84 | si.c \ |
| 7923 | 85 | xdata.c \ |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
86 | win32/posix.uname.c |
| 3630 | 87 | |
| 88 | ||
| 89 | OBJECTS = $(C_SRC:%.c=%.o) | |
| 90 | ||
| 91 | ||
| 92 | ## | |
| 93 | ## LIBRARIES | |
| 94 | ## | |
| 95 | ||
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
96 | LIBS = -lgtk-win32-2.0 \ |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
97 | -lglib-2.0 \ |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
98 | -lgdk-win32-2.0 \ |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
99 | -lgmodule-2.0 \ |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
100 | -lgobject-2.0 \ |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
101 | -lws2_32 \ |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
102 | -lintl \ |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
103 | -lgaim |
| 3630 | 104 | |
| 105 | ## | |
| 106 | ## RULES | |
| 107 | ## | |
| 108 | ||
| 109 | # How to make a C file | |
| 110 | ||
| 111 | %.o: %.c | |
| 112 | $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
| 113 | ||
| 114 | ## | |
| 115 | ## TARGET DEFINITIONS | |
| 116 | ## | |
| 117 | ||
| 118 | .PHONY: all clean | |
| 119 | ||
| 120 | all: $(TARGET).dll | |
| 121 | ||
| 122 | install: | |
| 123 | cp $(JABBER_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
| 124 | ||
| 125 | ||
| 126 | ## | |
| 127 | ## BUILD Dependencies | |
| 128 | ## | |
| 129 | ||
| 130 | $(GAIM_TOP)/src/gaim.lib: | |
| 131 | $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
| 132 | ||
| 133 | ## | |
| 134 | ## BUILD DLL | |
| 135 | ## | |
| 136 | ||
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
137 | $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
138 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll |
| 3630 | 139 | |
| 140 | ## | |
| 141 | ## CLEAN RULES | |
| 142 | ## | |
| 143 | ||
| 144 | clean: | |
| 145 | rm -rf *.o | |
| 146 | rm -rf ./win32/*.o | |
| 147 | rm -rf $(TARGET).dll | |
| 148 | rm -rf $(TARGET).lib |