Mercurial > pidgin.yaz
comparison gtk/plugins/win32/transparency/Makefile.mingw @ 14315:8793fc8f7064
[gaim-migrate @ 17008]
Lee Roach revamped the win32 makefiles. This makes me happy, they were in dire need of some loving.
This makes life a great deal easier for anyone who wants to build out-of-tree plugins.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Wed, 23 Aug 2006 21:34:43 +0000 |
parents | ab8a105eff62 |
children | 5d03b309b482 |
comparison
equal
deleted
inserted
replaced
14314:8b8188fa98f4 | 14315:8793fc8f7064 |
---|---|
2 # Makefile.mingw | 2 # Makefile.mingw |
3 # | 3 # |
4 # Description: Makefile for win32trans plugin. | 4 # Description: Makefile for win32trans plugin. |
5 # | 5 # |
6 | 6 |
7 # | 7 GAIM_TOP := ../../../.. |
8 # PATHS | 8 include $(GAIM_TOP)/libgaim/win32/global.mak |
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 | 9 |
22 TARGET = win2ktrans | 10 TARGET = win2ktrans |
23 | 11 DEFINES += -D_WIN32_WINNT=0x0500 |
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 | 12 |
37 ## | 13 ## |
38 ## INCLUDE PATHS | 14 ## INCLUDE PATHS |
39 ## | 15 ## |
40 | |
41 INCLUDE_PATHS += -I. \ | 16 INCLUDE_PATHS += -I. \ |
42 -I$(GTK_TOP)/include \ | 17 -I$(GTK_TOP)/include \ |
43 -I$(GTK_TOP)/include/gtk-2.0 \ | 18 -I$(GTK_TOP)/include/gtk-2.0 \ |
44 -I$(GTK_TOP)/include/glib-2.0 \ | 19 -I$(GTK_TOP)/include/glib-2.0 \ |
45 -I$(GTK_TOP)/include/pango-1.0 \ | 20 -I$(GTK_TOP)/include/pango-1.0 \ |
46 -I$(GTK_TOP)/include/atk-1.0 \ | 21 -I$(GTK_TOP)/include/atk-1.0 \ |
47 -I$(GTK_TOP)/lib/glib-2.0/include \ | 22 -I$(GTK_TOP)/lib/glib-2.0/include \ |
48 -I$(GTK_TOP)/lib/gtk-2.0/include \ | 23 -I$(GTK_TOP)/lib/gtk-2.0/include \ |
49 -I$(LIBGAIM_TOP) \ | 24 -I$(GAIM_LIB_TOP) \ |
50 -I$(LIBGAIM_TOP)/win32 \ | 25 -I$(GAIM_LIB_TOP)/win32 \ |
51 -I$(GTKGAIM_TOP) \ | 26 -I$(GAIM_GTK_TOP) \ |
52 -I$(GTKGAIM_TOP)/win32 \ | 27 -I$(GAIM_GTK_TOP)/win32 \ |
53 -I$(GAIM_TOP) | 28 -I$(GAIM_TOP) |
54 | 29 |
55 | |
56 LIB_PATHS = -L$(GTK_TOP)/lib \ | 30 LIB_PATHS = -L$(GTK_TOP)/lib \ |
57 -L$(LIBGAIM_TOP) \ | 31 -L$(GAIM_LIB_TOP) \ |
58 -L$(GTKGAIM_TOP) | 32 -L$(GAIM_GTK_TOP) |
59 | |
60 | 33 |
61 ## | 34 ## |
62 ## SOURCES, OBJECTS | 35 ## SOURCES, OBJECTS |
63 ## | 36 ## |
64 | |
65 C_SRC = win2ktrans.c | 37 C_SRC = win2ktrans.c |
66 | 38 |
67 | |
68 OBJECTS = $(C_SRC:%.c=%.o) | 39 OBJECTS = $(C_SRC:%.c=%.o) |
69 | |
70 | 40 |
71 ## | 41 ## |
72 ## LIBRARIES | 42 ## LIBRARIES |
73 ## | 43 ## |
74 | |
75 LIBS = -lgtk-win32-2.0 \ | 44 LIBS = -lgtk-win32-2.0 \ |
76 -lglib-2.0 \ | 45 -lglib-2.0 \ |
77 -lgdk-win32-2.0 \ | 46 -lgdk-win32-2.0 \ |
78 -lgmodule-2.0 \ | 47 -lgmodule-2.0 \ |
79 -lgobject-2.0 \ | 48 -lgobject-2.0 \ |
80 -lintl \ | 49 -lintl \ |
81 -lgtkgaim \ | 50 -lgtkgaim \ |
82 -lgaim | 51 -lgaim |
83 | 52 |
84 | 53 include $(GAIM_COMMON_RULES) |
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 | 54 |
94 ## | 55 ## |
95 ## TARGET DEFINITIONS | 56 ## TARGET DEFINITIONS |
96 ## | 57 ## |
97 | |
98 .PHONY: all clean | 58 .PHONY: all clean |
99 | 59 |
100 all: $(TARGET).dll | 60 all: $(TARGET).dll |
101 | 61 |
102 install: all | 62 install: all $(GAIM_INSTALL_PLUGINS_DIR) |
103 cp $(TARGET).dll $(DLL_INSTALL_DIR) | 63 cp $(TARGET).dll $(GAIM_INSTALL_PLUGINS_DIR) |
104 | 64 |
105 | 65 $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(GAIM_GTKGAIM_DLL).a $(OBJECTS) |
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 | 66 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
119 | 67 |
120 ## | 68 ## |
121 ## CLEAN RULES | 69 ## CLEAN RULES |
122 ## | 70 ## |
71 clean: | |
72 rm -rf $(OBJECTS) | |
73 rm -rf $(TARGET).dll | |
123 | 74 |
124 clean: | 75 include $(GAIM_COMMON_TARGETS) |
125 rm -rf *.o | |
126 rm -rf $(TARGET).dll |