1
0
Fork 0
forked from len0rd/rockbox

rbutil: fix compilation in cygwin

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13892 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Wenger 2007-07-14 16:54:54 +00:00
parent 74ad216ad3
commit 703429604e
6 changed files with 25 additions and 9 deletions

View file

@ -9,11 +9,25 @@
# Unix-style Makefile for rbutil
#detect cygwin
ifneq ($(strip $(shell gcc -v 2>&1 | grep "cygwin")),)
__CYGWIN__ := 1
endif
CXX=$(shell $(PREFIX)wx-config --version=2.8 --cxx)
INC = `$(PREFIX)wx-config --version=2.8 --cxxflags`
LIBS = `$(PREFIX)wx-config --version=2.8 --libs`
CFLAGS = -Wall -Wundef -DRBUTIL -D_LARGEFILE64_SOURCE
OBJS=rbutil.o rbutilApp.o rbutilFrm.o rbutilCtrls.o install_dialogs.o bootloaders.o installlog.o ipodpatcher/ipodpatcher.o ipodpatcher/ipodio-posix.o sansapatcher/sansapatcher.o sansapatcher/sansaio-posix.o irivertools.o md5sum.o autodetection.o
CFLAGS= -Wall -Wundef -DRBUTIL -D_LARGEFILE64_SOURCE
OBJS=rbutil.o rbutilApp.o rbutilFrm.o rbutilCtrls.o install_dialogs.o bootloaders.o installlog.o ipodpatcher/ipodpatcher.o sansapatcher/sansapatcher.o irivertools.o md5sum.o autodetection.o
ifdef __CYGWIN__
OBJS+=ipodpatcher/ipodio-win32.o sansapatcher/sansaio-win32.o
CFLAGS+= -mno-cygwin -mwindows
else
OBJS+=ipodpatcher/ipodio-posix.o sansapatcher/sansaio-posix.o
endif
EXTRAOBJS = $(wildcard icons/*.o)
SILENT = @
@ -34,7 +48,7 @@ endif
.PHONY: all
all: icons rbutil$(EXT)
.cpp.o :
$(SILENT) echo CXX $<
$(SILENT) $(CXX) $(CFLAGS) $(INC) -c -o $@ $<
@ -46,7 +60,7 @@ all: icons rbutil$(EXT)
rbutil-rc.o: rbutil-rc.rc
$(WINDRES) -O coff -F pe-i386 -o $@ $<
rbutil$(EXT): $(OBJS)
rbutil$(EXT): $(OBJS)
$(SILENT) echo CXX $<
$(SILENT) $(CXX) -o $@ $(OBJS) $(EXTRAOBJS) $(LIBS)

View file

@ -19,11 +19,7 @@
****************************************************************************/
#include "bootloaders.h"
#include "irivertools.h"
#include "md5sum.h"
#include "rbutil.h"
#include "installlog.h"
int verbose =0;

View file

@ -24,6 +24,11 @@
#define BOOTLOADERS_H_INCLUDED
#include <wx/string.h>
#include "irivertools.h"
#include "md5sum.h"
#include "rbutil.h"
#include "installlog.h"
extern "C" {
// Ipodpatcher

View file

@ -19,7 +19,6 @@
****************************************************************************/
#include "irivertools.h"
#include "md5sum.h"
const unsigned char munge[] = {

View file

@ -24,6 +24,7 @@
#include "rbutil.h"
#include "installlog.h"
#include "md5sum.h"
#define ESTF_SIZE 32

View file

@ -349,6 +349,7 @@ int UnzipFile(wxString src, wxString destdir, bool isInstall)
{
buf = wxT("Can't open file ") + in_str + wxT(" for writing");
delete out;
delete progress;
return 100;
} else if (isInstall)
{