Jump to content
OMRON Forums

subfolders in background program


BartVerzijlenberg
 Share

Recommended Posts

Hi,

 

I have a few subfolders containing .c and .h files inside a background program. They are built fine, but the obj file are places in the main project folder, not the subfolder.

 

During the link step, the make file looks in the subfolder for the obj files, where they don't exist.

 

Trying to change the make file doesn't work, as it is overwritten during build.

 

Is there a way to have subfolders, or must I have all files on one level?

Thanks,

Bart

 

PS. I'm using the august release of the IDE.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi,

 

Found a solution:

The auto created makefile has the following entry:

$(CC) $(CFLAGS) $(CUSTOMCFLAGS) $(DTDEBUG) -c $<

 

by creating a custom makefile, and changing that line to

$(CC) $(CFLAGS) $(CUSTOMCFLAGS) $(DTDEBUG) -c -o $@ $<

 

the issue is worked around.

 

Is there a way to change the format of the autocreated makefile?

This solution requires manually adding any new files to the makefile, which is annoying.

 

Thanks,

Bart

Link to comment
Share on other sites

Currently there is no solution other than a custom makefile. We will enter this into our bug reporting system,

 

 

Hi,

 

Found a solution:

The auto created makefile has the following entry:

$(CC) $(CFLAGS) $(CUSTOMCFLAGS) $(DTDEBUG) -c $<

 

by creating a custom makefile, and changing that line to

$(CC) $(CFLAGS) $(CUSTOMCFLAGS) $(DTDEBUG) -c -o $@ $<

 

the issue is worked around.

 

Is there a way to change the format of the autocreated makefile?

This solution requires manually adding any new files to the makefile, which is annoying.

 

Thanks,

Bart

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...