Mercurial > pidgin
annotate plugins/Makefile.mingw @ 3715:764d6f1848b2
[gaim-migrate @ 3848]
Introduction of global.mak
committer: Tailor Script <tailor@pidgin.im>
| author | Herman Bloggs <hermanator12002@yahoo.com> |
|---|---|
| date | Wed, 16 Oct 2002 19:40:00 +0000 |
| parents | 9682c0e022c6 |
| children | a8f0c169e529 |
| 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 | |
| 17 | |
| 18 ## | |
| 19 ## VARIABLE DEFINITIONS | |
| 20 ## | |
| 21 | |
| 22 # Compiler Options | |
| 23 | |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
24 CFLAGS = |
| 3630 | 25 |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
26 DEFINES = |
| 3630 | 27 |
| 28 .SUFFIXES: | |
| 29 .SUFFIXES: .c .dll | |
| 30 | |
| 31 ## | |
| 32 ## INCLUDE MAKEFILES | |
| 33 ## | |
| 34 | |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
35 include $(GAIM_TOP)/src/win32/global.mak |
| 3630 | 36 |
| 37 ## | |
| 38 ## INCLUDE PATHS | |
| 39 ## | |
| 40 | |
| 41 INCLUDE_PATHS += -I$(OSCAR_ROOT) \ | |
| 42 -I$(GTK_TOP)/include \ | |
| 43 -I$(GTK_TOP)/include/gtk-2.0 \ | |
| 44 -I$(GTK_TOP)/include/glib-2.0 \ | |
| 45 -I$(GTK_TOP)/include/pango-1.0 \ | |
| 46 -I$(GTK_TOP)/include/atk-1.0 \ | |
| 47 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 48 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
| 49 -I$(GAIM_TOP) \ | |
| 50 -I$(GAIM_TOP)/src \ | |
| 51 -I$(GAIM_TOP)/src/win32 | |
| 52 | |
| 53 | |
| 54 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
| 55 -L$(GAIM_TOP)/src | |
| 56 | |
| 57 | |
| 58 ## | |
| 59 ## LIBRARIES | |
| 60 ## | |
| 61 | |
| 62 LIBS = -lgtk-win32-2.0 -lglib-2.0 -lgdk-win32-2.0 -lgobject-2.0 -lgmodule-2.0 -lintl -lws2_32 -liberty -lgaim | |
| 63 | |
| 64 ## | |
| 65 ## RULES | |
| 66 ## | |
| 67 | |
| 68 ## | |
| 69 ## TARGET DEFINITIONS | |
| 70 ## | |
| 71 | |
| 72 .PHONY: all clean | |
| 73 | |
| 74 all: plugins | |
| 75 $(MAKE) -C $(TICKER) -f Makefile.mingw | |
| 76 | |
| 77 install: | |
| 78 cp $(GAIM_PLUGINS)/*.dll $(GAIM_PLUGINS)/*.pl $(GAIM_INSTALL_DIR)/plugins | |
| 79 $(MAKE) -C $(TICKER) -f Makefile.mingw install | |
| 80 | |
| 81 # | |
| 82 # BUILD Plugin | |
| 83 # | |
| 84 | |
| 85 .c.dll: | |
| 86 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o tmp$@.o -c $< | |
| 87 dlltool -D $@ -z $@.def tmp$@.o | |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
88 $(CC) -mdll -o junk.tmp -Wl,--base-file,$@.base tmp$@.o $(LIB_PATHS) $(LIBS) |
| 3630 | 89 dlltool -D $@ -b $@.base -e $@.exp -d $@.def |
|
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
90 $(CC) -mdll -o $@ tmp$@.o -Wl,$@.exp $(LIB_PATHS) $(LIBS) |
| 3630 | 91 rm -rf $@.base $@.def $@.exp junk.tmp |
| 92 | |
| 93 plugins: autorecon.dll iconaway.dll spellchk.dll | |
| 94 | |
| 95 | |
| 96 ## | |
| 97 ## CLEAN RULES | |
| 98 ## | |
| 99 | |
| 100 clean: | |
| 101 rm -rf *.o | |
| 102 rm -rf *.dll | |
| 103 $(MAKE) -C $(TICKER) -f Makefile.mingw clean |
