Mercurial > pidgin
changeset 7383:f1fe68ef00c7
[gaim-migrate @ 7978]
fix autosplit complaint
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Thu, 30 Oct 2003 19:21:14 +0000 |
parents | e6e194f9d44c |
children | dc573236dc8b |
files | plugins/perl/common/.cvsignore plugins/perl/common/Makefile.mingw |
diffstat | 2 files changed, 45 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/perl/common/.cvsignore Thu Oct 30 16:02:28 2003 +0000 +++ b/plugins/perl/common/.cvsignore Thu Oct 30 19:21:14 2003 +0000 @@ -3,6 +3,7 @@ Makefile.PL Makefile blib +lib const-c.inc const-xs.inc pm_to_blib
--- a/plugins/perl/common/Makefile.mingw Thu Oct 30 16:02:28 2003 +0000 +++ b/plugins/perl/common/Makefile.mingw Thu Oct 30 19:21:14 2003 +0000 @@ -5,9 +5,18 @@ # TARGET = Gaim +AUTOSPLIT = lib/auto/Gaim/autosplit.ix -CC := gcc -PERL := /cygdrive/c/perl/bin/perl +## +## TOOLS +## + +CC = gcc +PERL = /cygdrive/c/perl/bin/perl + +## +## PATHS +## EXTUTILS := C:/perl/lib/ExtUtils GAIM_TOP := ../../.. @@ -17,6 +26,7 @@ GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir PERLMOD_INSTALL_DIR := $(GAIM_INSTALL_DIR)/perlmod + INCLUDE_PATHS = -I. \ -I$(GAIM_TOP) \ -I$(GAIM_TOP)/src \ @@ -30,6 +40,10 @@ -L$(GTK_TOP)/lib +## +## SOURCES, OBJECTS +## + XS_FILES = Account.xs \ BuddyList.xs \ BuddyList_Buddy.xs \ @@ -48,11 +62,19 @@ OBJECTS = $(C_FILES:%.c=%.o) +## +## LIBRARIES +## + LIBS = -lperl58 \ -lperl \ -lgaim \ -lglib-2.0 +## +## RULES +## + # How to make a C file %.o: %.c $(CC) $(CFLAGS) $(INCLUDE_PATHS) $(DEFINES) -c $< -o $@ @@ -64,14 +86,30 @@ %.inc: cp fallback/$@ ./ -all: $(TARGET).dll +## +## TARGETS +## +.PHONY: all clean + +all: $(TARGET).dll $(AUTOSPLIT) + install: - mkdir -p $(PERLMOD_INSTALL_DIR) - cp $(TARGET).dll Gaim.pm $(PERLMOD_INSTALL_DIR) + rm -rf $(PERLMOD_INSTALL_DIR) + cp -R lib $(PERLMOD_INSTALL_DIR) + cp $(TARGET).dll $(PERLMOD_INSTALL_DIR) + +$(AUTOSPLIT): Gaim.pm + mkdir -p ./lib/auto + cp Gaim.pm ./lib + $(PERL) -MAutoSplit -e 'autosplit("lib/Gaim.pm")' $(TARGET).dll: $(FALLBACKS) $(OBJECTS) $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) -o $(TARGET).dll +## +## CLEAN +## + clean: - rm -rf *.o $(TARGET).dll $(FALLBACKS) + rm -rf *.o $(TARGET).dll $(FALLBACKS) lib