This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Autogenerated Makefiles

Hi,

I am new to CCS, I am working on an application we inheriated from another company we purchased after they shut down.

I was successful in importing the project into CCS4 and getting the application to compile.  But being the anal person that I am I wanted to get all the compiler output under one folder.  The old project was setup to send output to to {PROJECT_ROOT}\Out.  CCS has a system macro PROJECT_BUILD_DIR that I cannot seem to edit.  Thus I decided I would try to direct all compiler output to ${PROJECT_BUILD_DIR}. 

Upon trying this I got a make error "No rule to make target `Obj/boot2812.obj'.  In looking into the makefiles I see are still references to the old .\Out folder.  I have looked through all the project setttings I could find and I cannot find any setttings that tell makefile generator where to look for files.

It seems to me the makefile generator made a lot of decisions when the project was first imported and there does not seem to be any dialogs to alter these decisions.  I don't really want to resort to editing my own makefile.  Any ideas??

Thanks

   

 

  • Jim Donahue said:
    Thus I decided I would try to direct all compiler output to ${PROJECT_BUILD_DIR}. 

    How did you do this? Did you add that macro in the "Directory Specifier" section in the Build Properties?

    ki

  • Yes.  I tried both the macro and a hardcoded path, neither worked.

  • Did you just set the -fr option or did you do it for all of them on that page?

  • I only set it for the -fr and -fs, they were the only ones that had entries when I started making changes.

    FYI- I attached a renamed copy of the generated makefile.

     

    2772.makefile.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    ################################################################################
    # Automatically-generated file. Do not edit!
    ################################################################################
    EMPTY :=
    SPACE := $(EMPTY) $(EMPTY)
    ORDERED_OBJS += \
    "./Obj/flashstart.obj" \
    "./Obj/boot2812.obj" \
    "./Obj/PPMC_spiADC.obj" \
    "./Obj/PPMC_paramTable.obj" \
    "./Obj/PPMC_UserInterface.obj" \
    "./Obj/PPMC_UIB.obj" \
    "./Obj/PPMC_RTC.obj" \
    "./Obj/PPMC_Main.obj" \
    "./Obj/PPMC_Init.obj" \
    "./Obj/PPMC_Faults.obj" \
    "./Obj/PPMC_FLASH.obj" \
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • -fr is a deprecated option with newer CGT version (including what ships with v4). Try setting -ft and -ff also and see if this helps.