Mercurial > pidgin.yaz
annotate src/protocols/jabber/Makefile.mingw @ 7514:43a214a385d1
[gaim-migrate @ 8127]
this is what I accomplished on the ride to atlanta. pathetic, eh?
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sat, 15 Nov 2003 07:09:20 +0000 |
parents | b250288fa948 |
children | e87e7d9d0132 |
rev | line source |
---|---|
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
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$(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
06e7697f3fae
[gaim-migrate @ 7621]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7017
diff
changeset
|
72 C_SRC = auth.c \ |
7017 | 73 buddy.c \ |
74 chat.c \ | |
75 iq.c \ | |
76 jabber.c \ | |
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
77 jutil.c \ |
7017 | 78 message.c \ |
7170 | 79 oob.c \ |
7017 | 80 parser.c \ |
81 presence.c \ | |
82 roster.c \ | |
7395 | 83 si.c \ |
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
84 win32/posix.uname.c |
3630 | 85 |
86 | |
87 OBJECTS = $(C_SRC:%.c=%.o) | |
88 | |
89 | |
90 ## | |
91 ## LIBRARIES | |
92 ## | |
93 | |
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
94 LIBS = -lgtk-win32-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
95 -lglib-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
96 -lgdk-win32-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
97 -lgmodule-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
98 -lgobject-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
99 -lws2_32 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
100 -lintl \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
101 -lgaim |
3630 | 102 |
103 ## | |
104 ## RULES | |
105 ## | |
106 | |
107 # How to make a C file | |
108 | |
109 %.o: %.c | |
110 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
111 | |
112 ## | |
113 ## TARGET DEFINITIONS | |
114 ## | |
115 | |
116 .PHONY: all clean | |
117 | |
118 all: $(TARGET).dll | |
119 | |
120 install: | |
121 cp $(JABBER_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
122 | |
123 | |
124 ## | |
125 ## BUILD Dependencies | |
126 ## | |
127 | |
128 $(GAIM_TOP)/src/gaim.lib: | |
129 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
130 | |
131 ## | |
132 ## BUILD DLL | |
133 ## | |
134 | |
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
135 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
136 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll |
3630 | 137 |
138 ## | |
139 ## CLEAN RULES | |
140 ## | |
141 | |
142 clean: | |
143 rm -rf *.o | |
144 rm -rf ./win32/*.o | |
145 rm -rf $(TARGET).dll | |
146 rm -rf $(TARGET).lib |