source: trunk/Makefile@ 319

Last change on this file since 319 was 282, checked in by bird, 22 years ago

#383: dropp the spec hacks.

  • Property cvs2svn:cvs-rev set to 1.33
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 33.9 KB
RevLine 
[25]1# $Id: Makefile 282 2003-06-03 00:12:51Z bird $
2#
3# Top level makefile.
4#
5# InnoTek Systemberatung GmbHconfidential
6#
7# Copyright (c) 2003 InnoTek Systemberatung GmbH
8# Author: knut st. osmundsen <bird@anduin.net>
9#
10# All Rights Reserved
11#
12
[34]13
14###############################################################################
15## Global Variables
[73]16## (D = no drive)
[34]17###############################################################################
[69]18PWD := $(shell pwd)
19PWDD := $(shell pwd|sed 's/^[a-zA-Z]://')
20MAKEFILE = $(PWD)/Makefile
[34]21
[111]22ifndef BUILD_MODE
[34]23export BUILD_MODE=DEBUG
[25]24endif
[34]25
[69]26ifndef PATH_TOP
27export PATH_TOP := $(PWD)
[76]28endif
29ifndef PATH_TOPD
[69]30export PATH_TOPD := $(PWDD)
31endif
32
33
34export PATH_BIN = $(PATH_TOP)/bin/$(BUILD_PLATFORM)/$(BUILD_MODE)
35export PATH_BIND = $(PATH_TOPD)/bin/$(BUILD_PLATFORM)/$(BUILD_MODE)
36export PATH_OBJ = $(PATH_TOP)/obj/$(BUILD_PLATFORM)/$(BUILD_MODE)
37export PATH_OBJD = $(PATH_TOPD)/obj/$(BUILD_PLATFORM)/$(BUILD_MODE)
38export PATH_BUILTTOOLS = $(PATH_OBJ)/builttools
39export PATH_BUILTTOOLSD= $(PATH_OBJD)/builttools
[34]40
[69]41# Debug info or not (when ever we feel like passing down such options).
[122]42# Several ways to do this it seems.
[69]43ifeq "$(BUILD_MODE)" "RELEASE"
44BUILD_DEBUGINFO = -s
[122]45BUILD_ENABLE_SYMBOLS = --disable-symbols
[69]46else
47BUILD_DEBUGINFO = -g
[122]48BUILD_ENABLE_SYMBOLS = --enable-symbols
[69]49endif
50
[76]51
[109]52# Version and CVS defines
53export GCC_VERSION ?= 3.2.2
54export GCC_VERSION_SHORT ?= 3022
55export GCC_CVS_VENDOR ?= GNU
56export GCC_CVS_REL ?= GCC_3-2-2
57export BINUTILS_VERSION ?= 2.11.2
58export BINUTILS_VERSION_SHORT ?= 2112
59export BINUTILS_CVS_VENDOR ?= GNU
60export BINUTILS_CVS_REL ?= BINUTILS_2-11-2
61export EMX_VERSION ?= 0.9d-fix04
62export EMX_VERSION_SHORT ?= 9d04
63export EMX_CVS_VENDOR ?= EMX
64export EMX_CVS_REL ?= EMX_0-9D-FIX04
65
[111]66# innotek version and timestamp
67export INNOTEK_VERSION ?= (Innotek Build $(shell date '+%Y-%m-%d %H:%M'))
68
[109]69
[76]70#
[69]71# For builds on Linux Host builds we do the environment setup here.
72# This is essentially a mimicking of what we do on OS/2.
73#
74ifndef BUILD_PLATFORM
75ifeq "$(shell uname -s)" "Linux"
76export BUILD_PLATFORM ?= LINUX
77export BUILD_PROJECT ?= GCCOS2
78export SH ?= /bin/sh
79export ASH ?= /bin/ash
80export BASH ?= /bin/bash
81export AWK ?= /bin/gawk
82export GAWK ?= /bin/gawk
83export CONFIG_SHELL ?= $(SH)
84export MAKESHELL ?= $(SH)
85export PATH_EMX ?= /usr
86export PATH_EMXPGCC ?= /usr
87export TMP ?= /tmp
88export TMPDIR ?= /tmp
[25]89endif
[69]90endif
[25]91
92
[109]93
94# Misc Helpers
95ALL_PREFIX = $(PATH_BIND)/$(GCC_VERSION)/usr
96TOOL_CVS_DIFF_TREE = -cvs diff -R -N -w -u -r
97
98
99
100
101
[34]102###############################################################################
103###############################################################################
104###############################################################################
105###############################################################################
106#
107# M a i n R u l e z
108#
109###############################################################################
110###############################################################################
111###############################################################################
112###############################################################################
113all:
114 mkdir -p $(PATH_OBJ)
[69]115 $(MAKE) -C . all-logged 2>&1 | $(UNIXROOT)/usr/bin/tee $(PATH_OBJ)/build-`date +"%Y%m%d-%H%M%S"`.log
[34]116
117all-logged: \
[120]118 all-banner-start \
[25]119 all-env \
120 all-sanity \
[34]121 all-preload \
[120]122 all-versionstamps \
[89]123 all-symlinks \
[25]124 \
[120]125 all-stage1 \
126 all-stage2 \
[25]127 \
[76]128 all-install \
129 \
[120]130 all-symlinks-unlink
131 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
132 @echo "+ Make Ended Successfully: $(shell date)"
133 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
[34]134
[120]135#
136# banners
137#
[34]138
[120]139all-banner-start:
[25]140 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
141 @echo "+ Make started: $(shell date)"
142 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
[120]143
144all-banner-stage1:
145 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
146 @echo "+ Stage 1 - starting: $(shell date)"
147 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
148
149all-banner-stage2:
150 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
151 @echo "+ Stage 2 - starting: $(shell date)"
152 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
[25]153
[120]154all-banner-builttools-initial:
[25]155 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
[120]156 @echo "+ Initializing builttools tree"
[25]157 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
[120]158
159all-banner-builttools-stage2:
160 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
161 @echo "+ Copying stage2 builttools"
162 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
163
164all-banner-install:
165 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
166 @echo "+ Install - starting: $(shell date)"
167 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
[25]168
[120]169all-banner-install-done:
170 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
171 @echo "+ Install - done: $(shell date)"
172 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
173
174
175#
176# Sanity and environment dumps - to make it easier to figure out make bugs.
177#
178
[25]179all-env:
180 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
181 @echo "Variables:"
[34]182 @echo " PWD = $(PWD)"
[69]183 @echo " PWDD = $(PWDD)"
[34]184 @echo " PATH_TOP = $(PATH_TOP)"
[69]185 @echo " PATH_TOPD = $(PATH_TOPD)"
[34]186 @echo " PATH_OBJ = $(PATH_OBJ)"
[69]187 @echo " PATH_OBJD = $(PATH_OBJD)"
188 @echo " PATH_BIN = $(PATH_BIN)"
189 @echo " PATH_BIND = $(PATH_BIND)"
[111]190 @echo " ALL_PREFIX = $(ALL_PREFIX)"
[34]191 @echo " PATH_EMXPGCC = $(PATH_EMXPGCC)"
192 @echo " PATH_EMX = $(PATH_EMX)"
193 @echo " BUILD_MODE = $(BUILD_MODE)"
194 @echo " BUILD_PLATFORM = $(BUILD_PLATFORM)"
195 @echo " BUILD_PROJECT = $(BUILD_PROJECT)"
[111]196 @echo " GCC_VERSION = $(GCC_VERSION)"
197 @echo " GCC_VERSION_SHORT = $(GCC_VERSION_SHORT)"
198 @echo " GCC_CVS_VENDOR = $(GCC_CVS_VENDOR)"
199 @echo " GCC_CVS_REL = $(GCC_CVS_REL)"
200 @echo " BINUTILS_VERSION = $(BINUTILS_VERSION)"
201 @echo " BINUTILS_VERSION_SHORT = $(BINUTILS_VERSION_SHORT)"
202 @echo " BINUTILS_CVS_VENDOR = $(BINUTILS_CVS_VENDOR)"
203 @echo " BINUTILS_CVS_REL = $(BINUTILS_CVS_REL)"
204 @echo " EMX_VERSION = $(EMX_VERSION)"
205 @echo " EMX_VERSION_SHORT = $(EMX_VERSION_SHORT)"
206 @echo " EMX_CVS_VENDOR = $(EMX_CVS_VENDOR)"
207 @echo " EMX_CVS_REL = $(EMX_CVS_REL)"
[34]208 @echo " MAKEFILE = $(MAKEFILE)"
209 @echo " UNIXROOT = $(UNIXROOT)"
210 @echo " AC_PREFIX = $(AC_PREFIX)"
211 @echo " AC_MACRODIR = $(AC_MACRODIR)"
212 @echo " HOSTNAME = $(HOSTNAME)"
213 @echo " USER = $(USER)"
214 @echo " LOGNAME = $(LOGNAME)"
215 @echo " TMP = $(TMP)"
216 @echo " TMPDIR = $(TMPDIR)"
217 @echo " USER = $(USER)"
218 @echo " AWK = $(AWK)"
219 @echo " GAWK = $(GAWK)"
220 @echo " SH = $(SH)"
221 @echo " ASH = $(ASH)"
222 @echo " BASH = $(BASH)"
223 @echo " CONFIG_SHELL = $(CONFIG_SHELL)"
224 @echo " MAKESHELL = $(MAKESHELL)"
225 @echo " EMXSHELL = $(EMXSHELL)"
226 @echo " SHELL = $(SHELL)"
227 @echo " MAKE = $(MAKE)"
228 @echo " PATH = $(PATH)"
[25]229 @echo " C_INCLUDE_PATH = $(C_INCLUDE_PATH)"
230 @echo " CPLUS_INCLUDE_PATH = $(CPLUS_INCLUDE_PATH)"
231 @echo " OBJC_INCLUDE_PATH = $(OBJC_INCLUDE_PATH)"
232 @echo " LIBRARY_PATH = $(LIBRARY_PATH)"
233 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
[120]234 @echo "Content of PATH_OBJ:"
235 -ls -la $(PATH_OBJ)/
236 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
237 @echo "Content of PATH_BIN:"
238 -ls -la $(PATH_BIN)/
239 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
[25]240
[120]241
[25]242all-sanity:
[68]243 @echo -n "Checking build environment sanity... "
244 @if [ "x$(BUILD_PROJECT)" != "xGCCOS2" ]; then \
245 echo ""; echo "Error: BUILD_PROJECT is wrong or isn't defined!"; \
246 exit 8; \
247 fi
[69]248 @if [ "x$(BUILD_PLATFORM)" != "xOS2" -a "x$(BUILD_PLATFORM)" != "xLINUX" ]; then \
[68]249 echo ""; echo "Error: BUILD_PLATFORM is wrong or isn't defined!"; \
250 exit 8; \
251 fi
[69]252 @if [ "x$(BUILD_PLATFORM)" = "xOS2" -a "x$(UNIXROOT)" = "x" ]; then \
253 echo ""; echo "Error: UNIXROOT isn't defined!"; \
254 exit 8; \
255 fi
256 @if [ "x$(BUILD_PLATFORM)" != "xOS2" -a "x$(UNIXROOT)" != "x" ]; then \
257 echo ""; echo "Error: UNIXROOT is defined!"; \
258 exit 8; \
259 fi
260ifeq "$(BUILD_PLATFORM)" "OS2"
261 @if gcc --version | grep -qe ".*[3]\.[2-9]\.[0-9]"; then \
262 true; \
263 else \
264 echo ""; echo "Warning: GCC v3.2.x or higher is recommended!"; \
265 fi
266 @if ar --version | grep -qe ".*2\.11\.[2-9]" -e ".*[2]\.1[2-9]\.[0-9]*"; then \
267 true; \
268 else \
269 echo ""; echo "Warning: AR v2.11.2 or higher is recommended!"; \
270 fi
271endif
[68]272 @echo "ok"
273
[120]274
275#
276# Preload tools we commonly use this speeds up stuff.
277#
[34]278PRELOADED_TOOLS = bin/sh.exe bin/echo.exe bin/true.exe usr/bin/test.exe usr/bin/expr.exe \
279 usr/bin/gawk.exe usr/bin/sed.exe bin/rm.exe bin/cat.exe bin/cp.exe
[76]280
[34]281all-preload:
282 @echo "Preloading tools:"
[69]283ifeq "$(BUILD_PLATFORM)" "OS2"
[34]284 @for tool in $(PRELOADED_TOOLS); do \
285 echo -n " $$tool"; \
286 emxload -e $(UNIXROOT)/$$tool; \
287 done
[120]288 emxload -e gcc.exe g++.exe ld.exe cc1.exe as.exe cc1plus.exe ar.exe cpp0.exe ld.exe
[69]289endif
[34]290 @echo ""
[121]291
292all-preload-unload-obj:
293ifeq "$(BUILD_PLATFORM)" "OS2"
[227]294 -for prog in `emxload -l | sed -e 's|\\\|\/|g' -e 's@.*³[[:blank:]]*@@' | grep '$(PATH_OBJD)'`; \
[121]295 do \
296 emxload -u $$prog; \
297 done
298endif
299
[34]300
[111]301#
[120]302# Version stamping/branding.
303# Update various version strings which are printed from the tools to tell
304# the build date and that's our built. This helps us tell releases apart.
305#
[111]306# IMPORTANT! Take care not to commit the changed files
307# (TODO! Try make these changes to non-cvs backed files. (long-term-goal))
308.PHONY: all-versionstamps
309all-versionstamps: $(PATH_OBJ)/.ts.versionstamped
310$(PATH_OBJ)/.ts.versionstamped:
[226]311 echo '#define INNOTEK_VERSION "$(INNOTEK_VERSION)"' > include/innotekversion.h
[111]312 $(MAKE) -f $(MAKEFILE) "INNOTEK_VERSION=$(INNOTEK_VERSION)" gcc-versionstamps binutils-versionstamps emx-versionstamps
313 mkdir -p $(@D)
314 touch $@
315
316
[120]317#
318# Stages
319# A rebuild with the new toolsuite is usually required when there is ABI
320# changes and other vital changes done to the tools.
321#
322
323all-stage1: $(PATH_OBJ)/.all-stage1
324$(PATH_OBJ)/.all-stage1:
325 $(MAKE) -f $(MAKEFILE) all-stage1-it
326 echo "$(@F)" > $(PATH_OBJ)/.last-stage
327 touch $@
328 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
329 @echo "+ Stage 1 - done: $(shell date)"
330 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
[111]331
[121]332all-stage1-it: \
[120]333 all-banner-stage1 \
334 all-builttools-initial \
335 all-emx \
336 all-binutils \
337 all-gcc
338
[76]339
[120]340all-stage2: $(PATH_OBJ)/.all-stage2
341$(PATH_OBJ)/.all-stage2: \
342 $(PATH_OBJ)/.all-stage2.save-stage1
343 $(MAKE) -f $(MAKEFILE) all-stage2-it
344 echo "$(@F)" > $(PATH_OBJ)/.last-stage
345 touch $@
346 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
347 @echo "+ Stage 2 - done: $(shell date)"
348 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
349
350$(PATH_OBJ)/.all-stage2.save-stage1:
351 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
352 @echo "+ Saving Stage 1 - Starting: $(shell date)"
353 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
[121]354 $(MAKE) -f $(MAKEFILE) all-preload-unload-obj
[120]355 $(MAKE) -f $(MAKEFILE) all-builttools-stage2
356 rm -Rf $(PATH_OBJ)/stage1
357 mkdir -p $(PATH_OBJ)/stage1
358 if [ -d $(PATH_OBJ)/gcc ] ; then mv $(PATH_OBJ)/gcc $(PATH_OBJ)/stage1/gcc; fi
359 if [ -d $(PATH_OBJ)/emx ] ; then mv $(PATH_OBJ)/emx $(PATH_OBJ)/stage1/emx; fi
360 $(MAKE) -f $(MAKEFILE) all-preload
361 touch $@
362 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
363 @echo "+ Saving Stage 1 - done: $(shell date)"
364 @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
[25]365
[120]366all-stage2-it: \
367 all-banner-stage2 \
368 all-emx \
369 all-binutils \
370 all-gcc
371
372
373#
374# Install to bin tree makeing it ready for packing.
375#
376all-install: \
377 all-banner-install \
378 gcc-install \
379 emx-install \
380 all-banner-install-done \
381
382
383#
384# Generate all the diffs we have to supply.
385#
[109]386all-diff: \
387 gcc-diff \
388 binutils-diff \
389 emx-diff \
[34]390
[109]391
[120]392
393
394
395
[25]396###############################################################################
397###############################################################################
398###############################################################################
[34]399#
400# B u i l t T o o l s
401#
[25]402###############################################################################
403###############################################################################
404###############################################################################
[120]405.PHONY: all-builttools-initial all-builttools-dirs all-builttools-clean all-builttools-stage2
406
[34]407all-builttools-initial: \
[120]408 all-banner-builttools-initial \
409 all-builttools-clean \
[34]410 all-builttools-dirs \
[111]411 $(PATH_BUILTTOOLS)/bin/dllar.cmd \
[34]412
[121]413all-builttools-clean: \
414 all-preload-unload-obj
[120]415 rm -Rf $(PATH_BUILTTOOLS)
416
[34]417all-builttools-dirs:
[111]418 mkdir -p $(PATH_BUILTTOOLS)/bin $(PATH_BUILTTOOLS)/lib $(PATH_BUILTTOOLS)/include
[34]419
[111]420$(PATH_BUILTTOOLS)/bin/dllar.cmd: $(PATH_TOP)/src/misc/dllar.cmd
[34]421 cp $< $@
422
[120]423all-builttools-stage2: \
424 all-banner-builttools-stage2 \
425 $(PATH_BUILTTOOLS)/bin/dllar.cmd \
426 gcc-builttools-stage2 \
427 emx-builttools-stage2 \
428 all-builttools-stage2-libs
429
430all-builttools-stage2-libs:
431 -for aoutlib in `find $(PATH_BUILTTOOLS) -name "*.a" | sed -e 's/\.a$$//' `; \
432 do \
433 if [ ! -f $(aoutlib).lib ]; then \
434 echo " $${aoutlib}"; \
435 $(PATH_BUILTTOOLS)/bin/emxomf.exe $${aoutlib}.a; \
436 fi;\
437 done
[34]438
439
[89]440###############################################################################
441###############################################################################
442###############################################################################
443#
444# S y m l i n k s
445#
446#
447# We use symlinking of binutils stuff into the gcc tree so we can
448# build everything in one go and take advantage of the gcc
449# makesystem which will use the binutils we built when doing the
450# gcc libraries and such.
451#
452# On OS/2 symlinks doesn't exist so, we'll copy the source trees.
453# Copy because this will for directories work ok with cvs, moving
454# directories would cause 'cvs update -d' to refetch stuff.
455#
[109]456# IMPORTANT! Take care, the 'symlined' stuff will be removed at the
457# end of the build. Remeber to do all-symlinks-unlink before a fresh
458# build is started as the duplicated binutils things doesn't get
459# updated by cvs.
[89]460#
[109]461#
[89]462#w##############################################################################
463###############################################################################
464###############################################################################
[102]465all-symlinks: \
466 all-symlinks-binutils
[34]467
[109]468all-symlinks-unlink: \
469 all-symlinks-unlink-binutils
470
471
[89]472ifeq "$(BUILD_PLATFORM)" "OS2"
[265]473TOOL_SYMLINK_FILE = cp -p
474TOOL_SYMLINK_DIR = cp -pRf
[89]475TOOL_SYMLINK_MKDIR = mkdir
476TOOL_UNSYMLINK_DIR = rm -Rf
477else
478TOOL_SYMLINK_FILE = ln -s
479TOOL_SYMLINK_DIR = ln -s
480TOOL_SYMLINK_MKDIR = true
481TOOL_UNSYMLINK_DIR = rm
482endif
[102]483
484# ld is broken, so don't use it!
485# ld \
486
[89]487SYMLINKS_BINUTILS_TO_GCC_DIRS = \
488bfd \
489binutils \
490etc \
491gas \
492gprof \
493intl \
494opcodes \
495texinfo \
496include/aout \
497include/coff \
498include/elf \
499include/nlm \
500include/opcode \
501include/regs \
[34]502
[89]503SYMLINKS_BINUTILS_TO_GCC_FILES = \
504include/alloca-conf.h \
505include/ansidecl.h \
506include/bfdlink.h \
507include/bin-bugs.h \
508include/bout.h \
509include/callback.h \
510include/ChangeLog \
511include/COPYING \
512include/demangle.h \
513include/dis-asm.h \
514include/dyn-string.h \
515include/filenames.h \
516include/floatformat.h \
517include/fnmatch.h \
518include/fopen-bin.h \
519include/fopen-same.h \
520include/fopen-vms.h \
521include/gdbm.h \
522include/getopt.h \
523include/hashtab.h \
524include/hp-symtab.h \
525include/ieee.h \
526include/libiberty.h \
527include/MAINTAINERS \
528include/md5.h \
529include/oasys.h \
530include/objalloc.h \
531include/obstack.h \
532include/os9k.h \
533include/partition.h \
534include/progress.h \
535include/remote-sim.h \
536include/safe-ctype.h \
537include/sim-d10v.h \
538include/sort.h \
539include/splay-tree.h \
540include/symcat.h \
541
542# Symlink binutils stuff to gcc.
543# Note the test should've been "! -e", but that doesn' work in ash... :/
544all-symlinks-binutils:
545 for file in $(SYMLINKS_BINUTILS_TO_GCC_FILES); do \
546 if [ ! -f "$(PATH_TOP)/src/gcc/$$file" ]; then \
547 $(TOOL_SYMLINK_FILE) $(PATH_TOP)/src/binutils/$$file $(PATH_TOP)/src/gcc/$$file && \
[102]548 touch $(PATH_TOP)/src/gcc/.symlinked.`echo $${file} | sed -e 's@/@_@g'`; \
[89]549 fi ; \
550 done
551 for dir in $(SYMLINKS_BINUTILS_TO_GCC_DIRS) ; do \
552 if [ ! -d "$(PATH_TOP)/src/gcc/$$dir" ] ; then \
553 $(TOOL_SYMLINK_MKDIR) $(PATH_TOP)/src/gcc/$$dir && \
[102]554 touch $(PATH_TOP)/src/gcc/.symlinked.`echo $${dir} | sed -e 's@/@_@g'` && \
555 $(TOOL_SYMLINK_DIR) $(PATH_TOP)/src/binutils/$$dir $(PATH_TOP)/src/gcc/`echo $${dir}| sed -e '/\//!d' -e 's@\([a-zA-z0-9]*\)/.*@\1/@'` ; \
[89]556 fi ; \
557 done
[109]558 -ls -a1 src/gcc/.sym*
[89]559
560all-symlinks-unlink-binutils:
561 for file in $(SYMLINKS_BINUTILS_TO_GCC_FILES); do \
[102]562 if [ -f "$(PATH_TOP)/src/gcc/.symlinked.`echo $${file} | sed -e 's@/@_@g'`" ]; then \
[89]563 rm $(PATH_TOP)/src/gcc/$${file} && \
[102]564 rm $(PATH_TOP)/src/gcc/.symlinked.`echo $${file} | sed -e 's@/@_@g'` ; \
[89]565 fi ; \
566 done
567 for dir in $(SYMLINKS_BINUTILS_TO_GCC_DIRS) ; do \
[102]568 if [ -f "$(PATH_TOP)/src/gcc/.symlinked.`echo $${dir} | sed -e 's@/@_@g'`" ] ; then \
[89]569 $(TOOL_UNSYMLINK_DIR) $(PATH_TOP)/src/gcc/$${dir} && \
[102]570 rm $(PATH_TOP)/src/gcc/.symlinked.`echo $${dir} | sed -e 's@/@_@g'`; \
[89]571 fi ; \
572 done
[109]573 -ls -a1 src/gcc/.sym*
[89]574
575
[34]576###############################################################################
577###############################################################################
578###############################################################################
579#
580# G C C
581#
582###############################################################################
583###############################################################################
584###############################################################################
[25]585all-gcc gcc: \
586 gcc-autoconf-refresh \
587 gcc-build
[34]588 echo "Successfully build GCC."
[25]589
590
591
592GCC_DIRS = \
[34]593gcc/libiberty \
[41]594gcc/zlib \
[25]595gcc/gcc \
[41]596gcc/libstdc++-v3 \
597gcc/boehm-gc \
598gcc/fastjar \
599gcc/libf2c \
600gcc/libf2c/libF77 \
601gcc/libf2c/libI77 \
602gcc/libf2c/libU77 \
603gcc/libffi \
604gcc/libjava \
605gcc/libjava/libltdl \
606gcc/libobjc \
[90]607
[120]608# Here is a problem, we can't regenerate binutils makefiles when symlinked into
609# gcc. At least not yet. The result is messed up severely.
[90]610not_yet =\
[89]611gcc/bfd \
612gcc/binutils \
613gcc/gas \
614gcc/gprof \
615gcc/intl \
616gcc/ld \
617gcc/libiberty \
618gcc/opcodes \
[25]619
620GCC_CONFIGURE_DIRS = $(GCC_DIRS)
621
622
623# configure.in/configure
624.PHONY: gcc-autoconf-refresh gcc-autoconf-rerun gcc-autoconf-clean gcc-autoconf-remove
[34]625gcc-autoconf-refresh gcc-autoconf-rerun gcc-autoconf-clean gcc-autoconf-remove:
[84]626ifeq "$(BUILD_PLATFORM)" "LINUX"
627 -$(SH) $(PATH_TOP)/xfix.sh
628endif
[25]629 for dir in $(GCC_CONFIGURE_DIRS); do \
[96]630 if $(MAKE) $(@:gcc-autoconf-%=%) -f $(PWD)/config.gmk -C src/$$dir ; then \
631 true; \
632 else \
633 exit 8; \
634 fi \
[25]635 done
636
637
638# build the components.
[76]639.PHONY: gcc-build gcc-install gcc-configure
640gcc-build gcc-install gcc-configure:
[41]641 mkdir -p $(PATH_OBJ)/gcc
642 $(MAKE) -C $(PATH_OBJ)/gcc -f $(MAKEFILE) $@-it
643
[69]644
645# When changed directory
[76]646# We pass down BOOT_ flags for stage2+.
647# Because strip is broken on OS/2 we pass -s for release build and -g for
648# non release builds - This overrides some stuff in src/gcc/gcc/config/i386/t-emx!
[255]649# For the 2nd stage we need a hack for using the right specs when linking...
[282]650#SPEC_HACK = $(if $(wildchar $(PATH_OBJ)/.all-stage1),\
651# -specs $(PATH_TOP)/src/emx/src/lib/libc.specs, \
652# -specs $(PATH_TOP)/tools/x86.os2/gcc/staged/lib/gcc-lib/i386-pc-os2-emx/$(GCC_VERSION)/specs)
653SPECS_HACK =
[41]654gcc-build-it: \
655 $(PATH_OBJ)/gcc/.ts.configured
[69]656ifeq "$(BUILD_PLATFORM)" "OS2"
[96]657 unset GCCLOAD ; $(MAKE) -C $(PATH_OBJ)/gcc \
[266]658 LIBGCC2_DEBUG_CFLAGS="$(BUILD_DEBUGINFO)" \
659 CFLAGS="$(SPEC_HACK) $(BUILD_DEBUGINFO) -O2" \
660 CXXFLAGS="$(SPEC_HACK) $(BUILD_DEBUGINFO) -O2" \
661 BOOT_CFLAGS="$(SPEC_HACK) $(BUILD_DEBUGINFO) -O2 -mcpu=pentium -mpreferred-stack-boundary=2 -malign-strings=0 -falign-loops=2 -falign-jumps=2 -falign-functions=2" \
662 LDFLAGS="$(SPEC_HACK) $(BUILD_DEBUGINFO) -Zexe -Zcrtdll" \
663 BOOT_LDFLAGS="$(SPEC_HACK) $(BUILD_DEBUGINFO) -Zexe -Zcrtdll" \
[69]664 bootstrap
665else
666 $(MAKE) -C $(PATH_OBJ)/gcc bootstrap
667endif
668
669# configure it (invoked after directory change).
670# We set CC to help configure finding it.
[76]671gcc-configure-it $(PATH_OBJ)/gcc/.ts.configured: $(PATH_TOP)/src/gcc/configure
[69]672ifeq "$(BUILD_PLATFORM)" "OS2"
673 $(ASH) -c " \
674 export CC=\"gcc.exe\" ; \
[41]675 $< \
[68]676 --enable-clh \
[41]677 --enable-threads=os2 \
[203]678 --enable-shared=libgcc,bfd,opcodes \
[41]679 --enable-nls \
680 --without-included-gettext \
681 --with-local-prefix=$(subst \,/,$(PATH_EMXPGCC)) \
[109]682 --prefix=$(ALL_PREFIX) \
[41]683 --with-gnu-ld \
684 --with-gnu-as \
685 --disable-libgcj \
686 --enable-languages=c,c++ "
[69]687else
688 $(ASH) -c "$< \
[103]689 --disable-clh \
[203]690 --enable-shared=libgcc,bfd,opcodes \
[69]691 --enable-nls \
692 --without-included-gettext \
693 --with-local-prefix=$(subst \,/,$(PATH_EMXPGCC)) \
[109]694 --prefix=$(ALL_PREFIX) \
[69]695 --with-gnu-ld \
696 --with-gnu-as \
697 --disable-libgcj \
698 --enable-languages=c,c++ "
699endif
[41]700 touch $(PATH_OBJ)/gcc/.ts.configured
[103]701# TODO: Andy, on Linux --enable-clh result in linking errors.
702
[76]703# Install the GCC build
704# Repeating the prefix doesn't hurt anybody.
705gcc-install-it:
[265]706 $(MAKE) prefix=$(ALL_PREFIX) install
[25]707
[120]708
709
[111]710# easy, update src/gcc/gcc/version.c
711gcc-versionstamps:
712 @echo "Version stamping gcc..."
713 mv -f $(PATH_TOP)/src/gcc/gcc/version.c $(PATH_TOP)/src/gcc/gcc/version.tmp.c
714 sed -e '/version_string/s/\([0-9]\.[0-9]*\.[0-9]*\).*/\1 $(INNOTEK_VERSION)";/' \
715 $(PATH_TOP)/src/gcc/gcc/version.tmp.c > $(PATH_TOP)/src/gcc/gcc/version.c
716 rm -f $(PATH_TOP)/src/gcc/gcc/version.tmp.c
717
718
[120]719# Install to builttools directory.
[282]720## WARNING! Another spec HACK!
[120]721gcc-builttools-stage2:
722 $(MAKE) -C $(PATH_OBJ)/gcc prefix=$(PATH_BUILTTOOLSD) install
[282]723## cp $(PATH_TOP)/src/emx/src/lib/libc.specs $(PATH_OBJ)/gcc/gcc/specs
[120]724
[111]725
[55]726# Generate diffs for GCC (v3.2.2) - part of packing a release.
[109]727.PHONY: gcc-diff $(ALL_PREFIX)/src/diffs/gcc-$(GCC_VERSION).diff
728gcc-diff: $(ALL_PREFIX)/src/diffs/gcc-$(GCC_VERSION).diff
729$(ALL_PREFIX)/src/diffs/gcc-$(GCC_VERSION).diff:
[55]730 mkdir -p $(@D)
[109]731 $(TOOL_CVS_DIFF_TREE) $(GCC_CVS_REL) src/gcc > $@
[25]732
[102]733
734
735
736
737
738
[55]739
[25]740###############################################################################
741###############################################################################
742###############################################################################
[34]743#
[25]744# B i n U t i l s
[34]745#
[25]746###############################################################################
747###############################################################################
748###############################################################################
[96]749
750BINUTILS_DIRS = \
751binutils/bfd \
752binutils/opcodes \
753binutils/gas \
754binutils/gprof \
755binutils/binutils \
756binutils/ld \
757
758BINUTILS_NOT_DIRS =\
759binutils/etc \
760binutils/libiberty \
761binutils/intl \
762
763
764BINUTILS_CONFIGURE_DIRS = $(BINUTILS_DIRS) $(BINUTILS_NOT_DIRS)
765
[25]766all-binutils binutils:
[89]767 echo "Binutils are build together with the other GNU Tools in GCC."
768 echo "Separate building of binutils is not configured."
[25]769
770
771
[96]772# configure.in/configure
773.PHONY: binutils-autoconf-refresh binutils-autoconf-rerun binutils-autoconf-clean binutils-autoconf-remove
774binutils-autoconf-refresh binutils-autoconf-rerun binutils-autoconf-clean binutils-autoconf-remove:
775ifeq "$(BUILD_PLATFORM)" "LINUX"
776 -$(SH) $(PATH_TOP)/xfix.sh
777endif
778 for dir in $(BINUTILS_CONFIGURE_DIRS); do \
779 if $(MAKE) $(@:binutils-autoconf-%=%) -f $(PWD)/config.gmk -C src/$$dir ; then \
780 true; \
781 else \
782 exit 8; \
783 fi \
784 done
785
786
787# build the components.
788.PHONY: binutils-build binutils-install binutils-configure
789binutils-build binutils-install binutils-configure:
790 mkdir -p $(PATH_OBJ)/binutils
791 $(MAKE) -C $(PATH_OBJ)/binutils -f $(MAKEFILE) $@-it
792
793
794# When changed directory
795binutils-build-it: \
796 $(PATH_OBJ)/binutils/.ts.configured
797 $(ASH) -c " unset GCCLOAD ; $(MAKE) -C $(PATH_OBJ)/binutils "
798
799# configure it (invoked after directory change).
800# We set CC to help configure finding it.
[98]801# And we reconfigure libiberty to the gcc one.
[96]802binutils-configure-it $(PATH_OBJ)/binutils/.ts.configured: $(PATH_TOP)/src/binutils/configure
803 $(ASH) -c " \
804 export CC=\"gcc.exe\" ; \
805 $< \
806 --enable-shared \
[109]807 --prefix=$(ALL_PREFIX) "
[98]808 $(ASH) -c "cd libiberty && \
809 $(PATH_TOP)/src/gcc/libiberty/configure \
[109]810 --prefix=$(ALL_PREFIX) "
[96]811 touch $(PATH_OBJ)/binutils/.ts.configured
812
813
814# Install the Binutils build
815# Repeating the prefix doesn't hurt anybody.
816binutils-install-it:
[111]817 $(MAKE) prefix=$(ALL_PREFIX) install
[96]818
819
[111]820# Not so easy, need to patch a few files.
821binutils-versionstamps:
822 @echo "Version stamping binutils..."
823 cp -f $(PATH_TOP)/src/binutils/binutils/version.c $(PATH_TOP)/src/binutils/binutils/version.tmp.c
824 sed -e '/printf.*program_version/s/%s %s.*\\n/%s %s $(INNOTEK_VERSION)\\n/' \
825 $(PATH_TOP)/src/binutils/binutils/version.tmp.c > $(PATH_TOP)/src/binutils/binutils/version.c
826 rm -f $(PATH_TOP)/src/binutils/binutils/version.tmp.c
827 if [ -f $(PATH_TOP)/src/gcc/binutils/version.c ]; then \
828 cp -f $(PATH_TOP)/src/gcc/binutils/version.c $(PATH_TOP)/src/gcc/binutils/version.tmp.c && \
829 sed -e '/printf.*program_version/s/%s %s.*\\n/%s %s $(INNOTEK_VERSION)\\n/' \
830 $(PATH_TOP)/src/gcc/binutils/version.tmp.c > $(PATH_TOP)/src/gcc/binutils/version.c && \
831 rm -f $(PATH_TOP)/src/gcc/binutils/version.tmp.c ; \
832 fi
833 @echo "Version stamping gas..."
834 cp -f $(PATH_TOP)/src/binutils/gas/as.c $(PATH_TOP)/src/binutils/gas/as.tmp.c
835 sed -e '/printf.*GNU.*assembler/s/%s.*\\n/%s $(INNOTEK_VERSION)\\n/' \
836 -e '/fprintf.*GNU.*assembler.*version.*BFD.*/s/using BFD version %s.*/using BFD version %s $(INNOTEK_VERSION)"),/ ' \
837 $(PATH_TOP)/src/binutils/gas/as.tmp.c > $(PATH_TOP)/src/binutils/gas/as.c
838 rm -f $(PATH_TOP)/src/binutils/gas/as.tmp.c
839 if [ -f $(PATH_TOP)/src/gcc/gas/as.c ]; then \
840 cp -f $(PATH_TOP)/src/gcc/gas/as.c $(PATH_TOP)/src/gcc/gas/as.tmp.c && \
841 sed -e '/printf.*GNU.*assembler/s/%s.*\\n/%s $(INNOTEK_VERSION)\\n/' \
842 -e '/fprintf.*GNU.*assembler.*version.*BFD.*/s/using BFD version %s.*/using BFD version %s $(INNOTEK_VERSION)"),/ ' \
843 $(PATH_TOP)/src/gcc/gas/as.tmp.c > $(PATH_TOP)/src/gcc/gas/as.c && \
844 rm -f $(PATH_TOP)/src/gcc/gas/as.tmp.c ; \
845 fi
846 @echo "Version stamping ld..."
847 cp -f $(PATH_TOP)/src/binutils/ld/ldver.c $(PATH_TOP)/src/binutils/ld/ldver.tmp.c
848 sed -e '/fprintf.*GNU.*ld.*version/s/(with BFD %s).*/(with BFD %s) $(INNOTEK_VERSION)\\n"),/' \
849 $(PATH_TOP)/src/binutils/ld/ldver.tmp.c > $(PATH_TOP)/src/binutils/ld/ldver.c
850 rm -f $(PATH_TOP)/src/binutils/ld/ldver.tmp.c
851 if [ -f $(PATH_TOP)/src/gcc/ld/ldver.c ]; then \
852 cp -f $(PATH_TOP)/src/gcc/ld/ldver.c $(PATH_TOP)/src/gcc/ld/ldver.tmp.c && \
853 sed -e '/fprintf.*GNU.*ld.*version/s/(with BFD %s).*/(with BFD %s) $(INNOTEK_VERSION)\\n"),/' \
854 $(PATH_TOP)/src/gcc/ld/ldver.tmp.c > $(PATH_TOP)/src/gcc/ld/ldver.c && \
855 rm -f $(PATH_TOP)/src/gcc/ld/ldver.tmp.c ; \
856 fi
857
[96]858
[111]859
[109]860# Generate diffs for Binutils (part of packing).
861.PHONY: binutils-diff $(ALL_PREFIX)/src/diffs/binutils-$(BINUTILS_VERSION).diff
862binutils-diff: $(ALL_PREFIX)/src/diffs/binutils-$(BINUTILS_VERSION).diff
863$(ALL_PREFIX)/src/diffs/binutils-$(BINUTILS_VERSION).diff:
[89]864 mkdir -p $(@D)
[109]865 $(TOOL_CVS_DIFF_TREE) $(BINUTILS_CVS_REL) src/binutils > $@
[98]866
867
868
[109]869
[98]870
[89]871
[25]872
[96]873
[25]874###############################################################################
875###############################################################################
876###############################################################################
[34]877#
[25]878# E M X
[34]879#
[25]880###############################################################################
881###############################################################################
882###############################################################################
[120]883all-emx emx: \
884 emx-build
885 @echo "Successfully build EMX."
[25]886
[120]887# Some helpers.
888# TODO: Change OUT and INS to the right ones. Currently not possible as
889# doing such breaks the rules generating.
890EMX_MODE = dbg
891ifeq "$(BUILD_MODE)" "RELEASE"
892EMX_MODE = opt
893endif
[265]894EMX_OUT = out/
[120]895EMX_INS = out/install/
[265]896EMX_RULES= $(PATH_TOP)/src/emx/$(EMX_OUT)$(EMX_MODE)/genrules.smak
897#EMX_OUT = $(PATH_OBJ)/emx/
898#EMX_INS = $(ALL_PREFIX)/
899#EMX_RULES= $(EMX_OUT)$(EMX_MODE)/genrules.smak
[120]900EMX_MASM = $(PATH_TOP)/tools/x86.os2/masm/v6.0/binp/ml.exe
901EMX_DEFINES = OUT=$(EMX_OUT) INS=$(EMX_INS) MODE=$(EMX_MODE) "ASM=$(EMX_MASM) -c"
[109]902
[120]903# build the components. (directory changer rules)
904.PHONY: emx-build emx-install emx-configure
905emx-build emx-install emx-configure:
906 mkdir -p $(PATH_OBJ)/emx
907 $(MAKE) -C $(PATH_TOP)/src/emx -f $(MAKEFILE) $@-it
908
909# This is the configure equivalent.
[265]910emx-configure-it: $(EMX_RULES)
911$(EMX_RULES):
912 rm -f $(EMX_RULES)
913 $(MAKE) -C $(PATH_TOP)/src/emx $(EMX_DEFINES) $(EMX_RULES)
[120]914
[265]915# make handle issue here. Make portions at the time.
916emx-build-it: $(EMX_RULES)
917 $(MAKE) -C $(PATH_TOP)/src/emx $(EMX_DEFINES) tools
918 $(MAKE) -C $(PATH_TOP)/src/emx $(EMX_DEFINES) os2 libsocket libdl
919 $(MAKE) -C $(PATH_TOP)/src/emx $(EMX_DEFINES) libs
920 $(MAKE) -C $(PATH_TOP)/src/emx $(EMX_DEFINES) all
[120]921
[265]922emx-install-it: $(EMX_RULES)
923 $(MAKE) -C $(PATH_TOP)/src/emx $(EMX_DEFINES) INS=$(ALL_PREFIX)/ install
[120]924
925
926# easy, update same stuff in a bunch of files.
[223]927# actually, nothing any long as the global innotekversion.h takes care of it
928# together with proper dependencies.
[120]929EMX_FILE_VER = \
930emxbind/emxbind.h emxcat/emxcat.c emxdoc/emxdoc.c emxexp/emxexp.c emximp/emximp.c \
931emxload/emxload.c emxomf/emxaout.c emxomf/emxomf.c emxomf/emxomfar.c emxomf/emxomfld.c \
932emxomf/listomf.c emxstack/emxstack.c emxtsf/emxtsf.c os2/version.h
[111]933emx-versionstamps:
[120]934 @echo "Version stamping EMX..."
[109]935
[120]936# Install the compiled emx stuff to builttools.
[282]937##emx-builttools-stage2: emx-builttools-stage2-specs
938emx-builttools-stage2:
[120]939 $(MAKE) -C $(PATH_TOP)/src/emx $(EMX_DEFINES) INS=$(PATH_BUILTTOOLS)/ install
940
[282]941## bird: for now we will just replace the specs with the constantly updated libc specs.
[255]942emx-builttools-stage2-specs:
[282]943## -mv -f $(PATH_BUILTTOOLS)/lib/gcc-lib/i386-pc-os2-emx/$(GCC_VERSION)/specs \
944## $(PATH_BUILTTOOLS)/lib/gcc-lib/i386-pc-os2-emx/$(GCC_VERSION)/emxspecs
945## cp $(PATH_TOP)/src/emx/src/lib/libc.specs \
946## $(PATH_BUILTTOOLS)/lib/gcc-lib/i386-pc-os2-emx/$(GCC_VERSION)/specs
[120]947
[255]948
[109]949# Generate diffs for Binutils (part of packing).
950.PHONY: binutils-diff $(ALL_PREFIX)/src/diffs/emx-$(EMX_VERSION).diff
951emx-diff: $(ALL_PREFIX)/src/diffs/emx-$(EMX_VERSION).diff
952$(ALL_PREFIX)/src/diffs/emx-$(EMX_VERSION).diff:
953 mkdir -p $(@D)
954 $(TOOL_CVS_DIFF_TREE) $(EMX_CVS_REL) src/emx > $@
[111]955
[122]956
957
958###############################################################################
959###############################################################################
960###############################################################################
961#
962# M I S C
963#
964###############################################################################
965###############################################################################
966###############################################################################
967
968
969dejagnu:
970# nothing to make at the moment, it's just a all install stuff it seems.
971
972requires_autoconf_2_52_DEJAGNU_CONFIGURE_DIRS = \
973src/misc/dejagnu \
974src/misc/dejagnu/contrib/bluegnu2.0.3 \
975src/misc/dejagnu/contrib/bluegnu2.0.3/doc \
976src/misc/dejagnu/contrib/bluegnu2.0.3/example \
977src/misc/dejagnu/contrib/bluegnu2.0.3/example/calc \
978src/misc/dejagnu/contrib/bluegnu2.0.3/testsuite \
979src/misc/dejagnu/example/calc \
980src/misc/dejagnu/example/hello
981
982.PHONY: dejagnu-autoconf-refresh dejagnu-autoconf-rerun dejagnu-autoconf-clean dejagnu-autoconf-remove
983dejagnu-autoconf-refresh dejagnu-autoconf-rerun dejagnu-autoconf-clean dejagnu-autoconf-remove:
984ifeq "$(BUILD_PLATFORM)" "LINUX"
985 -$(SH) $(PATH_TOP)/xfix.sh
986endif
987 for dir in $(DEJAGNU_CONFIGURE_DIRS); do \
988 if $(MAKE) $(@:dejagnu-autoconf-%=%) -f $(PWD)/config.gmk -C $$dir ; then \
989 true; \
990 else \
991 exit 8; \
992 fi \
993 done
994
995
996
997#
998# Expect
999#
1000
1001expect:
1002
1003
1004# build the components.
1005.PHONY: expect-build expect-install expect-configure
1006expect-build expect-install expect-configure:
1007 mkdir -p $(PATH_OBJ)/misc/expect
1008 $(MAKE) -C $(PATH_OBJ)/misc/expect -f $(MAKEFILE) $@-it
1009
1010
1011# When changed directory
1012expect-build-it: \
1013 $(PATH_OBJ)/misc/expect/.ts.configured
1014 $(MAKE) -C $(PATH_OBJ)/misc/expect
1015
1016# configure it (invoked after directory change).
1017# We set CC to help configure finding it.
1018# And we reconfigure libiberty to the gcc one.
1019expect-configure-it $(PATH_OBJ)/misc/expect/.ts.configured: $(PATH_TOP)/src/misc/expect/configure
1020ifeq "$(BUILD_PLATFORM)" "OS2"
1021 $(ASH) -c " \
1022 export CC=\"gcc.exe\" ; \
1023 $< \
1024 --disable-shared \
1025 --host=i386-pc-os2-emx \
1026 --with-tclconfig=$(UNIXROOT)/usr/lib \
1027 --with-tclinclude=$(UNIXROOT)/usr/lib/tcl8.0/include \
1028 --enable-gcc \
1029 $(BUILD_ENABLE_SYMBOLS) \
1030 --prefix=$(PATH_BUILTTOOLSD) "
1031else
1032 $(ASH) -c " \
1033 $< \
1034 --enable-gcc \
1035 $(BUILD_ENABLE_SYMBOLS) \
1036 --prefix=$(PATH_BUILTTOOLSD) "
1037endif
1038 touch $(PATH_OBJ)/misc/expect/.ts.configured
1039
1040
1041# install to builttools (if anywhere!)
1042expect-install-it:
1043 $(MAKE) prefix=$(PATH_BUILTTOOLSD) install
1044
1045
1046
1047EXPECT_CONFIGURE_DIRS = \
1048src/misc/expect
1049# skipping testsuite for now as it requires some .m4 files we don't have.
1050#src/misc/expect/testsuite
1051
1052.PHONY: expect-autoconf-refresh expect-autoconf-rerun expect-autoconf-clean expect-autoconf-remove
1053expect-autoconf-refresh expect-autoconf-rerun expect-autoconf-clean expect-autoconf-remove:
1054ifeq "$(BUILD_PLATFORM)" "LINUX"
1055 -$(SH) $(PATH_TOP)/xfix.sh
1056endif
1057 for dir in $(EXPECT_CONFIGURE_DIRS); do \
1058 if $(MAKE) $(@:expect-autoconf-%=%) -f $(PWD)/config.gmk -C $$dir ; then \
1059 true; \
1060 else \
1061 exit 8; \
1062 fi \
1063 done
1064
1065
1066
[132]1067# DO NOT DELETE
Note: See TracBrowser for help on using the repository browser.