Mercurial > pidgin.yaz
comparison gtk/plugins/win32/winprefs/Makefile.mingw @ 14224:ab8a105eff62
[gaim-migrate @ 16905]
First step of getting wingaim working again.
libgaim and gtk are compiling.
The protocols aren't compiling yet.
There are a number of things that are compiling, but should be cleaned up.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Sun, 20 Aug 2006 16:49:37 +0000 |
parents | |
children | 8793fc8f7064 |
comparison
equal
deleted
inserted
replaced
14223:7c560c01b8f9 | 14224:ab8a105eff62 |
---|---|
1 # | |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for winprefs plugin. | |
5 # | |
6 | |
7 # | |
8 # PATHS | |
9 # | |
10 | |
11 GTK_TOP := ../../../../../win32-dev/gtk_2_0 | |
12 GAIM_TOP := ../../../.. | |
13 LIBGAIM_TOP := $(GAIM_TOP)/libgaim | |
14 GTKGAIM_TOP := $(GAIM_TOP)/gtk | |
15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
16 DLL_INSTALL_DIR := $(GAIM_INSTALL_DIR)/plugins | |
17 | |
18 ## | |
19 ## VARIABLE DEFINITIONS | |
20 ## | |
21 | |
22 TARGET = winprefs | |
23 | |
24 # Compiler Options | |
25 | |
26 CFLAGS = | |
27 | |
28 DEFINES = -DWINVER=0x500 | |
29 | |
30 ## | |
31 ## INCLUDE MAKEFILES | |
32 ## | |
33 | |
34 include $(LIBGAIM_TOP)/win32/global.mak | |
35 | |
36 ## | |
37 ## INCLUDE PATHS | |
38 ## | |
39 | |
40 INCLUDE_PATHS += -I. \ | |
41 -I$(GTK_TOP)/include \ | |
42 -I$(GTK_TOP)/include/gtk-2.0 \ | |
43 -I$(GTK_TOP)/include/glib-2.0 \ | |
44 -I$(GTK_TOP)/include/pango-1.0 \ | |
45 -I$(GTK_TOP)/include/atk-1.0 \ | |
46 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
47 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
48 -I$(LIBGAIM_TOP) \ | |
49 -I$(LIBGAIM_TOP)/win32 \ | |
50 -I$(GTKGAIM_TOP) \ | |
51 -I$(GTKGAIM_TOP)/win32 \ | |
52 -I$(GAIM_TOP) | |
53 | |
54 | |
55 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
56 -L$(LIBGAIM_TOP) \ | |
57 -L$(GTKGAIM_TOP) | |
58 | |
59 | |
60 ## | |
61 ## SOURCES, OBJECTS | |
62 ## | |
63 | |
64 C_SRC = winprefs.c \ | |
65 gtkappbar.c | |
66 | |
67 | |
68 OBJECTS = $(C_SRC:%.c=%.o) | |
69 | |
70 | |
71 ## | |
72 ## LIBRARIES | |
73 ## | |
74 | |
75 LIBS = -lgtk-win32-2.0 \ | |
76 -lglib-2.0 \ | |
77 -lgdk-win32-2.0 \ | |
78 -lgmodule-2.0 \ | |
79 -lgobject-2.0 \ | |
80 -lws2_32 \ | |
81 -lintl \ | |
82 -lgaim \ | |
83 -lgtkgaim | |
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: $(TARGET).dll | |
104 cp $(TARGET).dll $(DLL_INSTALL_DIR) | |
105 | |
106 | |
107 ## | |
108 ## BUILD Dependencies | |
109 ## | |
110 | |
111 $(GTKGAIM_TOP)/gtkgaim.dll.a: | |
112 $(MAKE) -C $(GTKGAIM_TOP) -f Makefile.mingw gtkgaim.dll.a | |
113 | |
114 ## | |
115 ## BUILD DLL | |
116 ## | |
117 | |
118 $(TARGET).dll: $(OBJECTS) $(GTKGAIM_TOP)/gtkgaim.dll.a | |
119 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll | |
120 | |
121 ## | |
122 ## CLEAN RULES | |
123 ## | |
124 | |
125 clean: | |
126 rm -rf *.o | |
127 rm -rf $(TARGET).dll |