pashok84
Member level 4
Hi
I have been trying to use MSP GCC compiler. I have written a makefile for single file and able to compile and flash in the MSP430 device.
I don't know how to write makefile for many source files in different folder inter dependent with each other.
I am developing a serial deriver folder and file structure is as follows
serial_driver/App
serial_driver/App/inc/app.h
serial_driver/App/inc/app.c
serial_driver/controller
serial_driver/controller/inc/hardware.h
serial_driver/controller/inc/globaldef.h
serial_driver/controller/src/ctrl.c
serial_driver/UART
serial_driver/UART/inc/uart.h
serial_driver/UART/src/uart.c
Can any give some ideas to write make files for this project and how to expand in future bigger projects.
Thanks and Regards,
Ashok Kumar P
I have been trying to use MSP GCC compiler. I have written a makefile for single file and able to compile and flash in the MSP430 device.
I don't know how to write makefile for many source files in different folder inter dependent with each other.
I am developing a serial deriver folder and file structure is as follows
serial_driver/App
serial_driver/App/inc/app.h
serial_driver/App/inc/app.c
serial_driver/controller
serial_driver/controller/inc/hardware.h
serial_driver/controller/inc/globaldef.h
serial_driver/controller/src/ctrl.c
serial_driver/UART
serial_driver/UART/inc/uart.h
serial_driver/UART/src/uart.c
Can any give some ideas to write make files for this project and how to expand in future bigger projects.
Thanks and Regards,
Ashok Kumar P