Hi!

On 27.01.13 17:07, Bernd Machenschalk wrote:

I'll try to get this working myself when I find the time. I tend to believe 
that there is something (Makefile, batch script) in the zip tree, but it's been 
a long time since I last looked into it.

I'll get back to you.

I finally came around to do this. boinc_zip now builds cleanly for me, however I currently don't have anything ready that really links it, so there might still be something missing. Please try the attached patch, and tell me how it worked.

Best,
Bernd

>From 504ff43976b992a010158e816b402a68fb7536e3 Mon Sep 17 00:00:00 2001
From: Bernd Machenschalk <[email protected]>
Date: Tue, 5 Feb 2013 12:05:49 +0100
Subject: [PATCH] fix Makefile.mingw for recent boinc_zip

---
 lib/Makefile.mingw |   39 +++++++++++++++++++++++++++++++++------
 1 files changed, 33 insertions(+), 6 deletions(-)

diff --git a/lib/Makefile.mingw b/lib/Makefile.mingw
index 6a1c5bc..b23fb80 100644
--- a/lib/Makefile.mingw
+++ b/lib/Makefile.mingw
@@ -51,11 +51,37 @@ LIB_OBJ = util.o win_util.o app_ipc.o diagnostics.o 
diagnostics_win.o filesys.o
        hostinfo.o md5.o md5_file.o mem_usage.o mfile.o miofile.o 
procinfo_win.o procinfo.o proc_control.o parse.o prefs.o \
        proxy_info.o str_util.o shmem.o base64.o stackwalker_win.o url.o 
coproc.o
 
-ZIP_OBJ = boinc_zip.o z_win32.o win32zip.o zipup.o zipfile.o zip.o z_globals.o 
z_fileio.o \
-       z_util.o trees.o deflate.o zipinfo.o win32.o unzip.o unshrink.o 
unreduce.o ttyio.o \
-       process.o match.o list.o inflate.o globals.o fileio.o extract.o 
explode.o envargs.o \
-       crctab.o crc32.o apihelp.o api.o
-
+ZIP_OBJ = boinc_zip.o \
+       api.o \
+       apihelp.o \
+       crc32.o \
+       explode.o \
+       extract.o \
+       fileio.o \
+       globals.o \
+       inflate.o \
+       list.o \
+       match.o \
+       nt.o \
+       process.o \
+       ttyio.o \
+       unreduce.o \
+       unshrink.o \
+       unzip.o \
+       win32.o \
+       zipinfo.o \
+       deflate.o \
+       trees.o \
+       util.o \
+       win32_boinc.o \
+       win32i64.o \
+       win32zip.o \
+       z_fileio.o \
+       z_globals.o \
+       z_nt.o \
+       zip.o \
+       zipfile.o \
+       zipup.o
 
 # libraries to build
 API_BIN = libboinc_api.a
@@ -90,7 +116,7 @@ CCXXFLAGS = $(INCS) $(DEBUG) --include 
$(BOINC_SRC)/version.h -DEINSTEINATHOME_C
        -DNODB -D_CONSOLE -fexceptions $(OPTFLAGS) $(NOCYGWIN)
 
 # flags for compiling boinc_zip
-ZIP_FLAGS = -DWIN32 -D_LIB -D_MBCS -DNO_MKTEMP $(INCS) -O2 -DDLL $(NOCYGWIN)
+ZIP_FLAGS = -DWIN32 -D_LIB -D_MBCS -DNO_MKTEMP $(INCS) -O2 -DDLL -DUSE_ZIPMAIN 
$(NOCYGWIN)
 
 # LDFLAGS = -lwinmm 
 
@@ -104,6 +130,7 @@ all: $(BIN) $(API_BIN)
 all-la: $(BIN) $(API_LIB)
 
 # zip target
+.PHONY: boinc_zip
 boinc_zip: $(ZIP_BIN)
 
 # set to the target tools when cross-compiling
-- 
1.7.2.5

_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.

Reply via email to