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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
# -*- makefile -*-
#
# Main Makefile for building the Qt library, examples and tutorial.
# Read PORTING for instructions how to port Qt to a new platform.
SHELL=/bin/sh
init: FORCE
@$(MAKE) QTDIR=`pwd` all
all: symlinks src-moc src-mt sub-src sub-tools
@echo
@echo "The Qt library is now built in ./lib"
@echo "The Qt examples are built in the directories in ./examples"
@echo "The Qt tutorials are built in the directories in ./tutorial"
@echo
@echo 'Note: be sure to set $$QTDIR to point to here or to wherever'
@echo ' you move these directories.'
@echo
@echo "Enjoy! - the Trolltech team"
@echo
src-moc: .buildopts symlinks FORCE
cd src/moc; $(MAKE)
-rm -f bin/moc
cp src/moc/moc bin/moc
sub-tools: sub-src FORCE
cd tools; $(MAKE)
symlinks: .buildopts
@cd include; rm -f q*.h; for i in $(QTDIR)/src/*/q*.h $(QTDIR)/extensions/*/src/q*.h; do ln -s $$i .; done; rm -f q*_p.h
sub-src: src-moc src-mt .buildopts FORCE
cd src; $(MAKE)
src-mt: src-moc .buildopts FORCE
$(MAKE) -f src-mt.mk
sub-tutorial: sub-src FORCE
cd tutorial; $(MAKE)
sub-examples: sub-src FORCE
cd examples; $(MAKE)
clean:
-rm .buildopts
cd src/moc; $(MAKE) clean
cd src; $(MAKE) clean
-rm src/tmp/*.o src/tmp/*.a src/allmoc.cpp
-find src/3rdparty -name '*.o' | xargs rm
cd tutorial; $(MAKE) clean
cd examples; $(MAKE) clean
cd tools; $(MAKE) clean
depend:
cd src; $(MAKE) depend
cd tutorial; $(MAKE) depend
cd examples; $(MAKE) depend
.buildopts: Makefile
@echo
@echo ' Qt must first be configured using the "configure" script.'
@echo
@echo ' The make process will now run this...'
@echo
@./configure -frommake
dep: depend
FORCE:
|