Tue, 14 Aug 2007 19:36:49 +0000
More icons from Hylke
| 14286 | 1 | # |
| 2 | # Makefile.mingw | |
| 3 | # | |
| 4 | # Description: Makefile for winprefs 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 |
| 14286 | 9 | |
| 10 | TARGET = winprefs | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
11 | DEFINES += -DWINVER=0x500 |
| 14286 | 12 | |
| 13 | ## | |
| 14 | ## INCLUDE PATHS | |
| 15 | ## | |
| 16 | INCLUDE_PATHS += -I. \ | |
| 17 | -I$(GTK_TOP)/include \ | |
| 18 | -I$(GTK_TOP)/include/gtk-2.0 \ | |
| 19 | -I$(GTK_TOP)/include/glib-2.0 \ | |
| 20 | -I$(GTK_TOP)/include/pango-1.0 \ | |
| 21 | -I$(GTK_TOP)/include/atk-1.0 \ | |
|
16294
8310c8cce698
Add cairo to the mingw build include path. Fixes #175 .
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
22 | -I$(GTK_TOP)/include/cairo \ |
| 14286 | 23 | -I$(GTK_TOP)/lib/glib-2.0/include \ |
| 24 | -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
25 | -I$(PURPLE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
26 | -I$(PURPLE_TOP)/win32 \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
27 | -I$(PIDGIN_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
28 | -I$(PIDGIN_TOP)/win32 \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
29 | -I$(PIDGIN_TREE_TOP) |
| 14286 | 30 | |
|
16393
d89faf3f5282
Allow include and lib paths to be overridden from local.ent
Daniel Atallah <datallah@pidgin.im>
parents:
16294
diff
changeset
|
31 | 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
|
32 | -L$(PURPLE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
33 | -L$(PIDGIN_TOP) |
| 14286 | 34 | |
| 35 | ## | |
| 36 | ## SOURCES, OBJECTS | |
| 37 | ## | |
| 38 | C_SRC = winprefs.c \ | |
| 39 | gtkappbar.c | |
| 40 | ||
| 41 | OBJECTS = $(C_SRC:%.c=%.o) | |
| 42 | ||
| 43 | ## | |
| 44 | ## LIBRARIES | |
| 45 | ## | |
| 46 | LIBS = -lgtk-win32-2.0 \ | |
| 47 | -lglib-2.0 \ | |
| 48 | -lgdk-win32-2.0 \ | |
| 49 | -lgmodule-2.0 \ | |
| 50 | -lgobject-2.0 \ | |
| 51 | -lws2_32 \ | |
| 52 | -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
|
53 | -lpurple \ |
|
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
|
54 | -lpidgin |
| 14286 | 55 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
56 | include $(PIDGIN_COMMON_RULES) |
| 14286 | 57 | |
| 58 | ## | |
| 59 | ## TARGET DEFINITIONS | |
| 60 | ## | |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
61 | .PHONY: all install clean |
| 14286 | 62 | |
| 63 | all: $(TARGET).dll | |
| 64 | ||
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
65 | install: $(TARGET).dll $(PIDGIN_INSTALL_PLUGINS_DIR) |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
66 | cp $(TARGET).dll $(PIDGIN_INSTALL_PLUGINS_DIR) |
| 14286 | 67 | |
| 68 | ## | |
| 69 | ## BUILD DLL | |
| 70 | ## | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
71 | $(TARGET).dll: $(PURPLE_DLL).a $(PIDGIN_DLL).a $(OBJECTS) |
| 14286 | 72 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
| 73 | ||
| 74 | ## | |
| 75 | ## CLEAN RULES | |
| 76 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
77 | clean: |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
78 | rm -rf $(OBJECTS) |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
79 | rm -rf $(TARGET).dll |
| 14286 | 80 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
81 | include $(PIDGIN_COMMON_TARGETS) |