Mercurial > pidgin.yaz
view libgaim/plugins/perl/Makefile.mingw @ 14257:14933d9055a0
[gaim-migrate @ 16939]
When a second instance of wingaim is started, bring the Buddy List into focus instead of popping up the "Already Running" message (if we can).
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Mon, 21 Aug 2006 04:06:33 +0000 |
parents | ab8a105eff62 |
children | 8793fc8f7064 |
line wrap: on
line source
# # Makefile.mingw # # Description: Makefile for perl plugin loader plugin. # # # PATHS # GTK_TOP := ../../../../win32-dev/gtk_2_0 GAIM_TOP := ../../.. LIBGAIM_TOP := ../.. PERL_LIB_DIR := ../../../../win32-dev/perl58 PERL_INCLUDE := $(PERL_LIB_DIR)/CORE GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir DLL_INSTALL_DIR := $(GAIM_INSTALL_DIR)/plugins ## ## VARIABLE DEFINITIONS ## TARGET = perl CC := gcc.exe # Compiler Options CFLAGS = DEFINES = ## ## INCLUDE MAKEFILES ## include $(LIBGAIM_TOP)/win32/global.mak # Perl headers with /* /* */ type comments.. Turn off warnings. CFLAGS += -Wno-comment ## ## INCLUDE PATHS ## INCLUDE_PATHS += -I. \ -I$(GAIM_TOP) \ -I$(LIBGAIM_TOP) \ -I$(LIBGAIM_TOP)/win32 \ -I$(GTK_TOP)/include \ -I$(GTK_TOP)/include/glib-2.0 \ -I$(GTK_TOP)/lib/glib-2.0/include \ -I$(PERL_INCLUDE) LIB_PATHS = -L$(GTK_TOP)/lib \ -L$(GAIM_TOP)/src \ -L$(PERL_LIB_DIR) ## ## SOURCES, OBJECTS ## C_SRC = perl.c \ perl-common.c \ perl-handlers.c OBJECTS = $(C_SRC:%.c=%.o) ## ## LIBRARIES ## LIBS = \ -lglib-2.0 \ -lgmodule-2.0 \ -lgobject-2.0 \ -lws2_32 \ -lintl \ -lgaim \ -lperl58 ## ## RULES ## # How to make a C file %.o: %.c $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< ## ## TARGET DEFINITIONS ## .PHONY: all clean all: $(TARGET).dll $(MAKE) -C ./common -f Makefile.mingw install: cp $(TARGET).dll $(DLL_INSTALL_DIR) $(MAKE) -C ./common -f Makefile.mingw install ## ## BUILD Dependencies ## $(GAIM_TOP)/src/libgaim.dll.a: $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw libgaim.dll.a ## ## BUILD DLL ## $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/libgaim.dll.a $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--export-all-symbols -o $(TARGET).dll ## ## CLEAN RULES ## clean: rm -rf *.o rm -rf $(TARGET).dll $(TARGET).lib $(MAKE) -C ./common -f Makefile.mingw clean