comparison plugins/win32/transparency/Makefile.mingw @ 4096:72d973958607

[gaim-migrate @ 4311] Improved prefs page, added slider option for IM windowswintransparency.c committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Thu, 19 Dec 2002 02:41:31 +0000
parents a8f0c169e529
children bb7723f0b4b9
comparison
equal deleted inserted replaced
4095:260ebd4bdc8d 4096:72d973958607
6 6
7 # 7 #
8 # PATHS 8 # PATHS
9 # 9 #
10 10
11 INCLUDE_DIR := .
12
13 GTK_TOP := ../../../../win32-dev/gtk_2_0 11 GTK_TOP := ../../../../win32-dev/gtk_2_0
14 GAIM_TOP := ../../.. 12 GAIM_TOP := ../../..
15 TRANSPARENCY_ROOT := .
16 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir 13 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir
17 DLL_INSTALL_DIR := $(GAIM_INSTALL_DIR)/plugins 14 DLL_INSTALL_DIR := $(GAIM_INSTALL_DIR)/plugins
18 15
19 ## 16 ##
20 ## VARIABLE DEFINITIONS 17 ## VARIABLE DEFINITIONS
21 ## 18 ##
22 19
23 TARGET = win2ktrans 20 TARGET = win2ktrans
24 21
22 CC = gcc.exe
23
25 VERSION := $(shell cat $(GAIM_TOP)/VERSION) 24 VERSION := $(shell cat $(GAIM_TOP)/VERSION)
26 25
27 # Compiler Options 26 # Compiler Options
28 27
29 CC = gcc.exe 28 CFLAGS = -O2 -Wall -Werror -mno-cygwin -fnative-struct
30 29
31 CFLAGS = -O2 -Werror -Wall -mno-cygwin -fnative-struct 30 DEFINES = -DVERSION=\"$(VERSION)\" \
32 31 -DGTK_ENABLE_BROKEN
33 DEFINES = -DGTK_ENABLE_BROKEN -DVERSION=\"$(VERSION)\"
34 32
35 33
36 ## 34 ##
37 ## INCLUDE MAKEFILES 35 ## INCLUDE MAKEFILES
38 ## 36 ##
40 38
41 ## 39 ##
42 ## INCLUDE PATHS 40 ## INCLUDE PATHS
43 ## 41 ##
44 42
45 INCLUDE_PATHS += -I$(TRANSPARENCY_ROOT) \ 43 INCLUDE_PATHS += -I. \
46 -I$(GTK_TOP)/include \ 44 -I$(GTK_TOP)/include \
47 -I$(GTK_TOP)/include/gtk-2.0 \ 45 -I$(GTK_TOP)/include/gtk-2.0 \
48 -I$(GTK_TOP)/include/glib-2.0 \ 46 -I$(GTK_TOP)/include/glib-2.0 \
49 -I$(GTK_TOP)/include/pango-1.0 \ 47 -I$(GTK_TOP)/include/pango-1.0 \
50 -I$(GTK_TOP)/include/atk-1.0 \ 48 -I$(GTK_TOP)/include/atk-1.0 \
54 -I$(GAIM_TOP)/src/win32 \ 52 -I$(GAIM_TOP)/src/win32 \
55 -I$(GAIM_TOP) 53 -I$(GAIM_TOP)
56 54
57 55
58 LIB_PATHS = -L$(GTK_TOP)/lib \ 56 LIB_PATHS = -L$(GTK_TOP)/lib \
59 -L$(GAIM_TOP)/src \ 57 -L$(GAIM_TOP)/src
60 -L$(TRANSPARENCY_ROOT)
61 58
62 59
63 ## 60 ##
64 ## SOURCES, OBJECTS 61 ## SOURCES, OBJECTS
65 ## 62 ##
66 63
67 C_SRC = win2ktrans.c \ 64 C_SRC = win2ktrans.c
68 wintransparency.c
69 65
70 66
71 OBJECTS = $(C_SRC:%.c=%.o) 67 OBJECTS = $(C_SRC:%.c=%.o)
72 68
73 69
74 ## 70 ##
75 ## LIBRARIES 71 ## LIBRARIES
76 ## 72 ##
77 73
78 LIBS = -lgtk-win32-2.0 -lglib-2.0 -lgdk-win32-2.0 -lgmodule-2.0 -lgobject-2.0 -lws2_32 -lintl -lgaim -llibwintransparency 74 LIBS = -lgtk-win32-2.0 \
75 -lglib-2.0 \
76 -lgdk-win32-2.0 \
77 -lgmodule-2.0 \
78 -lgobject-2.0 \
79 -lws2_32 \
80 -lintl \
81 -lgaim
79 82
80 83
81 ## 84 ##
82 ## RULES 85 ## RULES
83 ## 86 ##
91 ## TARGET DEFINITIONS 94 ## TARGET DEFINITIONS
92 ## 95 ##
93 96
94 .PHONY: all clean 97 .PHONY: all clean
95 98
96 all: libwintransparency.lib $(TARGET).dll 99 all: $(TARGET).dll
97 100
98 install: 101 install:
99 cp $(TRANSPARENCY_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) 102 cp $(TARGET).dll $(DLL_INSTALL_DIR)
100 103
101 104
102 ## 105 ##
103 ## BUILD Dependencies 106 ## BUILD Dependencies
104 ## 107 ##
125 128
126 $(TARGET).dll: $(OBJECTS) $(TARGET).exp $(GAIM_TOP)/src/gaim.lib 129 $(TARGET).dll: $(OBJECTS) $(TARGET).exp $(GAIM_TOP)/src/gaim.lib
127 gcc -mdll -o $(TARGET).dll $(OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(LIBS) 130 gcc -mdll -o $(TARGET).dll $(OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(LIBS)
128 rm -rf $(TARGET).exp 131 rm -rf $(TARGET).exp
129 132
130 libwintransparency.lib: $(OBJECTS)
131 dlltool -k -l liblibwintransparency.a -d wintransparency.def
132
133 133
134 ## 134 ##
135 ## CLEAN RULES 135 ## CLEAN RULES
136 ## 136 ##
137 137
138 clean: 138 clean:
139 rm -rf *.o 139 rm -rf *.o
140 rm -rf $(TARGET).dll 140 rm -rf $(TARGET).dll
141 rm -rf $(TARGET).def 141 rm -rf $(TARGET).def
142 rm -rf libwintransparency.a