Mercurial > pidgin
annotate plugins/Makefile.mingw @ 3739:5ecb4d68e665
[gaim-migrate @ 3877]
Lets not include the fortune plugin here. It doesnt work well on win32
committer: Tailor Script <tailor@pidgin.im>
| author | Rob Flynn <gaim@robflynn.com> |
|---|---|
| date | Fri, 18 Oct 2002 15:12:47 +0000 |
| parents | a8f0c169e529 |
| children | 1e87350cb57c |
| rev | line source |
|---|---|
| 3630 | 1 # |
| 2 # Makefile.mingw | |
| 3 # | |
| 4 # Description: Makefile for win32 (mingw) version of Gaim Plugins | |
| 5 # | |
| 6 | |
| 7 # | |
| 8 # PATHS | |
| 9 # | |
| 10 | |
| 11 GAIM_PLUGINS := . | |
| 12 GAIM_TOP := .. | |
| 13 GTK_TOP := ../../win32-dev/gtk_2_0 | |
| 14 OSCAR_ROOT := ../src/protocols/oscar | |
| 15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
| 16 TICKER := ./ticker | |
| 3729 | 17 TRANSPARENCY := ./win32/transparency |
| 3630 | 18 |
| 19 ## | |
| 20 ## VARIABLE DEFINITIONS | |
| 21 ## | |
| 22 | |
| 23 # Compiler Options | |
| 24 | |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
25 CFLAGS = |
| 3630 | 26 |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
27 DEFINES = |
| 3630 | 28 |
| 29 .SUFFIXES: | |
| 30 .SUFFIXES: .c .dll | |
| 31 | |
| 32 ## | |
| 33 ## INCLUDE MAKEFILES | |
| 34 ## | |
| 35 | |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
36 include $(GAIM_TOP)/src/win32/global.mak |
| 3630 | 37 |
| 38 ## | |
| 39 ## INCLUDE PATHS | |
| 40 ## | |
| 41 | |
| 42 INCLUDE_PATHS += -I$(OSCAR_ROOT) \ | |
| 43 -I$(GTK_TOP)/include \ | |
| 44 -I$(GTK_TOP)/include/gtk-2.0 \ | |
| 45 -I$(GTK_TOP)/include/glib-2.0 \ | |
| 46 -I$(GTK_TOP)/include/pango-1.0 \ | |
| 47 -I$(GTK_TOP)/include/atk-1.0 \ | |
| 48 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 49 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
| 50 -I$(GAIM_TOP) \ | |
| 51 -I$(GAIM_TOP)/src \ | |
| 52 -I$(GAIM_TOP)/src/win32 | |
| 53 | |
| 54 | |
| 55 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
| 56 -L$(GAIM_TOP)/src | |
| 57 | |
| 58 | |
| 59 ## | |
| 60 ## LIBRARIES | |
| 61 ## | |
| 62 | |
| 63 LIBS = -lgtk-win32-2.0 -lglib-2.0 -lgdk-win32-2.0 -lgobject-2.0 -lgmodule-2.0 -lintl -lws2_32 -liberty -lgaim | |
| 64 | |
| 65 ## | |
| 66 ## RULES | |
| 67 ## | |
| 68 | |
| 69 ## | |
| 70 ## TARGET DEFINITIONS | |
| 71 ## | |
| 72 | |
| 73 .PHONY: all clean | |
| 74 | |
| 75 all: plugins | |
| 76 $(MAKE) -C $(TICKER) -f Makefile.mingw | |
| 3729 | 77 $(MAKE) -C $(TRANSPARENCY) -f Makefile.mingw |
| 3630 | 78 |
| 79 install: | |
| 3739 | 80 cp $(GAIM_PLUGINS)/*.dll $(GAIM_PLUGINS)/gaim.pl $(GAIM_INSTALL_DIR)/plugins |
| 3630 | 81 $(MAKE) -C $(TICKER) -f Makefile.mingw install |
| 3729 | 82 $(MAKE) -C $(TRANSPARENCY) -f Makefile.mingw install |
| 3630 | 83 |
| 84 # | |
| 85 # BUILD Plugin | |
| 86 # | |
| 87 | |
| 88 .c.dll: | |
| 89 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o tmp$@.o -c $< | |
| 90 dlltool -D $@ -z $@.def tmp$@.o | |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
91 $(CC) -mdll -o junk.tmp -Wl,--base-file,$@.base tmp$@.o $(LIB_PATHS) $(LIBS) |
| 3630 | 92 dlltool -D $@ -b $@.base -e $@.exp -d $@.def |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
93 $(CC) -mdll -o $@ tmp$@.o -Wl,$@.exp $(LIB_PATHS) $(LIBS) |
| 3630 | 94 rm -rf $@.base $@.def $@.exp junk.tmp |
| 95 | |
| 96 plugins: autorecon.dll iconaway.dll spellchk.dll | |
| 97 | |
| 98 | |
| 99 ## | |
| 100 ## CLEAN RULES | |
| 101 ## | |
| 102 | |
| 103 clean: | |
| 104 rm -rf *.o | |
| 105 rm -rf *.dll | |
| 106 $(MAKE) -C $(TICKER) -f Makefile.mingw clean | |
| 3729 | 107 $(MAKE) -C $(TRANSPARENCY) -f Makefile.mingw clean |
