Mercurial > pidgin
annotate plugins/ticker/Makefile.mingw @ 5483:00032269c317
[gaim-migrate @ 5879]
Added the request API to the core.h file.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 22 May 2003 10:22:32 +0000 |
parents | 764d6f1848b2 |
children | bb7723f0b4b9 |
rev | line source |
---|---|
3630 | 1 # |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for ticker plugin. | |
5 # | |
6 | |
7 # | |
8 # PATHS | |
9 # | |
10 | |
11 INCLUDE_DIR := . | |
12 | |
13 GTK_TOP := ../../../win32-dev/gtk_2_0 | |
14 GAIM_TOP := ../.. | |
15 TICKER_ROOT := . | |
16 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
17 DLL_INSTALL_DIR := $(GAIM_INSTALL_DIR)/plugins | |
18 | |
19 ## | |
20 ## VARIABLE DEFINITIONS | |
21 ## | |
22 | |
23 TARGET = ticker | |
24 | |
25 # Compiler Options | |
26 | |
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
27 CFLAGS = |
3630 | 28 |
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
29 DEFINES = |
3630 | 30 |
31 | |
32 ## | |
33 ## INCLUDE MAKEFILES | |
34 ## | |
35 | |
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
36 include $(GAIM_TOP)/src/win32/global.mak |
3630 | 37 |
38 ## | |
39 ## INCLUDE PATHS | |
40 ## | |
41 | |
42 INCLUDE_PATHS += -I$(TICKER_ROOT) \ | |
43 -I$(GTK_TOP)/include \ | |
44 -I$(GTK_TOP)/include/gtk-2.0 \ | |
45 -I$(GTK_TOP)/include/glib-2.0 \ | |
46 -I$(GTK_TOP)/include/pango-1.0 \ | |
47 -I$(GTK_TOP)/include/atk-1.0 \ | |
48 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
49 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
50 -I$(GAIM_TOP)/src \ | |
51 -I$(GAIM_TOP)/src/win32 \ | |
52 -I$(GAIM_TOP) | |
53 | |
54 | |
55 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
56 -L$(GAIM_TOP)/src | |
57 | |
58 | |
59 ## | |
60 ## SOURCES, OBJECTS | |
61 ## | |
62 | |
63 C_SRC = ticker.c \ | |
64 gtkticker.c | |
65 | |
66 | |
67 OBJECTS = $(C_SRC:%.c=%.o) | |
68 | |
69 | |
70 ## | |
71 ## LIBRARIES | |
72 ## | |
73 | |
74 LIBS = -lgtk-win32-2.0 -lglib-2.0 -lgdk-win32-2.0 -lgmodule-2.0 -lgobject-2.0 -lws2_32 -lintl -lgaim | |
75 | |
76 | |
77 ## | |
78 ## RULES | |
79 ## | |
80 | |
81 # How to make a C file | |
82 | |
83 %.o: %.c | |
84 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
85 | |
86 ## | |
87 ## TARGET DEFINITIONS | |
88 ## | |
89 | |
90 .PHONY: all clean | |
91 | |
92 all: $(TARGET).dll | |
93 | |
94 install: | |
95 cp $(TICKER_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
96 | |
97 | |
98 ## | |
99 ## BUILD Dependencies | |
100 ## | |
101 | |
102 $(GAIM_TOP)/src/gaim.lib: | |
103 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
104 | |
105 ## | |
106 ## BUILD DLL | |
107 ## | |
108 | |
109 $(TARGET).def: $(OBJECTS) | |
110 dlltool --dllname $(TARGET).dll -z $(TARGET).def \ | |
111 $(OBJECTS) | |
112 | |
113 $(TARGET).base: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib | |
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
114 $(CC) -mdll -o junk.tmp -Wl,--base-file,$@ $(OBJECTS) $(LIB_PATHS) $(LIBS) |
3630 | 115 rm -rf junk.tmp |
116 | |
117 $(TARGET).exp: $(TARGET).def $(TARGET).base | |
118 dlltool --dllname $(TARGET).dll --base-file $(TARGET).base \ | |
119 --output-exp $(TARGET).exp --def $(TARGET).def | |
120 rm -rf $(TARGET).base | |
121 | |
122 $(TARGET).dll: $(OBJECTS) $(TARGET).exp $(GAIM_TOP)/src/gaim.lib | |
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
123 $(CC) -mdll -o $(TARGET).dll $(OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(LIBS) |
3630 | 124 rm -rf $(TARGET).exp |
125 | |
126 | |
127 ## | |
128 ## CLEAN RULES | |
129 ## | |
130 | |
131 clean: | |
132 rm -rf *.o | |
133 rm -rf $(TARGET).dll | |
134 rm -rf $(TARGET).def |