Mercurial > pidgin
annotate libgaim/protocols/simple/Makefile.mingw @ 14255:26ae644bb66b
[gaim-migrate @ 16937]
I think I was wrong about the purpose of the last packet. Oops. There's actually two packets for this purpose still.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Mon, 21 Aug 2006 03:19:16 +0000 |
parents | a7590884324d |
children | 8793fc8f7064 |
rev | line source |
---|---|
14192 | 1 # |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32 (mingw) version of libsimple | |
5 # | |
6 | |
7 # | |
8 # PATHS | |
9 # | |
10 | |
11 GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
12 GAIM_TOP := ../../.. | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
13 LIBGAIM_TOP := ../.. |
14192 | 14 SIMPLE_ROOT := . |
15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
16 | |
17 ## | |
18 ## VARIABLE DEFINITIONS | |
19 ## | |
20 | |
21 TARGET = libsimple | |
22 | |
23 # Compiler Options | |
24 | |
25 CFLAGS = | |
26 | |
27 DEFINES = | |
28 | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
29 # Static or Plugin... |
14192 | 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 | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
44 include $(LIBGAIM_TOP)/win32/global.mak |
14192 | 45 |
46 ## | |
47 ## INCLUDE PATHS | |
48 ## | |
49 | |
50 INCLUDE_PATHS += -I$(SIMPLE_ROOT) \ | |
51 -I$(GTK_TOP)/include \ | |
52 -I$(GTK_TOP)/include/glib-2.0 \ | |
53 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
54 -I$(LIBGAIM_TOP) \ |
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
55 -I$(LIBGAIM_TOP)/win32 \ |
14192 | 56 -I$(GAIM_TOP) |
57 | |
58 | |
59 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
60 -L$(LIBGAIM_TOP) |
14192 | 61 |
62 | |
63 ## | |
64 ## SOURCES, OBJECTS | |
65 ## | |
66 | |
67 C_SRC = simple.c \ | |
68 sipmsg.c | |
69 | |
70 | |
71 OBJECTS = $(C_SRC:%.c=%.o) | |
72 | |
73 | |
74 ## | |
75 ## LIBRARIES | |
76 ## | |
77 | |
78 LIBS = \ | |
79 -lglib-2.0 \ | |
80 -lgobject-2.0 \ | |
81 -lws2_32 \ | |
82 -lintl \ | |
83 -lgaim | |
84 | |
85 | |
86 ## | |
87 ## RULES | |
88 ## | |
89 | |
90 # How to make a C file | |
91 | |
92 %.o: %.c | |
93 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
94 | |
95 ## | |
96 ## TARGET DEFINITIONS | |
97 ## | |
98 | |
99 .PHONY: all clean | |
100 | |
101 all: $(TARGET).dll | |
102 | |
103 install: | |
104 cp $(SIMPLE_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
105 | |
106 | |
107 ## | |
108 ## BUILD Dependencies | |
109 ## | |
110 | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
111 $(LIBGAIM_TOP)/libgaim.dll.a: |
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
112 $(MAKE) -C $(LIBGAIM_TOP) -f Makefile.mingw libgaim.dll.a |
14192 | 113 |
114 ## | |
115 ## BUILD DLL | |
116 ## | |
117 | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
118 $(TARGET).dll: $(OBJECTS) $(LIBGAIM_TOP)/libgaim.dll.a |
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
119 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
14192 | 120 |
121 | |
122 ## | |
123 ## CLEAN RULES | |
124 ## | |
125 | |
126 clean: | |
127 rm -rf *.o | |
128 rm -rf $(TARGET).dll |