Thread: makefile woes

  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    93

    makefile woes

    beware beginner
    env SunOS 5.6

    Hi,

    I have a problem with a makefile, firstly I have never seen one before [Windows programmer] until now and
    secondly I have an error

    <snip>
    export INCLUDE_DIR=/inputdec/pac/src/include
    export COMMON_DIR=/export/home/pac/sita/src/common
    export LIBRARY_DIR=/export/home/pac/sita/src/library
    export CREATE_LIBRARY_DIR=/export/home/pac/sita/src/library

    export INCLUDE=$(INCLUDE_DIR)
    export INCLUDE_FLAG=-I$(INCLUDE)
    export LIBRARY=$(LIBRARY_DIR)
    </snip>

    <error>
    $ . include.mk
    ksh: INCLUDE_DIR: not found
    ksh: INCLUDE: not found
    ksh: LIBRARY_DIR: not found
    </error>

    naturally all the folders are in their respective places, common dir is okay but include dir and library dir is not, the snip above has been cut-n-pasted, so there are no strange characters either,


    tia,

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    >>$(INCLUDE_DIR)
    Try
    >>${INCLUDE_DIR}
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    Registered User
    Join Date
    Aug 2003
    Posts
    93
    ty Hammer

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Building a project using a Makefile
    By starcatcher in forum Windows Programming
    Replies: 2
    Last Post: 11-23-2008, 11:50 PM
  2. Need help with Makefile
    By xshapirox in forum C++ Programming
    Replies: 14
    Last Post: 09-28-2004, 03:32 PM
  3. about Makefile and Macro
    By tom_mk in forum C++ Programming
    Replies: 1
    Last Post: 09-18-2003, 01:07 PM
  4. Borland 5.5 Makefile woes...
    By gprogga in forum C++ Programming
    Replies: 3
    Last Post: 06-01-2003, 02:20 AM
  5. makefile woes
    By Grifftt in forum C Programming
    Replies: 2
    Last Post: 12-06-2002, 04:43 PM