Results 1 to 4 of 4

Thread: Regarding Cygwin

  1. #1
    Join Date
    Jan 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Regarding Cygwin

    Hi,
    I am using Cygwin for running test scripts using make file.
    In my old version of cygwin i dont have any problem with running scripts. But when i use cygwin new version to run Makefile i get Make file error.
    The make file which i use inturn call other make files.
    I get Makefile error in all those lines where i call Makefile inturn.
    Kindly can anybody give a solution to this problem.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    You might want to include:
    a) the exact error(s)
    b) your version of gcc
    c) the contents of the Makefile(s)
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jan 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Details regarding Makefile in cygwin

    Hi,
    Sorry for late response...
    I have a directory structure in which it has a Makefile in one of the folders.
    we used to write scripts and keep in a separate folders.
    All the source files to be tested is kept in one folder.

    In cygwin we used to set the path for the Makefile.Now we use commands like
    1) make run
    2) make cover
    3) make clean
    to run our test scripts,produce coverage and to clean some *.obj files produced.


    The Makefile inturn calls for some Makefiles(eg., clean.mak,cover.mak) to perform the operation that we give in cygwin command prompt

    I will give a part of makefile here...

    # Makefile to build and execute low-level tests.
    #
    # usage:
    # make -- compile and link
    # make run -- load into debugger and go
    # make cover -- generate coverage results
    # make clean -- delete object files and other stuff
    #
    # -- To specify which test on the command line:
    # make TEST=my_test
    # make run TEST=my_test
    #
    ##############################################################
    # Test name
    # Do not include .c in filename
    #
    # TEST will normally be provided on the command line, as in:
    # make run TEST=csu02_15_02_t0002
    #
    # That is how it is called from the "run_all" script.
    #
    # When developing a test, you may specify the test here so that
    # you can just type "make" or "make run". The value can still
    # be set (overridden) from the command line. So go ahead and
    # change it as necessary.

    TEST = csu02_01_01_t0001

    ###############################################################
    # The rest of the makefile should be the same for all tests for
    # a given CSU.
    ###############################################################

    # Location of low-level tests. Do not include trailing /

    TEST_DIR = ../testcases

    # Unit Under Test name and directory
    # Do not include .c in filename or trailing / in dir name.

    UUT = ohdf_process_io
    UUT_DIR = ../../../../../cpiom/dev/env2/ohdf_v1/ohdf_app_env/SRC/io

    # This is the default target. If you just type "make" you get the
    # binary image.
    all: $(TEST).exe

    ######################
    # Set common variables
    ######################

    include ../../../../UTIL/LL_GCC/make.defs

    #####################################
    # Low-level test reporting functions.
    #####################################

    include $(UTIL_DIR)/lltutil.mak

    ##############
    # IO functions. Needed for I/O process tests (CSC02)
    ##############

    include $(UTIL_DIR)/io.mak


    ##################
    # Execute the test
    ##################
    # This provides a "run" target to execute the test.

    include $(UTIL_DIR)/run.mak


    when we run this makefile in cygwin command prompt by setting the respective path it works for cywin in my system but when we run the same script in some system it shows makefile error.

    I think it must be a problem with including pakages while downloading cygwin.But really i cant find the solution.
    Kindly give me a solution.

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Quote Originally Posted by myself
    a) the exact error(s)
    b) your version of gcc
    c) the contents of the Makefile(s)
    OK, we've got c). What about a) and b)?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •