Mercurial > pidgin.yaz
view plugins/Makefile.mingw @ 3891:a611ec77d1d2
[gaim-migrate @ 4043]
this is a better test condition from paco-paco.
(17:05:42) Paco-Paco: and you have to check the return value of wait against (pid_t)-1
(17:05:42) Paco-Paco: you *cannot* use < 0
(17:05:45) Paco-Paco: pid_t is unsigned on some systems :-)
(17:05:57) Paco-Paco: actually, my patch might need fixed for the while loop
(17:05:58) ***Paco-Paco looks
(17:07:16) Paco-Paco: LSchiere: actually, I have a one-line fix
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sun, 03 Nov 2002 22:16:39 +0000 |
parents | 5ecb4d68e665 |
children | 1e87350cb57c |
line wrap: on
line source
# # Makefile.mingw # # Description: Makefile for win32 (mingw) version of Gaim Plugins # # # PATHS # GAIM_PLUGINS := . GAIM_TOP := .. GTK_TOP := ../../win32-dev/gtk_2_0 OSCAR_ROOT := ../src/protocols/oscar GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir TICKER := ./ticker TRANSPARENCY := ./win32/transparency ## ## VARIABLE DEFINITIONS ## # Compiler Options CFLAGS = DEFINES = .SUFFIXES: .SUFFIXES: .c .dll ## ## INCLUDE MAKEFILES ## include $(GAIM_TOP)/src/win32/global.mak ## ## INCLUDE PATHS ## INCLUDE_PATHS += -I$(OSCAR_ROOT) \ -I$(GTK_TOP)/include \ -I$(GTK_TOP)/include/gtk-2.0 \ -I$(GTK_TOP)/include/glib-2.0 \ -I$(GTK_TOP)/include/pango-1.0 \ -I$(GTK_TOP)/include/atk-1.0 \ -I$(GTK_TOP)/lib/glib-2.0/include \ -I$(GTK_TOP)/lib/gtk-2.0/include \ -I$(GAIM_TOP) \ -I$(GAIM_TOP)/src \ -I$(GAIM_TOP)/src/win32 LIB_PATHS = -L$(GTK_TOP)/lib \ -L$(GAIM_TOP)/src ## ## LIBRARIES ## LIBS = -lgtk-win32-2.0 -lglib-2.0 -lgdk-win32-2.0 -lgobject-2.0 -lgmodule-2.0 -lintl -lws2_32 -liberty -lgaim ## ## RULES ## ## ## TARGET DEFINITIONS ## .PHONY: all clean all: plugins $(MAKE) -C $(TICKER) -f Makefile.mingw $(MAKE) -C $(TRANSPARENCY) -f Makefile.mingw install: cp $(GAIM_PLUGINS)/*.dll $(GAIM_PLUGINS)/gaim.pl $(GAIM_INSTALL_DIR)/plugins $(MAKE) -C $(TICKER) -f Makefile.mingw install $(MAKE) -C $(TRANSPARENCY) -f Makefile.mingw install # # BUILD Plugin # .c.dll: $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o tmp$@.o -c $< dlltool -D $@ -z $@.def tmp$@.o $(CC) -mdll -o junk.tmp -Wl,--base-file,$@.base tmp$@.o $(LIB_PATHS) $(LIBS) dlltool -D $@ -b $@.base -e $@.exp -d $@.def $(CC) -mdll -o $@ tmp$@.o -Wl,$@.exp $(LIB_PATHS) $(LIBS) rm -rf $@.base $@.def $@.exp junk.tmp plugins: autorecon.dll iconaway.dll spellchk.dll ## ## CLEAN RULES ## clean: rm -rf *.o rm -rf *.dll $(MAKE) -C $(TICKER) -f Makefile.mingw clean $(MAKE) -C $(TRANSPARENCY) -f Makefile.mingw clean