comparison libpurple/protocols/zephyr/Makefile.mingw @ 16039:ded8da3de5f8

This should get all the Win32 Makefiles in line with the names Pidgin and Purple. I tried to separate PIDGIN and PURPLE values as much as a could to make it easier to divide them later if that's ever desired.
author Kevin Stange <kevin@simguy.net>
date Tue, 10 Apr 2007 06:19:29 +0000
parents 0e17470b47c2
children 1843c0180fbe
comparison
equal deleted inserted replaced
16037:8f62c4177e0c 16039:ded8da3de5f8
2 # Makefile.mingw 2 # Makefile.mingw
3 # 3 #
4 # Description: Makefile for win32 (mingw) version of libzephyr 4 # Description: Makefile for win32 (mingw) version of libzephyr
5 # 5 #
6 6
7 GAIM_TOP := ../../.. 7 PIDGIN_TREE_TOP := ../../..
8 include $(GAIM_TOP)/libpurple/win32/global.mak 8 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
9 9
10 TARGET = libzephyr 10 TARGET = libzephyr
11 KRB4_TOP := $(WIN32_DEV_TOP)/kfw-2.6.3-final.fixed 11 KRB4_TOP := $(WIN32_DEV_TOP)/kfw-2.6.3-final.fixed
12 USE_KRB4 := false 12 USE_KRB4 := false
13 DEFINES += -DWIN32 -DKRB5_SYSTYPES__ 13 DEFINES += -DWIN32 -DKRB5_SYSTYPES__
18 endif 18 endif
19 19
20 # Static or Plugin... 20 # Static or Plugin...
21 ifeq ($(TYPE),STATIC) 21 ifeq ($(TYPE),STATIC)
22 DEFINES += -DSTATIC 22 DEFINES += -DSTATIC
23 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) 23 DLL_INSTALL_DIR = $(PURPLE_INSTALL_DIR)
24 else 24 else
25 ifeq ($(TYPE),PLUGIN) 25 ifeq ($(TYPE),PLUGIN)
26 DLL_INSTALL_DIR = $(GAIM_INSTALL_PLUGINS_DIR) 26 DLL_INSTALL_DIR = $(PURPLE_INSTALL_PLUGINS_DIR)
27 endif 27 endif
28 endif 28 endif
29 29
30 ## 30 ##
31 ## INCLUDE PATHS 31 ## INCLUDE PATHS
32 ## 32 ##
33 INCLUDE_PATHS += -I$(ZEPHYR_ROOT) \ 33 INCLUDE_PATHS += -I$(ZEPHYR_ROOT) \
34 -I$(GTK_TOP)/include \ 34 -I$(GTK_TOP)/include \
35 -I$(GTK_TOP)/include/glib-2.0 \ 35 -I$(GTK_TOP)/include/glib-2.0 \
36 -I$(GTK_TOP)/lib/glib-2.0/include \ 36 -I$(GTK_TOP)/lib/glib-2.0/include \
37 -I$(GAIM_LIB_TOP) \ 37 -I$(PURPLE_TOP) \
38 -I$(GAIM_LIB_TOP)/win32 \ 38 -I$(PURPLE_TOP)/win32 \
39 -I$(GAIM_TOP) 39 -I$(PIDGIN_TREE_TOP)
40 40
41 ifeq ($(USE_KRB4), true) 41 ifeq ($(USE_KRB4), true)
42 INCLUDE_PATHS += -I$(KRB4_TOP)/inc/krb4 42 INCLUDE_PATHS += -I$(KRB4_TOP)/inc/krb4
43 endif 43 endif
44 44
45 LIB_PATHS = -L$(GTK_TOP)/lib \ 45 LIB_PATHS = -L$(GTK_TOP)/lib \
46 -L$(GAIM_LIB_TOP) 46 -L$(PURPLE_TOP)
47 47
48 ifeq ($(USE_KRB4), true) 48 ifeq ($(USE_KRB4), true)
49 LIB_PATHS+=-L$(KRB4_TOP)/lib/i386 49 LIB_PATHS+=-L$(KRB4_TOP)/lib/i386
50 endif 50 endif
51 51
120 120
121 ifeq ($(USE_KRB4),true) 121 ifeq ($(USE_KRB4),true)
122 LIBS+= -lkrbv4w32 122 LIBS+= -lkrbv4w32
123 endif 123 endif
124 124
125 include $(GAIM_COMMON_RULES) 125 include $(PIDGIN_COMMON_RULES)
126 126
127 ## 127 ##
128 ## TARGET DEFINITIONS 128 ## TARGET DEFINITIONS
129 ## 129 ##
130 .PHONY: all install clean 130 .PHONY: all install clean
132 all: $(TARGET).dll 132 all: $(TARGET).dll
133 133
134 install: all $(DLL_INSTALL_DIR) 134 install: all $(DLL_INSTALL_DIR)
135 cp $(TARGET).dll $(DLL_INSTALL_DIR) 135 cp $(TARGET).dll $(DLL_INSTALL_DIR)
136 136
137 $(OBJECTS): $(GAIM_CONFIG_H) 137 $(OBJECTS): $(PURPLE_CONFIG_H)
138 138
139 $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(OBJECTS) 139 $(TARGET).dll: $(PURPLE_DLL).a $(OBJECTS)
140 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--enable-stdcall-fixup -o $(TARGET).dll 140 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--enable-stdcall-fixup -o $(TARGET).dll
141 141
142 ## 142 ##
143 ## CLEAN RULES 143 ## CLEAN RULES
144 ## 144 ##
145 clean: 145 clean:
146 rm -f $(OBJECTS) 146 rm -f $(OBJECTS)
147 rm -f $(TARGET).dll 147 rm -f $(TARGET).dll
148 148
149 include $(GAIM_COMMON_TARGETS) 149 include $(PIDGIN_COMMON_TARGETS)