mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
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:
parent
d4a90be207
commit
3e894743ac
@ -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
|
||||
|
||||
2
Makefile
2
Makefile
@ -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
|
||||
|
||||
@ -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
27
configure.w32
Executable 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'
|
||||
@ -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 \
|
||||
|
||||
@ -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 \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user