summaryrefslogtreecommitdiffstats
path: root/Makefile.qtwintools
blob: 405b1a4e4133efe6fd0e9e3567bd5d11356e9729 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
TOP 		= $(shell readlink -f .)

VERSION_SHORT	= 5.14
VERSION_RELEASE	= 2
VERSION		= $(VERSION_SHORT).$(VERSION_RELEASE)

7ZIP		= $(TOP)/wintools/7za.exe
LOCAL_BUILD_PATH	= c:/tmp/qtbuild
SRCDIR 		= $(LOCAL_BUILD_PATH)/qt-everywhere-src-5.14.2

TOOLS 		= moc rcc uic qlalr qvkgen tracegen

all: download unpack configure tools pack clean

download:
	$(MAKE) -C ./SOURCE zip

unpack:
	mkdir -p $(LOCAL_BUILD_PATH)
	cd $(LOCAL_BUILD_PATH); \
		rm -Rf qt-everywhere-src-$(VERSION) ; \
	    $(7ZIP) x $(TOP)/SOURCE/qt-everywhere-src-$(VERSION).zip 

configure:
	cd $(SRCDIR) && \
		./configure.bat -opensource -confirm-license

tools:
	cd $(SRCDIR)/qtbase/src/tools/bootstrap && \
		$(SRCDIR)/qtbase/bin/qmake -o Makefile  && \
		make -f Makefile 
	cd $(SRCDIR)/qtbase/src/tools/moc && \
		$(SRCDIR)/qtbase/bin/qmake -o Makefile  && \
		make -f Makefile 
	cd $(SRCDIR)/qtbase/src/tools/rcc && \
		$(SRCDIR)/qtbase/bin/qmake -o Makefile  && \
		make -f Makefile 
	cd $(SRCDIR)/qtbase/src/3rdparty/pcre2 && \
		$(SRCDIR)/qtbase/bin/qmake -o Makefile  && \
		make -f Makefile 
	cd $(SRCDIR)/qtbase/src/corelib && \
		$(SRCDIR)/qtbase/bin/qmake -o Makefile  && \
		make -f Makefile 
	for t in $(TOOLS) ; do \
		cd $(SRCDIR)/qtbase/src/tools/$$t ;\
		$(SRCDIR)/qtbase/bin/qmake -o Makefile ;\
		make -f Makefile ;\
	done

pack:
	cd $(SRCDIR)/qtbase/bin && \
		tar -zcf $(TOP)/qtwintools.tgz ./*.exe

clean:
	rm -Rf $(LOCAL_BUILD_PATH)