minor changes in the build system to make it qmake compatible

also add a "configure.w32" for easy cross-compiling
This commit is contained in:
Christian 2007-04-11 16:32:01 +02:00
parent d4a90be207
commit 3e894743ac
7 changed files with 42 additions and 16 deletions

View File

@ -15,6 +15,7 @@ unpack xca there
Use a W32 host to execute and install the selfextracting QT4....exe
copy the installed tree to xca-w32/qt/
$ cp openssl-0.9.8X.tar.gz xca-w32/
$ tar zxf openssl-0.9.8X.tar.gz
@ -26,11 +27,9 @@ compile openssl with:
$ sh ms/mingw32-cross.sh
compile xca:
$ cd xca
$ cp misc/Local.mak.w32 Local.mak
Edit Local.mak:
set BDIR to /FULLPATH/xca-w32
set OPENSSLDIR and QTDIR
$ cd xca-0.6.X
$ ./configure.w32
Edit Local.mak if needed:
if your linux-qt is the same version as the w32 one,
keep USE_HOSTTOOLS at "yes" otherwise set it to "no"
and say make

View File

@ -6,7 +6,7 @@
TAG=RELEASE.$(TVERSION)
TARGET=xca-$(TVERSION)
VERSION=$(shell cat $(TOPDIR)/VERSION )
export VERSION=$(shell cat $(TOPDIR)/VERSION )
export TOPDIR=$(shell pwd)
sinclude Local.mak

View File

@ -3,7 +3,7 @@ include $(TOPDIR)/Local.mak
all: target.obj
SRCS=$(patsubst %.o, %.cpp, $(OBJS))
HEADERS=$(shell ls *.h)
HEADERS=$(shell ls *.h 2>/dev/null)
GCH=$(patsubst %, %.gch, $(HEADERS))
pheaders: $(GCH)

27
configure.w32 Executable file
View File

@ -0,0 +1,27 @@
#!/bin/sh -e
BDIR=`cd ..; pwd`
SSL=`find "$BDIR" -type d -name openssl-* |tail -n1`
QT=`find "$BDIR"/qt -type d -name 4.* |tail -n1`
echo "OpenSSL: '$SSL'"
echo "QT: '$QT'"
if test -z "$SSL" -o -z "$QT"; then
cat << EOF
OpenSSL or QT not found:
please look at INSTALL.w32
EOF
fi
cat > Local.mak << EOF
BDIR=$BDIR
OPENSSLDIR=$SSL
QTDIR=$QT
EOF
cat misc/Local.mak.w32 >> Local.mak
echo "#define VER \"`cat VERSION`\"" >local.h
echo
echo success, type 'make'

View File

@ -9,11 +9,8 @@ doc: xca.1.gz xca.html
xca.1.gz: xca.1
gzip -9 <$^ >$@
xca.1: xca.man
cat $^ | sed s/MY_VERSION/$(VERSION)/g > $@
xca.html: xca.sgml
$(LINUXDOC) -B html $< || touch xca.html
$(LINUXDOC) -B html $<
install: xca.1.gz xca.html
install -m 755 -d $(destdir)$(prefix)/share/xca \

View File

@ -1,15 +1,18 @@
HOST=w32
BDIR=/D
#### Change the following settings
# BDIR=/D
# QTDIR=$(BDIR)/qt/4.2.1
# OPENSSLDIR=$(BDIR)/openssl-0.9.8d
QTDIR=$(BDIR)/qt/4.2.1
OPENSSLDIR=$(BDIR)/openssl-0.9.8d
HOST=w32
MAKENSIS=makensis
CROSS=i586-mingw32msvc-
CONSOLE=-mwindows
#CONSOLE=-mconsole
CPPFLAGS=-I. -I.. -I$(QTDIR)/include -I$(OPENSSLDIR)/outinc
CPPFLAGS=-I. -I.. -I$(QTDIR)/include -I$(OPENSSLDIR)/outinc \
-I$(QTDIR)/include/Qt -I$(TOPDIR)/ui
CFLAGS=-Wall -g -O2 -mthreads -mno-cygwin $(CONSOLE)
LDFLAGS= -L$(OPENSSLDIR)/out -L$(QTDIR)/lib \