Mon, 18 Sep 2006 01:13:07 +0000
[gaim-migrate @ 17300]
Fix mingw makefile .PHONY targets.
Fix gtkwin32dep.h missing includes.
| 3630 | 1 | # |
| 2 | # Makefile.mingw | |
| 3 | # | |
| 4 | # Description: Makefile for win32 (mingw) version of libgg | |
| 5 | # | |
| 6 | ||
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
7 | GAIM_TOP := ../../.. |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
8 | include $(GAIM_TOP)/libgaim/win32/global.mak |
| 3630 | 9 | |
| 10 | TARGET = libgg | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
11 | CFLAGS += -include win32dep.h |
|
14617
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
12 | TYPE = PLUGIN |
| 3630 | 13 | |
|
11546
acb5676e57bb
[gaim-migrate @ 13801]
Daniel Atallah <datallah@pidgin.im>
parents:
11360
diff
changeset
|
14 | # Static or Plugin... |
| 3630 | 15 | ifeq ($(TYPE),STATIC) |
| 16 | DEFINES += -DSTATIC | |
| 17 | DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
| 18 | else | |
| 19 | ifeq ($(TYPE),PLUGIN) | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
20 | DLL_INSTALL_DIR = $(GAIM_INSTALL_PLUGINS_DIR) |
| 3630 | 21 | endif |
| 22 | endif | |
| 23 | ||
| 24 | ## | |
| 25 | ## INCLUDE PATHS | |
| 26 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
27 | INCLUDE_PATHS += -I. \ |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
28 | -I./lib \ |
| 3630 | 29 | -I$(GTK_TOP)/include \ |
| 30 | -I$(GTK_TOP)/include/glib-2.0 \ | |
| 31 | -I$(GTK_TOP)/lib/glib-2.0/include \ | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
32 | -I$(GAIM_LIB_TOP) \ |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
33 | -I$(GAIM_LIB_TOP)/win32 \ |
| 3630 | 34 | -I$(GAIM_TOP) |
| 35 | ||
| 36 | LIB_PATHS = -L$(GTK_TOP)/lib \ | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
37 | -L$(GAIM_LIB_TOP) \ |
| 3630 | 38 | |
| 39 | ## | |
| 40 | ## SOURCES, OBJECTS | |
| 41 | ## | |
| 11360 | 42 | C_SRC = \ |
| 43 | lib/common.c \ | |
| 44 | lib/events.c \ | |
| 45 | lib/http.c \ | |
| 46 | lib/libgadu.c \ | |
| 47 | lib/obsolete.c \ | |
| 48 | lib/pubdir.c \ | |
| 49 | lib/pubdir50.c \ | |
|
11546
acb5676e57bb
[gaim-migrate @ 13801]
Daniel Atallah <datallah@pidgin.im>
parents:
11360
diff
changeset
|
50 | buddylist.c \ |
|
acb5676e57bb
[gaim-migrate @ 13801]
Daniel Atallah <datallah@pidgin.im>
parents:
11360
diff
changeset
|
51 | confer.c \ |
|
acb5676e57bb
[gaim-migrate @ 13801]
Daniel Atallah <datallah@pidgin.im>
parents:
11360
diff
changeset
|
52 | gg.c \ |
|
acb5676e57bb
[gaim-migrate @ 13801]
Daniel Atallah <datallah@pidgin.im>
parents:
11360
diff
changeset
|
53 | search.c \ |
|
13627
44233a1064f9
[gaim-migrate @ 16013]
Evan Schoenberg <evands@pidgin.im>
parents:
11546
diff
changeset
|
54 | gg-utils.c |
| 3630 | 55 | |
| 56 | OBJECTS = $(C_SRC:%.c=%.o) | |
| 57 | ||
| 58 | ## | |
| 59 | ## LIBRARIES | |
| 60 | ## | |
|
11546
acb5676e57bb
[gaim-migrate @ 13801]
Daniel Atallah <datallah@pidgin.im>
parents:
11360
diff
changeset
|
61 | LIBS = \ |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
4058
diff
changeset
|
62 | -lglib-2.0 \ |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
4058
diff
changeset
|
63 | -lintl \ |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
4058
diff
changeset
|
64 | -lgaim \ |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
4058
diff
changeset
|
65 | -lws2_32 |
| 3630 | 66 | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
67 | include $(GAIM_COMMON_RULES) |
| 3630 | 68 | |
| 69 | ## | |
| 70 | ## TARGET DEFINITIONS | |
| 71 | ## | |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14617
diff
changeset
|
72 | .PHONY: all install clean |
| 3630 | 73 | |
| 74 | all: $(TARGET).dll | |
| 75 | ||
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
76 | install: all $(DLL_INSTALL_DIR) |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
77 | cp $(TARGET).dll $(DLL_INSTALL_DIR) |
| 3630 | 78 | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
79 | $(OBJECTS): $(GAIM_CONFIG_H) |
| 3630 | 80 | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
81 | $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(OBJECTS) |
|
14294
04b7598fdbad
[gaim-migrate @ 16914]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
82 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
| 3630 | 83 | |
| 84 | ## | |
| 85 | ## CLEAN RULES | |
| 86 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
87 | clean: |
|
14617
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
88 | rm -f $(OBJECTS) |
|
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
89 | rm -f $(TARGET).dll |
| 3630 | 90 | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
91 | include $(GAIM_COMMON_TARGETS) |