Mon, 18 Sep 2006 01:13:07 +0000
[gaim-migrate @ 17300]
Fix mingw makefile .PHONY targets.
Fix gtkwin32dep.h missing includes.
| 11396 | 1 | # |
| 2 | # Makefile.mingw | |
| 3 | # | |
| 4 | # Description: Makefile for win32 (mingw) version of libsimple | |
| 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 |
| 11396 | 9 | |
| 10 | TARGET = libsimple | |
|
14617
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
11 | TYPE = PLUGIN |
| 11396 | 12 | |
|
14294
04b7598fdbad
[gaim-migrate @ 16914]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
13 | # Static or Plugin... |
| 11396 | 14 | ifeq ($(TYPE),STATIC) |
| 15 | DEFINES += -DSTATIC | |
| 16 | DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
| 17 | else | |
| 18 | ifeq ($(TYPE),PLUGIN) | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
19 | DLL_INSTALL_DIR = $(GAIM_INSTALL_PLUGINS_DIR) |
| 11396 | 20 | endif |
| 21 | endif | |
| 22 | ||
| 23 | ## | |
| 24 | ## INCLUDE PATHS | |
| 25 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
26 | INCLUDE_PATHS += -I. \ |
| 11396 | 27 | -I$(GTK_TOP)/include \ |
| 28 | -I$(GTK_TOP)/include/glib-2.0 \ | |
| 29 | -I$(GTK_TOP)/lib/glib-2.0/include \ | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
30 | -I$(GAIM_LIB_TOP) \ |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
31 | -I$(GAIM_LIB_TOP)/win32 \ |
| 11396 | 32 | -I$(GAIM_TOP) |
| 33 | ||
| 34 | LIB_PATHS = -L$(GTK_TOP)/lib \ | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
35 | -L$(GAIM_LIB_TOP) |
| 11396 | 36 | |
| 37 | ## | |
| 38 | ## SOURCES, OBJECTS | |
| 39 | ## | |
|
12382
5ef67596b420
[gaim-migrate @ 14688]
Richard Laager <rlaager@pidgin.im>
parents:
11396
diff
changeset
|
40 | C_SRC = simple.c \ |
| 11396 | 41 | sipmsg.c |
| 42 | ||
| 43 | OBJECTS = $(C_SRC:%.c=%.o) | |
| 44 | ||
| 45 | ## | |
| 46 | ## LIBRARIES | |
| 47 | ## | |
| 48 | LIBS = \ | |
| 49 | -lglib-2.0 \ | |
| 50 | -lws2_32 \ | |
| 51 | -lintl \ | |
| 52 | -lgaim | |
| 53 | ||
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
54 | include $(GAIM_COMMON_RULES) |
| 11396 | 55 | |
| 56 | ## | |
| 57 | ## TARGET DEFINITIONS | |
| 58 | ## | |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14617
diff
changeset
|
59 | .PHONY: all install clean |
| 11396 | 60 | |
| 61 | all: $(TARGET).dll | |
| 62 | ||
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
63 | install: all $(DLL_INSTALL_DIR) |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
64 | cp $(TARGET).dll $(DLL_INSTALL_DIR) |
| 11396 | 65 | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
66 | $(OBJECTS): $(GAIM_CONFIG_H) |
| 11396 | 67 | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
68 | $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(OBJECTS) |
|
14294
04b7598fdbad
[gaim-migrate @ 16914]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
69 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
| 11396 | 70 | |
| 71 | ## | |
| 72 | ## CLEAN RULES | |
| 73 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
74 | clean: |
|
14617
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
75 | rm -f $(OBJECTS) |
|
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
76 | rm -f $(TARGET).dll |
| 11396 | 77 | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
78 | include $(GAIM_COMMON_TARGETS) |