Mercurial > pidgin.yaz
comparison gtk/plugins/win32/transparency/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 win32trans plugin. | |
5 # | |
6 | |
7 # | |
8 # PATHS | |
9 # | |
10 | |
11 GTK_TOP := ../../../../../win32-dev/gtk_2_0 | |
12 GAIM_TOP := ../../../.. | |
13 LIBGAIM_TOP := ../../../../libgaim | |
14 GTKGAIM_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 = win2ktrans | |
23 | |
24 # Compiler Options | |
25 | |
26 CFLAGS = | |
27 | |
28 # This plugin requires W2K+ API | |
29 DEFINES = -D_WIN32_WINNT=0x0500 | |
30 | |
31 ## | |
32 ## INCLUDE MAKEFILES | |
33 ## | |
34 | |
35 include $(LIBGAIM_TOP)/win32/global.mak | |
36 | |
37 ## | |
38 ## INCLUDE PATHS | |
39 ## | |
40 | |
41 INCLUDE_PATHS += -I. \ | |
42 -I$(GTK_TOP)/include \ | |
43 -I$(GTK_TOP)/include/gtk-2.0 \ | |
44 -I$(GTK_TOP)/include/glib-2.0 \ | |
45 -I$(GTK_TOP)/include/pango-1.0 \ | |
46 -I$(GTK_TOP)/include/atk-1.0 \ | |
47 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
48 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
49 -I$(LIBGAIM_TOP) \ | |
50 -I$(LIBGAIM_TOP)/win32 \ | |
51 -I$(GTKGAIM_TOP) \ | |
52 -I$(GTKGAIM_TOP)/win32 \ | |
53 -I$(GAIM_TOP) | |
54 | |
55 | |
56 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
57 -L$(LIBGAIM_TOP) \ | |
58 -L$(GTKGAIM_TOP) | |
59 | |
60 | |
61 ## | |
62 ## SOURCES, OBJECTS | |
63 ## | |
64 | |
65 C_SRC = win2ktrans.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 -lintl \ | |
81 -lgtkgaim \ | |
82 -lgaim | |
83 | |
84 | |
85 ## | |
86 ## RULES | |
87 ## | |
88 | |
89 # How to make a C file | |
90 | |
91 %.o: %.c | |
92 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
93 | |
94 ## | |
95 ## TARGET DEFINITIONS | |
96 ## | |
97 | |
98 .PHONY: all clean | |
99 | |
100 all: $(TARGET).dll | |
101 | |
102 install: all | |
103 cp $(TARGET).dll $(DLL_INSTALL_DIR) | |
104 | |
105 | |
106 ## | |
107 ## BUILD Dependencies | |
108 ## | |
109 | |
110 $(GTKGAIM_TOP)/gtkgaim.dll.a: | |
111 $(MAKE) -C $(GTKGAIM_TOP) -f Makefile.mingw gtkgaim.dll.a | |
112 | |
113 ## | |
114 ## BUILD DLL | |
115 ## | |
116 | |
117 $(TARGET).dll: $(OBJECTS) $(GTKGAIM_TOP)/gtkgaim.dll.a | |
118 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll | |
119 | |
120 ## | |
121 ## CLEAN RULES | |
122 ## | |
123 | |
124 clean: | |
125 rm -rf *.o | |
126 rm -rf $(TARGET).dll |