Mercurial > pidgin
comparison plugins/win32/transparency/Makefile.mingw @ 3729:a8f0c169e529
[gaim-migrate @ 3867]
ok
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Thu, 17 Oct 2002 21:23:09 +0000 |
parents | |
children | 72d973958607 |
comparison
equal
deleted
inserted
replaced
3728:73e06ba29015 | 3729:a8f0c169e529 |
---|---|
1 # | |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32trans plugin. | |
5 # | |
6 | |
7 # | |
8 # PATHS | |
9 # | |
10 | |
11 INCLUDE_DIR := . | |
12 | |
13 GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
14 GAIM_TOP := ../../.. | |
15 TRANSPARENCY_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 = win2ktrans | |
24 | |
25 VERSION := $(shell cat $(GAIM_TOP)/VERSION) | |
26 | |
27 # Compiler Options | |
28 | |
29 CC = gcc.exe | |
30 | |
31 CFLAGS = -O2 -Werror -Wall -mno-cygwin -fnative-struct | |
32 | |
33 DEFINES = -DGTK_ENABLE_BROKEN -DVERSION=\"$(VERSION)\" | |
34 | |
35 | |
36 ## | |
37 ## INCLUDE MAKEFILES | |
38 ## | |
39 | |
40 | |
41 ## | |
42 ## INCLUDE PATHS | |
43 ## | |
44 | |
45 INCLUDE_PATHS += -I$(TRANSPARENCY_ROOT) \ | |
46 -I$(GTK_TOP)/include \ | |
47 -I$(GTK_TOP)/include/gtk-2.0 \ | |
48 -I$(GTK_TOP)/include/glib-2.0 \ | |
49 -I$(GTK_TOP)/include/pango-1.0 \ | |
50 -I$(GTK_TOP)/include/atk-1.0 \ | |
51 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
52 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
53 -I$(GAIM_TOP)/src \ | |
54 -I$(GAIM_TOP)/src/win32 \ | |
55 -I$(GAIM_TOP) | |
56 | |
57 | |
58 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
59 -L$(GAIM_TOP)/src \ | |
60 -L$(TRANSPARENCY_ROOT) | |
61 | |
62 | |
63 ## | |
64 ## SOURCES, OBJECTS | |
65 ## | |
66 | |
67 C_SRC = win2ktrans.c \ | |
68 wintransparency.c | |
69 | |
70 | |
71 OBJECTS = $(C_SRC:%.c=%.o) | |
72 | |
73 | |
74 ## | |
75 ## LIBRARIES | |
76 ## | |
77 | |
78 LIBS = -lgtk-win32-2.0 -lglib-2.0 -lgdk-win32-2.0 -lgmodule-2.0 -lgobject-2.0 -lws2_32 -lintl -lgaim -llibwintransparency | |
79 | |
80 | |
81 ## | |
82 ## RULES | |
83 ## | |
84 | |
85 # How to make a C file | |
86 | |
87 %.o: %.c | |
88 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
89 | |
90 ## | |
91 ## TARGET DEFINITIONS | |
92 ## | |
93 | |
94 .PHONY: all clean | |
95 | |
96 all: libwintransparency.lib $(TARGET).dll | |
97 | |
98 install: | |
99 cp $(TRANSPARENCY_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
100 | |
101 | |
102 ## | |
103 ## BUILD Dependencies | |
104 ## | |
105 | |
106 $(GAIM_TOP)/src/gaim.lib: | |
107 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
108 | |
109 ## | |
110 ## BUILD DLL | |
111 ## | |
112 | |
113 $(TARGET).def: $(OBJECTS) | |
114 dlltool --dllname $(TARGET).dll -z $(TARGET).def \ | |
115 $(OBJECTS) | |
116 | |
117 $(TARGET).base: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib | |
118 gcc -mdll -o junk.tmp -Wl,--base-file,$@ $(OBJECTS) $(LIB_PATHS) $(LIBS) | |
119 rm -rf junk.tmp | |
120 | |
121 $(TARGET).exp: $(TARGET).def $(TARGET).base | |
122 dlltool --dllname $(TARGET).dll --base-file $(TARGET).base \ | |
123 --output-exp $(TARGET).exp --def $(TARGET).def | |
124 rm -rf $(TARGET).base | |
125 | |
126 $(TARGET).dll: $(OBJECTS) $(TARGET).exp $(GAIM_TOP)/src/gaim.lib | |
127 gcc -mdll -o $(TARGET).dll $(OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(LIBS) | |
128 rm -rf $(TARGET).exp | |
129 | |
130 libwintransparency.lib: $(OBJECTS) | |
131 dlltool -k -l liblibwintransparency.a -d wintransparency.def | |
132 | |
133 | |
134 ## | |
135 ## CLEAN RULES | |
136 ## | |
137 | |
138 clean: | |
139 rm -rf *.o | |
140 rm -rf $(TARGET).dll | |
141 rm -rf $(TARGET).def | |
142 rm -rf libwintransparency.a |