Mercurial > pidgin.yaz
annotate gtk/plugins/perl/common/Makefile.mingw @ 14699:cd1ddfa8868c
[gaim-migrate @ 17451]
A couple Makefile.mingw tweaks from Lee Roach.
`make -f Makefile.mingw clean` will no longer delete win32-install-dir, a new "uninstall" target has been added for that purpose.
The perl Makefiles "clean" target will now delete .c files generated from the .xs files.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Sun, 08 Oct 2006 19:17:32 +0000 |
parents | 5d03b309b482 |
children |
rev | line source |
---|---|
14447
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1 # |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
2 # Makefile.mingw |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
3 # |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
4 # Description: Makefile for Gaim perl module. |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
5 # |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
6 |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
7 GAIM_TOP := ../../../.. |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
8 include $(GAIM_TOP)/libgaim/win32/global.mak |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
9 |
14571
9366a5873ebf
[gaim-migrate @ 17295]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14449
diff
changeset
|
10 TARGET = GtkUI |
14447
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
11 EXTUTILS := C:/perl/lib/ExtUtils |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
12 |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
13 CFLAGS += -Wno-comment |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
14 |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
15 ## |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
16 ## INCLUDE PATHS |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
17 ## |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
18 INCLUDE_PATHS = -I. \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
19 -I$(GAIM_TOP) \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
20 -I$(GAIM_LIB_TOP) \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
21 -I$(GAIM_GTK_TOP) \ |
14575
7a8bbd6d1c2d
[gaim-migrate @ 17299]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14571
diff
changeset
|
22 -I$(GAIM_GTK_TOP)/win32 \ |
14447
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
23 -I$(GTK_TOP)/include \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
24 -I$(GTK_TOP)/include/atk-1.0 \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
25 -I$(GTK_TOP)/include/glib-2.0 \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
26 -I$(GTK_TOP)/include/gtk-2.0 \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
27 -I$(GTK_TOP)/include/pango-1.0 \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
28 -I$(GTK_TOP)/lib/glib-2.0/include \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
29 -I$(GTK_TOP)/lib/gtk-2.0/include \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
30 -I$(PERL_LIB_TOP)/CORE |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
31 |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
32 LIB_PATHS = -L$(PERL_LIB_TOP) \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
33 -L$(GAIM_LIB_TOP) \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
34 -L$(GAIM_GTK_TOP) \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
35 -L$(GAIM_LIB_PERL_TOP) \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
36 -L$(GTK_TOP)/lib |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
37 |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
38 ## |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
39 ## SOURCES, OBJECTS |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
40 ## |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
41 XS_FILES = \ |
14571
9366a5873ebf
[gaim-migrate @ 17295]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14449
diff
changeset
|
42 GtkUI.xs \ |
14447
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
43 GtkAccount.xs \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
44 GtkBlist.xs \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
45 GtkConn.xs \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
46 GtkConv.xs \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
47 GtkConvWin.xs \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
48 GtkDebug.xs \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
49 GtkDialogs.xs \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
50 GtkFt.xs \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
51 GtkIMHtml.xs \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
52 GtkIMHtmlToolbar.xs \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
53 GtkLog.xs \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
54 GtkMenuTray.xs \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
55 GtkPlugin.xs \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
56 GtkPluginPref.xs \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
57 GtkPounce.xs \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
58 GtkPrefs.xs \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
59 GtkPrivacy.xs \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
60 GtkRoomlist.xs \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
61 GtkSavedStatuses.xs \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
62 GtkSound.xs \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
63 GtkStatusBox.xs \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
64 GtkThemes.xs \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
65 GtkUtils.xs |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
66 |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
67 |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
68 C_FILES = $(XS_FILES:%.xs=%.c) |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
69 OBJECTS = $(C_FILES:%.c=%.o) |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
70 |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
71 ## |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
72 ## LIBRARIES |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
73 ## |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
74 LIBS = -lperl58 \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
75 -lperl \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
76 -lgaim \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
77 -lgtkgaim \ |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
78 -lglib-2.0 |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
79 |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
80 include $(GAIM_COMMON_RULES) |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
81 |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
82 ## |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
83 ## TARGETS |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
84 ## |
14576
5d03b309b482
[gaim-migrate @ 17300]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14575
diff
changeset
|
85 .PHONY: all install clean |
14447
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
86 |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
87 all: $(TARGET).dll |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
88 |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
89 $(GAIM_INSTALL_PERLMOD_DIR)/Gaim.pm: |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
90 $(MAKE) -C $(GAIM_LIB_PERL_TOP)/common -f $(GAIM_WIN32_MAKEFILE) install |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
91 |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
92 install: all $(GAIM_INSTALL_PERLMOD_DIR)/Gaim.pm |
14449
74cdcd0c58b5
[gaim-migrate @ 17163]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14447
diff
changeset
|
93 rm -f $(GAIM_INSTALL_PERLMOD_DIR)/$(TARGET).dll $(GAIM_INSTALL_PERLMOD_DIR)/Gaim/$(TARGET).pm |
14447
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
94 mkdir -p $(GAIM_INSTALL_PERLMOD_DIR)/Gaim |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
95 cp $(TARGET).pm $(GAIM_INSTALL_PERLMOD_DIR)/Gaim/ |
14449
74cdcd0c58b5
[gaim-migrate @ 17163]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14447
diff
changeset
|
96 cp $(TARGET).dll $(GAIM_INSTALL_PERLMOD_DIR) |
14447
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
97 |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
98 $(C_FILES): $(GAIM_CONFIG_H) |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
99 |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
100 $(TARGET).dll: $(GAIM_GTKGAIM_DLL).a $(GAIM_LIBGAIM_PERL_DLL).a $(OBJECTS) |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
101 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) -o $(TARGET).dll |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
102 |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
103 ## |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
104 ## CLEAN |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
105 ## |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
106 clean: |
14699
cd1ddfa8868c
[gaim-migrate @ 17451]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14576
diff
changeset
|
107 rm -f *.o $(C_FILES) $(TARGET).dll |
14447
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
108 |
e88aae4f4c40
[gaim-migrate @ 17161]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
109 include $(GAIM_COMMON_TARGETS) |