Sat, 17 May 2014 12:40:29 +0200
Coverity: missing break in tcl plugin
| 7831 | 1 | # |
| 2 | # Makefile.mingw | |
| 3 | # | |
| 4 | # Description: Makefile for tcl plugin loader plugin. | |
| 5 | # | |
| 6 | ||
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
7 | PIDGIN_TREE_TOP := ../../.. |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
8 | include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak |
| 7831 | 9 | |
| 10 | TARGET = tcl | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
11 | TCL_INC_DIR := $(TCL_LIB_TOP)/include |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
12 | DEFINES += -DHAVE_TK -DUSE_TCL_STUBS -DUSE_TK_STUBS |
| 7831 | 13 | |
| 14 | ## | |
| 15 | ## INCLUDE PATHS | |
| 16 | ## | |
| 17 | INCLUDE_PATHS += -I. \ | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
18 | -I$(PIDGIN_TREE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
19 | -I$(PURPLE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
20 | -I$(PURPLE_TOP)/win32 \ |
| 7831 | 21 | -I$(GTK_TOP)/include \ |
| 22 | -I$(GTK_TOP)/include/glib-2.0 \ | |
| 23 | -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 24 | -I$(TCL_INC_DIR) | |
| 25 | ||
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
26 | LIB_PATHS += -L$(GTK_TOP)/lib \ |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
27 | -L$(PURPLE_TOP) \ |
|
33861
71533f0d5dc0
win32: switch to OBS, update and push to runtime-deps package - libenchant, gtkspell, meanwhile, tcl
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
16100
diff
changeset
|
28 | -L$(TCL_LIB_TOP)/lib |
| 7831 | 29 | |
| 30 | ## | |
| 31 | ## SOURCES, OBJECTS | |
| 32 | ## | |
| 33 | C_SRC = tcl.c \ | |
|
13848
66cd8d947bde
[gaim-migrate @ 16302]
Daniel Atallah <datallah@pidgin.im>
parents:
13825
diff
changeset
|
34 | tcl_cmd.c \ |
| 7831 | 35 | tcl_cmds.c \ |
| 36 | tcl_glib.c \ | |
|
13825
8ebbadddec26
[gaim-migrate @ 16263]
Richard Laager <rlaager@pidgin.im>
parents:
13456
diff
changeset
|
37 | tcl_ref.c \ |
|
13456
4949b0656a2b
[gaim-migrate @ 15830]
Daniel Atallah <datallah@pidgin.im>
parents:
7831
diff
changeset
|
38 | tcl_signals.c |
| 7831 | 39 | |
| 40 | OBJECTS = $(C_SRC:%.c=%.o) | |
| 41 | ||
| 42 | ## | |
| 43 | ## LIBRARIES | |
| 44 | ## | |
|
14286
9ff15ceacd34
[gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
45 | LIBS = \ |
| 7831 | 46 | -lglib-2.0 \ |
| 34976 | 47 | -lgobject-2.0 \ |
| 7831 | 48 | -lws2_32 \ |
| 49 | -lintl \ | |
|
15438
c3e93cd038c5
Update win32 build for libpurple and pidgin renames. This compiles, but is far from complete.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
50 | -lpurple \ |
|
33861
71533f0d5dc0
win32: switch to OBS, update and push to runtime-deps package - libenchant, gtkspell, meanwhile, tcl
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
16100
diff
changeset
|
51 | -ltclstub85 \ |
|
71533f0d5dc0
win32: switch to OBS, update and push to runtime-deps package - libenchant, gtkspell, meanwhile, tcl
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
16100
diff
changeset
|
52 | -ltkstub85 |
| 7831 | 53 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
54 | include $(PIDGIN_COMMON_RULES) |
| 7831 | 55 | |
| 56 | ## | |
| 57 | ## TARGET DEFINITIONS | |
| 58 | ## | |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
59 | .PHONY: all install clean |
| 7831 | 60 | |
| 61 | all: $(TARGET).dll | |
| 62 | ||
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
63 | install: all $(PURPLE_INSTALL_PLUGINS_DIR) |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
64 | cp $(TARGET).dll $(PURPLE_INSTALL_PLUGINS_DIR) |
| 7831 | 65 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
66 | $(OBJECTS): $(PURPLE_CONFIG_H) |
| 7831 | 67 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
68 | $(TARGET).dll: $(PURPLE_DLL).a $(OBJECTS) |
| 7831 | 69 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
| 70 | ||
| 71 | ## | |
| 72 | ## CLEAN RULES | |
| 73 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
74 | clean: |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
75 | rm -rf $(OBJECTS) |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
76 | rm -rf $(TARGET).dll |
| 7831 | 77 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
78 | include $(PIDGIN_COMMON_TARGETS) |