Sun, 20 Aug 2006 16:49:37 +0000
[gaim-migrate @ 16905]
First step of getting wingaim working again.
libgaim and gtk are compiling.
The protocols aren't compiling yet.
There are a number of things that are compiling, but should be cleaned up.
| 5467 | 1 | # |
| 2 | # Makefile.mingw | |
| 3 | # | |
| 4 | # Description: Makefile for perl plugin loader plugin. | |
| 5 | # | |
| 6 | ||
| 7 | # | |
| 8 | # PATHS | |
| 9 | # | |
| 10 | ||
|
14286
9ff15ceacd34
[gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
11 | GTK_TOP := ../../../../win32-dev/gtk_2_0 |
|
9ff15ceacd34
[gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
12 | GAIM_TOP := ../../.. |
|
9ff15ceacd34
[gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
13 | LIBGAIM_TOP := ../.. |
|
9ff15ceacd34
[gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
14 | PERL_LIB_DIR := ../../../../win32-dev/perl58 |
|
9ff15ceacd34
[gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
15 | PERL_INCLUDE := $(PERL_LIB_DIR)/CORE |
| 5467 | 16 | GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir |
| 17 | DLL_INSTALL_DIR := $(GAIM_INSTALL_DIR)/plugins | |
| 18 | ||
| 19 | ## | |
| 20 | ## VARIABLE DEFINITIONS | |
| 21 | ## | |
| 22 | ||
| 23 | TARGET = perl | |
| 24 | ||
|
10804
e51729c86312
[gaim-migrate @ 12452]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
8184
diff
changeset
|
25 | CC := gcc.exe |
| 5467 | 26 | |
| 27 | # Compiler Options | |
| 28 | ||
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
5467
diff
changeset
|
29 | CFLAGS = |
| 5467 | 30 | |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
5467
diff
changeset
|
31 | DEFINES = |
| 5467 | 32 | |
| 33 | ## | |
| 34 | ## INCLUDE MAKEFILES | |
| 35 | ## | |
| 36 | ||
|
14286
9ff15ceacd34
[gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
37 | include $(LIBGAIM_TOP)/win32/global.mak |
| 5467 | 38 | |
|
8184
cbe8144455ba
[gaim-migrate @ 8904]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
39 | # Perl headers with /* /* */ type comments.. Turn off warnings. |
|
cbe8144455ba
[gaim-migrate @ 8904]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
40 | CFLAGS += -Wno-comment |
|
cbe8144455ba
[gaim-migrate @ 8904]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
41 | |
| 5467 | 42 | ## |
| 43 | ## INCLUDE PATHS | |
| 44 | ## | |
| 45 | ||
| 46 | INCLUDE_PATHS += -I. \ | |
| 47 | -I$(GAIM_TOP) \ | |
|
14286
9ff15ceacd34
[gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
48 | -I$(LIBGAIM_TOP) \ |
|
9ff15ceacd34
[gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
49 | -I$(LIBGAIM_TOP)/win32 \ |
| 5467 | 50 | -I$(GTK_TOP)/include \ |
| 51 | -I$(GTK_TOP)/include/glib-2.0 \ | |
| 52 | -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 53 | -I$(PERL_INCLUDE) | |
| 54 | ||
| 55 | ||
| 56 | ||
| 57 | ||
| 58 | LIB_PATHS = -L$(GTK_TOP)/lib \ | |
| 59 | -L$(GAIM_TOP)/src \ | |
| 60 | -L$(PERL_LIB_DIR) | |
| 61 | ||
| 62 | ||
| 63 | ## | |
| 64 | ## SOURCES, OBJECTS | |
| 65 | ## | |
| 66 | ||
|
6576
ebc7e2effe6b
[gaim-migrate @ 7098]
Herman Bloggs <herman@bluedigits.com>
parents:
5932
diff
changeset
|
67 | C_SRC = perl.c \ |
|
ebc7e2effe6b
[gaim-migrate @ 7098]
Herman Bloggs <herman@bluedigits.com>
parents:
5932
diff
changeset
|
68 | perl-common.c \ |
|
ebc7e2effe6b
[gaim-migrate @ 7098]
Herman Bloggs <herman@bluedigits.com>
parents:
5932
diff
changeset
|
69 | perl-handlers.c |
| 5467 | 70 | |
| 71 | ||
| 72 | OBJECTS = $(C_SRC:%.c=%.o) | |
| 73 | ||
| 74 | ||
| 75 | ## | |
| 76 | ## LIBRARIES | |
| 77 | ## | |
| 78 | ||
|
14286
9ff15ceacd34
[gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
79 | LIBS = \ |
| 5467 | 80 | -lglib-2.0 \ |
| 81 | -lgmodule-2.0 \ | |
| 82 | -lgobject-2.0 \ | |
| 83 | -lws2_32 \ | |
| 84 | -lintl \ | |
| 85 | -lgaim \ | |
|
6816
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6576
diff
changeset
|
86 | -lperl58 |
| 5467 | 87 | |
| 88 | ||
| 89 | ## | |
| 90 | ## RULES | |
| 91 | ## | |
| 92 | ||
| 93 | # How to make a C file | |
| 94 | ||
| 95 | %.o: %.c | |
| 96 | $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
| 97 | ||
| 98 | ## | |
| 99 | ## TARGET DEFINITIONS | |
| 100 | ## | |
| 101 | ||
| 102 | .PHONY: all clean | |
| 103 | ||
| 104 | all: $(TARGET).dll | |
|
6816
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6576
diff
changeset
|
105 | $(MAKE) -C ./common -f Makefile.mingw |
| 5467 | 106 | |
| 107 | install: | |
| 108 | cp $(TARGET).dll $(DLL_INSTALL_DIR) | |
|
6816
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6576
diff
changeset
|
109 | $(MAKE) -C ./common -f Makefile.mingw install |
| 5467 | 110 | |
| 111 | ## | |
| 112 | ## BUILD Dependencies | |
| 113 | ## | |
| 114 | ||
|
14286
9ff15ceacd34
[gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
115 | $(GAIM_TOP)/src/libgaim.dll.a: |
|
9ff15ceacd34
[gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
116 | $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw libgaim.dll.a |
| 5467 | 117 | |
| 118 | ## | |
| 119 | ## BUILD DLL | |
| 120 | ## | |
| 121 | ||
|
14286
9ff15ceacd34
[gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
122 | $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/libgaim.dll.a |
|
9ff15ceacd34
[gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
123 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--export-all-symbols -o $(TARGET).dll |
| 5467 | 124 | |
| 125 | ||
| 126 | ## | |
| 127 | ## CLEAN RULES | |
| 128 | ## | |
| 129 | ||
| 130 | clean: | |
| 131 | rm -rf *.o | |
|
6816
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6576
diff
changeset
|
132 | rm -rf $(TARGET).dll $(TARGET).lib |
|
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6576
diff
changeset
|
133 | $(MAKE) -C ./common -f Makefile.mingw clean |