Ignore:
Timestamp:
May 27, 2007, 1:17:48 PM (18 years ago)
Author:
bird
Message:

Perparing for 0.6.3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/libc-0.6/Makefile

    r3103 r3374  
    1010#
    1111
    12                        
     12
    1313###############################################################################
    1414##   Global Variables
     
    5454BUILD_DEBUGINFO = -g
    5555BUILD_ENABLE_SYMBOLS = --enable-symbols
    56 endif   
     56endif
    5757
    5858
     
    6161export GCC_VERSION_SHORT        ?= 335
    6262ifdef OFFICIAL_BIRD_VERSION
    63 export GCC_RELEASE_ID           ?= csd2
     63export GCC_RELEASE_ID           ?= csd3
    6464else
    6565export GCC_RELEASE_ID           ?= x
     
    7575export EMX_CVS_VENDOR                   ?= EMX
    7676export EMX_CVS_REL                              ?= EMX_0-9D-FIX04
    77 export LIBC_VERSION             ?= 0.6.2
    78 export LIBC_VERSION_SHORT       ?= 062
     77export LIBC_VERSION             ?= 0.6.3
     78export LIBC_VERSION_SHORT       ?= 063
    7979
    8080# innotek version and timestamp
     
    9090endif
    9191
    92                        
    93 #                       
     92
     93#
    9494# For builds on Linux Host builds we do the environment setup here.
    9595# This is essentially a mimicking of what we do on OS/2.
     
    127127endif
    128128
    129                                                        
     129
    130130
    131131
     
    152152
    153153# old bootstrap building.
    154 bootstrap all-boostrap: 
     154bootstrap all-boostrap:
    155155        mkdir -p $(PATH_OBJ)
    156156        $(NICE) $(MAKE) $(MAKEOPT) -j 1 -C . all-bootstrap-logged 2>&1 | $(UNIXROOT)/usr/bin/tee $(PATH_OBJ)/build-`date +"%Y%m%d-%H%M%S"`.log
     
    178178# banners
    179179#
    180                
     180
    181181all-banner-start:
    182182        @echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
    183183        @echo "+ Make started: $(shell date)"
    184184        @echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
    185                
     185
    186186all-banner-stage1:
    187187        @echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
     
    193193        @echo "+ Stage 2 - starting: $(shell date)"
    194194        @echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
    195        
     195
    196196all-banner-builtunix-initial:
    197197        @echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
    198198        @echo "+ Initializing builtunix tree"
    199199        @echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
    200                
     200
    201201all-banner-builtunix-stage2:
    202202        @echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
     
    208208        @echo "+ Install - starting: $(shell date)"
    209209        @echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
    210        
     210
    211211all-banner-install-done:
    212212        @echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
     
    218218        @echo "+ symlinks - staring: $(shell date)"
    219219        @echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
    220                
     220
    221221all-banner-symlinks-done:
    222222        @echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
     
    228228        @echo "+ symlinks unlinking - staring: $(shell date)"
    229229        @echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
    230                
     230
    231231all-banner-symlinks-unlink-done:
    232232        @echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
    233233        @echo "+ symlinks unlinking - done: $(shell date)"
    234234        @echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
    235                                                                
    236                
     235
     236
    237237#
    238238# Sanity and environment dumps - to make it easier to figure out make bugs.
     
    240240
    241241.PHONY: all-env
    242 all-env:       
     242all-env:
    243243        @echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
    244244        @echo "Variables:"
     
    306306        -ls -la $(PATH_BIN)/
    307307        @echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
    308        
    309        
     308
     309
    310310.PHONY: all-sanity
    311311all-sanity:
     
    340340endif
    341341        @echo "ok"
    342        
     342
    343343
    344344#
    345345# Preload tools we commonly use this speeds up stuff.
    346 #                                                                       
     346#
    347347PRELOADED_TOOLS = bin/sh.exe bin/echo.exe bin/true.exe usr/bin/test.exe usr/bin/expr.exe \
    348348     usr/bin/gawk.exe bin/sed.exe bin/rm.exe bin/cat.exe bin/cp.exe bin/mkdir.exe bin/rm.exe
    349        
     349
    350350.PHONY: all-preload-unload all-preload
    351351all-preload:
     
    363363endif
    364364        @echo ""
    365        
     365
    366366all-preload-unload:
    367367ifeq "$(BUILD_PLATFORM)" "OS2"
     
    379379.PHONY: all-versionstamps
    380380all-versionstamps: $(PATH_OBJ)/.ts.versionstamped
    381 $(PATH_OBJ)/.ts.versionstamped: 
     381$(PATH_OBJ)/.ts.versionstamped:
    382382#       echo '#define INNOTEK_VERSION  "$(INNOTEK_VERSION)"' > include/innotekversion.h
    383383        $(MAKE) $(MAKEOPT) -j 1 -f $(MAKEFILE) "INNOTEK_VERSION=$(INNOTEK_VERSION)" gcc-versionstamps binutils-versionstamps emx-versionstamps
     
    390390#       A rebuild with the new toolsuite is usually required when there is ABI
    391391#       changes and other vital changes done to the tools.
    392 #       
     392#
    393393
    394394.PHONY: all-stage1 all-stage1-it
     
    408408                all-gcc \
    409409                all-emx
    410                
     410
    411411.PHONY: all-stage2 all-stage2-it
    412412all-stage2: $(PATH_OBJ)/.all-stage2
     
    435435        @echo "+ Saving Stage 1 - done: $(shell date)"
    436436        @echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
    437        
     437
    438438all-stage2-it: \
    439439                all-banner-stage2 \
     
    468468                fi; \
    469469        done
    470 endif   
    471 
    472        
     470endif
     471
     472
    473473#
    474474# Generate all the diffs we have to supply.
     
    479479        binutils-diff \
    480480        emx-diff \
    481        
    482                                                                                
    483        
    484        
     481
     482
     483
     484
    485485
    486486###############################################################################
     
    505505        @echo "+ Quick Bootstrap started:            $(shell date)"
    506506        @echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
    507 .PHONY: all-quick-logged       
     507.PHONY: all-quick-logged
    508508all-quick-logged: \
    509509        all-quick-banner-start \
     
    524524        @echo "+ Quick Bootstrap Ended Successfully: $(shell date)"
    525525        @echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
    526        
     526
    527527.PHONY: all-quick-builtunix-initial
    528528all-quick-builtunix-initial: $(PATH_OBJ)/.quick-builtunix-initial
     
    534534        $(MAKE) $(MAKEOPT) -f $(MAKEFILE) all-quick-builtunix-initial-it
    535535        touch $@
    536                
     536
    537537
    538538# This build type is used for release builds.
     
    579579        $(MAKE) $(MAKEOPT) -f $(MAKEFILE) all-double-quick-builtunix-initial-it
    580580        touch $@
    581        
     581
    582582# stage1
    583583.PHONY: all-double-quick-stage1 all-double-quick-stage1-it
     
    596596        @echo "+ Double Quick Bootstrap Stage 1 - done:     $(shell date)"
    597597        @echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
    598         touch $@       
    599        
    600 # save stage1   
     598        touch $@
     599
     600# save stage1
    601601.PHONY: all-double-quick-save-stage1 all-double-quick-save-stage1-it
    602602all-double-quick-save-stage1: $(PATH_OBJ)/.doublequick-stage1-saved
     
    618618        touch $@
    619619
    620 # stage2       
     620# stage2
    621621.PHONY: all-double-quick-stage2 all-double-quick-stage2-it
    622622all-double-quick-stage2: $(PATH_OBJ)/.doublequick-stage2
     
    634634        @echo "+ Double Quick Bootstrap Stage 2 - done:     $(shell date)"
    635635        @echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
    636         touch $@       
    637        
    638                
    639 # step 1 builds the base libraries.     
     636        touch $@
     637
     638
     639# step 1 builds the base libraries.
    640640.PHONY: all-quick-step1 all-quick-step1-it
    641641all-quick-step1: $(PATH_OBJ)/.quick-step1
     
    715715
    716716
    717 # Installs the stuff we've built.                       
     717# Installs the stuff we've built.
    718718.PHONY: all-quick-install
    719719all-quick-install: \
     
    725725                all-strip-install \
    726726                all-banner-install-done
    727                
    728        
     727
     728
    729729###############################################################################
    730730###############################################################################
     
    736736###############################################################################
    737737###############################################################################
    738                
     738
    739739all-builtunix-initial: \
    740740                all-banner-builtunix-initial \
     
    745745                $(PATH_BUILTTOOLS)/omfhack/realar.exe \
    746746                $(PATH_BUILTTOOLS)/omfhack/ranlib.exe
    747                
     747
    748748all-builtunix-clean: \
    749749                all-preload-unload
    750750        rm -Rf $(PATH_BUILTUNIX)
    751        
     751
    752752all-builtunix-dirs:
    753753        mkdir -p $(PATH_BUILTTOOLS)/bin $(PATH_BUILTTOOLS)/lib $(PATH_BUILTTOOLS)/include $(PATH_BUILTTOOLS)/omfhack
    754        
     754
    755755$(PATH_BUILTTOOLS)/bin/dllar.cmd $(PATH_BUILTTOOLS_TMP)/bin/dllar.cmd: $(PATH_TOP)/src/misc/dllar.cmd
    756756        cp $< $@
     
    765765$(PATH_BUILTTOOLS_TMP)/omfhack:
    766766        mkdir -p $@
    767        
     767
    768768all-builtunix-stage2: \
    769769                all-banner-builtunix-stage2 \
     
    778778                all-builtunix-clean
    779779        mv -f $(PATH_BUILTUNIX_TMP) $(PATH_BUILTUNIX)
    780        
     780
    781781all-builtunix-stage2-libs:
    782782        -for aoutlib in `find $(PATH_BUILTUNIX_TMP) -name "*.a" | sed -e 's/\.a$$//' `; \
     
    823823                all-symlinks-unlink-binutils \
    824824                all-banner-symlinks-unlink-done
    825                
    826                
     825
     826
    827827ifeq "$(BUILD_PLATFORM)" "OS2"
    828828TOOL_SYMLINK_FILE   = cp -p
     
    837837endif
    838838
    839 # ld is broken, so don't use it!       
     839# ld is broken, so don't use it!
    840840# ld \
    841841
     
    902902include/xtensa-isa.h \
    903903
    904        
     904
    905905# Symlink binutils stuff to gcc.
    906906#       Note the test should've been "! -e", but that doesn' work in ash... :/
     
    916916                        fi ; \
    917917                fi ; \
    918         done   
     918        done
    919919        for dir in $(SYMLINKS_BINUTILS_TO_GCC_DIRS) ; do \
    920920                if [ ! -f "$(PATH_TOP)/src/gcc/.symlinked.`echo $${dir} | sed -e 's@/@_@g'`" ] ; then  \
     
    951951        done
    952952        -ls -a1 src/gcc/.sym*
    953                                                
     953
    954954
    955955###############################################################################
     
    10151015        done
    10161016
    1017        
     1017
    10181018# build the components.
    10191019.PHONY: gcc-bootstrap gcc-build gcc-install gcc-configure
     
    10211021        mkdir -p $(PATH_OBJ)/gcc
    10221022        $(MAKE) $(MAKEOPT) -j 1 -C $(PATH_OBJ)/gcc -f $(MAKEFILE) $@-it
    1023        
     1023
    10241024# let the build/bootstrap create the gcc import .def file before kicking off a build.
    10251025gcc-bootstrap gcc-build: src/gcc/gcc/config/i386/emx-libgcc_so_d.def
     
    10391039gcc-bootstrap-it gcc-build-it: \
    10401040                $(PATH_OBJ)/gcc/.ts.configured
    1041 ifeq "$(BUILD_PLATFORM)" "OS2"         
     1041ifeq "$(BUILD_PLATFORM)" "OS2"
    10421042        unset GCCLOAD ; export LT_OS2_LDFLAGS="-Zomf -g" ; \
    10431043        $(MAKE) $(MAKEOPT) -C $(PATH_OBJ)/gcc \
     
    10511051else
    10521052        $(MAKE) $(MAKEOPT) -C $(PATH_OBJ)/gcc $(subst build, all, $(patsubst gcc-%-it, %, $@))
    1053 endif   
    1054                
     1053endif
     1054
    10551055# configure it (invoked after directory change).
    10561056#       We set CC to help configure finding it.
     
    11031103
    11041104
    1105 # Install to builtunix directory.       
     1105# Install to builtunix directory.
    11061106##     WARNING! Another spec HACK!
    11071107gcc-builtunix-stage2:
     
    11141114        gcc-autoconf-refresh \
    11151115        gcc-build
    1116        
     1116
    11171117gcc-quick-installstage:
    11181118        rm -Rf $(PATH_BUILTUNIX_TMP)
     
    11211121        rm -Rf $(PATH_BUILTUNIX_TMP)
    11221122
    1123                
     1123
    11241124# Generate diffs for GCC - part of packing a release.
    11251125.PHONY: gcc-diff $(ALL_PREFIX)/src/diffs/gcc-$(GCC_VERSION).diff
     
    12071207                CFLAGS="$(BUILD_DEBUGINFO) $(BUILD_OPTIMIZE) -Zhigh-mem" \
    12081208                LDFLAGS="$(BUILD_DEBUGINFO) -Zhigh-mem -Zstack 1024 -Zomf"
    1209                
     1209
    12101210# configure it (invoked after directory change).
    12111211#       We set CC to help configure finding it.
     
    12691269                --program-suffix=-elf "
    12701270        touch $(PATH_OBJ)/binutils/.ts.configured
    1271                
    1272        
    1273        
     1271
     1272
     1273
    12741274# Install the Binutils build
    12751275#       Repeating the prefix doesn't hurt anybody.
     
    12881288        sed -e '/printf.*program_version/s/%s %s.*\\n/%s %s $(INNOTEK_VERSION)\\n/' \
    12891289                $(PATH_TOP)/src/binutils/binutils/version.tmp.c > $(PATH_TOP)/src/binutils/binutils/version.c
    1290         rm -f $(PATH_TOP)/src/binutils/binutils/version.tmp.c           
     1290        rm -f $(PATH_TOP)/src/binutils/binutils/version.tmp.c
    12911291        if [ -f $(PATH_TOP)/src/gcc/binutils/version.c ]; then \
    12921292                cp -f $(PATH_TOP)/src/gcc/binutils/version.c  $(PATH_TOP)/src/gcc/binutils/version.tmp.c && \
     
    13001300            -e '/fprintf.*GNU.*assembler.*version.*BFD.*/s/using BFD version %s.*/using BFD version %s $(INNOTEK_VERSION)"),/ ' \
    13011301                $(PATH_TOP)/src/binutils/gas/as.tmp.c > $(PATH_TOP)/src/binutils/gas/as.c
    1302         rm -f $(PATH_TOP)/src/binutils/gas/as.tmp.c             
     1302        rm -f $(PATH_TOP)/src/binutils/gas/as.tmp.c
    13031303        if [ -f $(PATH_TOP)/src/gcc/gas/as.c ]; then \
    13041304                cp -f $(PATH_TOP)/src/gcc/gas/as.c  $(PATH_TOP)/src/gcc/gas/as.tmp.c && \
     
    13121312        sed -e '/fprintf.*GNU.*ld.*version/s/(with BFD %s).*/(with BFD %s) $(INNOTEK_VERSION)\\n"),/' \
    13131313                $(PATH_TOP)/src/binutils/ld/ldver.tmp.c > $(PATH_TOP)/src/binutils/ld/ldver.c
    1314         rm -f $(PATH_TOP)/src/binutils/ld/ldver.tmp.c           
     1314        rm -f $(PATH_TOP)/src/binutils/ld/ldver.tmp.c
    13151315        if [ -f $(PATH_TOP)/src/gcc/ld/ldver.c ]; then \
    13161316                cp -f $(PATH_TOP)/src/gcc/ld/ldver.c $(PATH_TOP)/src/gcc/ld/ldver.tmp.c && \
     
    13181318                        $(PATH_TOP)/src/gcc/ld/ldver.tmp.c > $(PATH_TOP)/src/gcc/ld/ldver.c && \
    13191319                rm -f $(PATH_TOP)/src/gcc/ld/ldver.tmp.c ; \
    1320         fi             
    1321        
     1320        fi
     1321
    13221322
    13231323# Quick bootstrap workers.
     
    13371337        rm -Rf $(PATH_BUILTUNIX_TMP)
    13381338
    1339                                        
     1339
    13401340# Generate diffs for Binutils (part of packing).
    13411341.PHONY: binutils-diff $(ALL_PREFIX)/src/diffs/binutils-$(BINUTILS_VERSION).diff
     
    13471347
    13481348
    1349                                                        
    1350 
    1351        
     1349
     1350
     1351
    13521352
    13531353
     
    13641364                emx-build
    13651365        @echo "Successfully build EMX."
    1366        
    1367 # Some helpers.         
     1366
     1367# Some helpers.
    13681368# TODO: Change OUT and INS to the right ones. Currently not possible as
    13691369#       doing such breaks the rules generating.
     
    13781378EMX_MASM = $(PATH_TOP)/tools/x86.os2/masm/v6.0/binp/ml.exe
    13791379EMX_DEFINES = "OUT=$(EMX_OUT)" "INS=$(EMX_INS)" "MODE=$(EMX_MODE)" "ASM=$(EMX_MASM) -c"
    1380                                                                        
     1380
    13811381# build the components. (directory changer rules)
    13821382.PHONY: emx-build emx-install emx-configure
     
    13921392        $(MAKE) $(MAKEOPT) -C $(PATH_TOP)/src/emx $(EMX_DEFINES) INS=$(ALL_PREFIX)/ install
    13931393
    1394                                        
     1394
    13951395# We pass down the INNOTEK_VERSION define when building EMX.
    13961396emx-versionstamps:
    13971397        @echo "Version stamping EMX... nothing to do"
    1398                                                                        
     1398
    13991399# Install the compiled emx stuff to builtunix.
    14001400emx-builtunix-stage2:
    14011401        $(MAKE) $(MAKEOPT) -C $(PATH_TOP)/src/emx $(EMX_DEFINES) INS=$(PATH_BUILTTOOLS_TMP)/  install
    14021402
    1403 # Quick bootstrap workers.                     
     1403# Quick bootstrap workers.
    14041404emx-quick-libs:
    14051405        GCCLOAD=3 $(MAKE) $(MAKEOPT) -f $(PATH_TOP)/src/emx/libonly.gmk -C $(PATH_TOP)/src/emx $(EMX_DEFINES) all
     
    14071407emx-quick-libs-install:
    14081408        $(MAKE) $(MAKEOPT) -f $(PATH_TOP)/src/emx/libonly.gmk -C $(PATH_TOP)/src/emx $(EMX_DEFINES) INS=$(PATH_BUILTTOOLS)/ install
    1409                                        
     1409
    14101410emx-quick-rest:
    14111411        GCCLOAD=3 $(MAKE) $(MAKEOPT) -C $(PATH_TOP)/src/emx $(EMX_DEFINES) all
    1412                        
     1412
    14131413emx-quick-rest-install:
    14141414        $(MAKE) $(MAKEOPT) -C $(PATH_TOP)/src/emx $(EMX_DEFINES) INS=$(PATH_BUILTTOOLS)/ install
    1415                                
     1415
    14161416
    14171417# Generate diffs for EMX (part of packing).
     
    14231423
    14241424
    1425        
    1426        
    1427        
     1425
     1426
     1427
    14281428###############################################################################
    14291429###############################################################################
     
    14461446        rm -f $(ZIPBASE).zip
    14471447        cd $(ALL_PREFIX)/.. ; zip $(ZIPFLAGS) $(ZIPBASE).zip *
    1448        
     1448
    14491449packing-doc:
    14501450        rm -f $(ZIPBASE)-doc.zip
    14511451        cd $(ALL_PREFIX)/..; zip $(ZIPFLAGS) $(ZIPBASE)-doc.zip usr/doc/GCC-$(GCC_VERSION)/*
    1452        
     1452
    14531453packing-libc:
    14541454        rm -f $(PATH_BIN)/libc-$(LIBC_VERSION)-$(GCC_RELEASE_ID).zip
     
    14601460                packing-src-binutils \
    14611461                packing-src-emx \
    1462        
     1462
    14631463packing-src-gcc:
    14641464        rm -f $(ZIPBASE)-src-GCC.zip
    14651465        zip $(ZIPFLAGS) $(ZIPBASE)-src-GCC.zip src/gcc -x \*CVS\*
    1466                                        
     1466
    14671467packing-src-binutils:
    14681468        rm -f $(ZIPBASE)-src-binutils.zip
    14691469        zip $(ZIPFLAGS) $(ZIPBASE)-src-binutils.zip src/binutils -x \*CVS\*
    1470        
     1470
    14711471packing-src-emx:
    14721472        rm -f $(ZIPBASE)-src-emx.zip
    14731473        zip $(subst r,,$(ZIPFLAGS)) $(ZIPBASE)-src-emx.zip src/emx/* -x \*CVS\* -x \*testcase\* -x \*out\*
    14741474        zip $(ZIPFLAGS) $(ZIPBASE)-src-emx.zip src/emx/src/* src/emx/include/* src/emx/src/bsd/* -x \*CVS\*
    1475                                
    1476                
     1475
     1476
    14771477###############################################################################
    14781478###############################################################################
     
    15011501        cp $(PATH_TOP)/src/misc/dllar.cmd           $(ALL_PREFIX)/bin
    15021502        cp $(PATH_TOP)/src/misc/gccenv.cmd          $(ALL_PREFIX)/bin
    1503                        
     1503
    15041504
    15051505#
    15061506# Checkout rule
    1507 #       
     1507#
    15081508checkout update up:
    15091509        cvs -q update -d -P 2>&1 | tee up.log
Note: See TracChangeset for help on using the changeset viewer.