Mercurial > pidgin
annotate libgaim/protocols/toc/Makefile.mingw @ 14293:82373bb6a47a
[gaim-migrate @ 16983]
Restructure updates for some makefiles that are not used by default and may not fully work.
Remove gtk import stuff from oscar Makefile.mingw
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 22 Aug 2006 18:10:43 +0000 |
parents | 60b1bc8dbf37 |
children | 8793fc8f7064 |
rev | line source |
---|---|
14192 | 1 # |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32 (mingw) version of libtoc | |
5 # | |
6 | |
7 # | |
8 # PATHS | |
9 # | |
10 | |
11 INCLUDE_DIR := . | |
12 GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
13 GAIM_TOP := ../../.. | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
14 LIBGAIM_TOP := ../.. |
14192 | 15 TOC_ROOT := . |
16 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
17 | |
18 ## | |
19 ## VARIABLE DEFINITIONS | |
20 ## | |
21 | |
22 TARGET = libtoc | |
23 | |
24 # Compiler Options | |
25 | |
26 CFLAGS = | |
27 | |
28 DEFINES = | |
29 | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
30 # Static or Plugin... |
14192 | 31 ifeq ($(TYPE),STATIC) |
32 DEFINES += -DSTATIC | |
33 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
34 else | |
35 ifeq ($(TYPE),PLUGIN) | |
36 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins | |
37 endif | |
38 endif | |
39 | |
40 | |
41 ## | |
42 ## INCLUDE MAKEFILES | |
43 ## | |
44 | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
45 include $(LIBGAIM_TOP)/win32/global.mak |
14192 | 46 |
47 ## | |
48 ## INCLUDE PATHS | |
49 ## | |
50 | |
51 INCLUDE_PATHS += -I$(TOC_ROOT) \ | |
52 -I$(GTK_TOP)/include \ | |
53 -I$(GTK_TOP)/include/glib-2.0 \ | |
54 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
55 -I$(LIBGAIM_TOP) \ |
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
56 -I$(LIBGAIM_TOP)/win32 \ |
14192 | 57 -I$(GAIM_TOP) |
58 | |
59 | |
60 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
61 -L$(LIBGAIM_TOP) |
14192 | 62 |
63 | |
64 ## | |
65 ## SOURCES, OBJECTS | |
66 ## | |
67 | |
68 C_SRC = toc.c | |
69 | |
70 | |
71 OBJECTS = $(C_SRC:%.c=%.o) | |
72 | |
73 | |
74 ## | |
75 ## LIBRARIES | |
76 ## | |
77 | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
78 LIBS = \ |
14192 | 79 -lglib-2.0 \ |
80 -lws2_32 \ | |
81 -lintl \ | |
82 -lgaim | |
83 | |
84 ## | |
85 ## RULES | |
86 ## | |
87 | |
88 # How to make a C file | |
89 | |
90 %.o: %.c | |
91 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
92 | |
93 ## | |
94 ## TARGET DEFINITIONS | |
95 ## | |
96 | |
97 .PHONY: all clean | |
98 | |
99 all: $(TARGET).dll | |
100 | |
101 install: | |
102 cp $(TOC_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
103 | |
104 | |
105 ## | |
106 ## BUILD Dependencies | |
107 ## | |
108 | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
109 $(LIBGAIM_TOP)/libgaim.dll.a: |
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
110 $(MAKE) -C $(LIBGAIM_TOP) -f Makefile.mingw libgaim.dll.a |
14192 | 111 |
112 ## | |
113 ## BUILD DLL | |
114 ## | |
115 | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
116 $(TARGET).dll: $(OBJECTS) $(LIBGAIM_TOP)/libgaim.dll.a |
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
117 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
14192 | 118 |
119 | |
120 ## | |
121 ## CLEAN RULES | |
122 ## | |
123 | |
124 clean: | |
125 rm -rf *.o | |
126 rm -rf $(TARGET).dll |