Changeset 15 for trunk


Ignore:
Timestamp:
Nov 17, 2005, 4:35:17 PM (20 years ago)
Author:
dmik
Message:

Solved some 4OS2 incompatibility issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.os2-g++

    r14 r15  
    11# -*- makefile -*-
     2#
     3# :mode=makefile:tabSize=4:indentSize=4:noTabs=false:
     4# :folding=explicit:collapseFolds=1:
    25#
    36# Main Makefile for building the Qt library, examples and tutorial.
     
    912CONTINUEONERROR=-i
    1013
     14HAVE_4OS2 := $(shell echo %@eval[2 + 2])
     15ifneq (4,$(HAVE_4OS2))
     16HAVE_4OS2 :=
     17endif
     18
     19ECHO_EMPTY := $(if $(HAVE_4OS2),@echo .,@echo.)
     20
    1121.PHONY: private_headers
    1222
    1323all: symlinks src-qmake src-moc sub-src sub-tutorial sub-tools sub-examples
    14         @echo.
     24        $(ECHO_EMPTY)
    1525        @echo The Qt library is now built in lib
    1626        @echo The Qt examples are built in the directories in examples
    1727        @echo The Qt tutorials are built in the directories in tutorial
    18         @echo.
     28        $(ECHO_EMPTY)
    1929        @echo Note: be sure to set the environment variable QTDIR to point
    2030        @echo       to here or to wherever you move these directories.
    21         @echo.
     31        $(ECHO_EMPTY)
    2232        @echo Enjoy!   - the Trolltech team
    23         @echo.
     33        $(ECHO_EMPTY)
    2434
    2535symlinks: .qmake.cache private_headers
     
    2939        $(MAKE) -C qmake
    3040
    31 src-moc: src-qmake $(FORCEDEP)
    32         if not exist src\moc\Makefile cd src\moc & qmake
     41src-moc: src-qmake src\moc\Makefile $(FORCEDEP)
    3342        $(MAKE) -C src\moc
    3443
    35 sub-src: src-qmake src-moc .qmake.cache $(FORCEDEP)
    36         if not exist src\Makefile cd src & qmake
     44src\moc\Makefile:
     45        cd src\moc & qmake     
     46       
     47sub-src: src-qmake src-moc .qmake.cache src\Makefile $(FORCEDEP)
    3748        $(MAKE) -C src
    3849
    39 sub-tutorial: sub-src $(FORCEDEP)
    40         if not exist tutorial\Makefile cd tutorial & qmake
     50src\Makefile:
     51        cd src & qmake 
     52       
     53sub-tutorial: sub-src tutorial\Makefile $(FORCEDEP)
    4154        $(MAKE) -C tutorial $(CONTINUEONERROR)
    4255
    43 sub-examples: sub-src sub-tools $(FORCEDEP)
    44         if not exist examples\Makefile cd examples & qmake
     56tutorial\Makefile:
     57        cd tutorial & qmake     
     58       
     59sub-examples: sub-src sub-tools examples\Makefile $(FORCEDEP)
    4560        $(MAKE) -C examples $(CONTINUEONERROR)
    4661
     62examples\Makefile:
     63        cd examples & qmake     
     64       
    4765#@@TODO(dmik):
    4866#sub-extensions: sub-src $(FORCEDEP)
     
    5472#sub-tools: sub-plugins $(FORCEDEP)
    5573#       $(MAKE) -C tools
    56 sub-tools: $(FORCEDEP)
    57         if not exist tools\Makefile cd tools & qmake
     74sub-tools: tools\Makefile $(FORCEDEP)
    5875        $(MAKE) -C tools
    5976
     77tools\Makefile:
     78        cd tools & qmake       
     79       
    6080clean:
    6181        @if exist qmake\Makefile $(MAKE) -C qmake $(CONTINUEONERROR) clean
     
    7393
    7494.qmake.cache:
    75         @echo.
     95        $(ECHO_EMPTY)
    7696        @echo   Qt must first be configured using the "configure" script.
    77         @echo.
     97        $(ECHO_EMPTY)
    7898
    7999FORCE:
Note: See TracChangeset for help on using the changeset viewer.