Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Help with Makefile please: (1 Item)
   
Help with Makefile please  
Hello guys!

Im new in QNX world!

Im doing some app for test, but i have a problem.

I've created my first QNX app using Application Builder, it is simple, it is just a window and 2 buttons, i have 2 files
 called my_events.c and my_events.h created at src folder in my project, to compile i use make in console, all its fine.


My app works, but when i change for example a #define in my_events.h file ( or add more code to my_events.h) and i go to
 console and type "make" y get the message :

test_machine$/home/rick/test>make
make -j 1 -Cx86 -fMakefile
make[1]: Entering directory `/home/rick/test/x86'
make -j 1 -Co -fMakefile
make[2]: Entering directory `/home/rick/test/x86/o'
make[2]: Nothing to be done for `first'.
make[2]: Leaving directory `/home/rick/test/x86/o'
make -j 1 -Co-g -fMakefile
make[2]: Entering directory `/home/rick/test/x86/o-g'
make[2]: Nothing to be done for `first'.
make[2]: Leaving directory `/home/rick/test/x86/o-g'
make[1]: Leaving directory `/home/rick/test/x86'

make doesnt detects my_events.h file has changed, but if i add code to my_events.c and type make, it compiles again, im 
looking for info refering to common.mk file, im looking http://www.qnx.com/developers/docs/6.4.1/neutrino/prog/
make_convent.html

I have read about file dependencies, but my project is not a library is an application, so if i add code to common.mk 
such as:

test: my_event.c my event.h 

to specify dependency it just not works

all i wantis to modify common.mk to compile when my_event.h file has changed, how can i do it? 

i hope someone can help me  please.

Best Regards
Ricardo