Changeset 122 for trunk/Makefile


Ignore:
Timestamp:
May 12, 2003, 1:52:03 AM (22 years ago)
Author:
bird
Message:

Early expect and dejagnu stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    • Property cvs2svn:cvs-rev changed from 1.21 to 1.22
    r121 r122  
    4040
    4141# Debug info or not (when ever we feel like passing down such options).
     42# Several ways to do this it seems.
    4243ifeq "$(BUILD_MODE)" "RELEASE"
    4344BUILD_DEBUGINFO = -s
     45BUILD_ENABLE_SYMBOLS = --disable-symbols
    4446else
    4547BUILD_DEBUGINFO = -g
     48BUILD_ENABLE_SYMBOLS = --enable-symbols
    4649endif   
    4750
     
    937940        $(TOOL_CVS_DIFF_TREE) $(EMX_CVS_REL) src/emx > $@
    938941
     942
     943
     944###############################################################################
     945###############################################################################
     946###############################################################################
     947#
     948#    M I S C
     949#
     950###############################################################################
     951###############################################################################
     952###############################################################################
     953
     954
     955dejagnu:
     956# nothing to make at the moment, it's just a all install stuff it seems.
     957
     958requires_autoconf_2_52_DEJAGNU_CONFIGURE_DIRS = \
     959src/misc/dejagnu \
     960src/misc/dejagnu/contrib/bluegnu2.0.3 \
     961src/misc/dejagnu/contrib/bluegnu2.0.3/doc \
     962src/misc/dejagnu/contrib/bluegnu2.0.3/example \
     963src/misc/dejagnu/contrib/bluegnu2.0.3/example/calc \
     964src/misc/dejagnu/contrib/bluegnu2.0.3/testsuite \
     965src/misc/dejagnu/example/calc \
     966src/misc/dejagnu/example/hello
     967
     968.PHONY: dejagnu-autoconf-refresh dejagnu-autoconf-rerun dejagnu-autoconf-clean dejagnu-autoconf-remove
     969dejagnu-autoconf-refresh dejagnu-autoconf-rerun dejagnu-autoconf-clean dejagnu-autoconf-remove:
     970ifeq "$(BUILD_PLATFORM)" "LINUX"
     971        -$(SH) $(PATH_TOP)/xfix.sh
     972endif
     973        for dir in $(DEJAGNU_CONFIGURE_DIRS); do \
     974                if $(MAKE) $(@:dejagnu-autoconf-%=%) -f $(PWD)/config.gmk -C $$dir ; then \
     975                        true; \
     976                else \
     977                        exit 8; \
     978                fi \
     979        done
     980
     981
     982       
     983#
     984# Expect
     985#
     986
     987expect:
     988
     989
     990# build the components.
     991.PHONY: expect-build expect-install expect-configure
     992expect-build expect-install expect-configure:
     993        mkdir -p $(PATH_OBJ)/misc/expect
     994        $(MAKE) -C $(PATH_OBJ)/misc/expect -f $(MAKEFILE) $@-it
     995
     996
     997# When changed directory
     998expect-build-it: \
     999                $(PATH_OBJ)/misc/expect/.ts.configured
     1000        $(MAKE) -C $(PATH_OBJ)/misc/expect
     1001               
     1002# configure it (invoked after directory change).
     1003#       We set CC to help configure finding it.
     1004#       And we reconfigure libiberty to the gcc one.
     1005expect-configure-it $(PATH_OBJ)/misc/expect/.ts.configured: $(PATH_TOP)/src/misc/expect/configure
     1006ifeq "$(BUILD_PLATFORM)" "OS2"
     1007        $(ASH) -c " \
     1008                export CC=\"gcc.exe\" ; \
     1009                $< \
     1010                --disable-shared \
     1011                --host=i386-pc-os2-emx \
     1012                --with-tclconfig=$(UNIXROOT)/usr/lib \
     1013                --with-tclinclude=$(UNIXROOT)/usr/lib/tcl8.0/include \
     1014                --enable-gcc \
     1015                $(BUILD_ENABLE_SYMBOLS) \
     1016                --prefix=$(PATH_BUILTTOOLSD) "
     1017else
     1018        $(ASH) -c " \
     1019                $< \
     1020                --enable-gcc \
     1021                $(BUILD_ENABLE_SYMBOLS) \
     1022                --prefix=$(PATH_BUILTTOOLSD) "
     1023endif           
     1024        touch $(PATH_OBJ)/misc/expect/.ts.configured
     1025       
     1026       
     1027# install to builttools (if anywhere!)
     1028expect-install-it:
     1029        $(MAKE) prefix=$(PATH_BUILTTOOLSD) install
     1030       
     1031
     1032
     1033EXPECT_CONFIGURE_DIRS = \
     1034src/misc/expect
     1035# skipping testsuite for now as it requires some .m4 files we don't have.
     1036#src/misc/expect/testsuite
     1037
     1038.PHONY: expect-autoconf-refresh expect-autoconf-rerun expect-autoconf-clean expect-autoconf-remove
     1039expect-autoconf-refresh expect-autoconf-rerun expect-autoconf-clean expect-autoconf-remove:
     1040ifeq "$(BUILD_PLATFORM)" "LINUX"
     1041        -$(SH) $(PATH_TOP)/xfix.sh
     1042endif
     1043        for dir in $(EXPECT_CONFIGURE_DIRS); do \
     1044                if $(MAKE) $(@:expect-autoconf-%=%) -f $(PWD)/config.gmk -C $$dir ; then \
     1045                        true; \
     1046                else \
     1047                        exit 8; \
     1048                fi \
     1049        done
     1050
     1051
     1052
Note: See TracChangeset for help on using the changeset viewer.