Hi srizbf,
Thanks for your help. i will try this now.
I am using linux.
Thanks and Regards,
Ashok Kumar P
---------- Post added at 21:27 ---------- Previous post was at 20:23 ----------
Hi,
I getting the following error. Having problem with including the header file.
msp430-gcc -mmcu=msp430xG4618 -o mcu/inc/hardware.h mcu/inc/led.h mcu/inc/serial.h mcu/inc/mcu.h app/inc/app.h app/src/app.c main/main.c mcu/src/mcu.c mcu/src/serial.c
app/src/app.c:2:30: error: mcu/inc/hardware.h: No such file or directory
app/src/app.c:3:20: error: serial.h: No such file or directory
main/main.c:2:22: error: hardware.h: No such file or directory
main/main.c:3:17: error: mcu.h: No such file or directory
main/main.c:4:17: error: app.h: No such file or directory
main/main.c:5:17: error: led.h: No such file or directory
mcu/src/mcu.c:2:22: error: hardware.h: No such file or directory
mcu/src/mcu.c:3:20: error: serial.h: No such file or directory
mcu/src/mcu.c:6:17: error: led.h: No such file or directory
Makefile snipets
INCLUDES = ${MCUDIR}/inc/hardware.h\
${MCUDIR}/inc/led.h\
${MCUDIR}/inc/serial.h\
${MCUDIR}/inc/mcu.h\
${APPDIR}/inc/app.h
SRCS = ${APPDIR}/src/app.c\
${MAINDIR}/main.c\
${MCUDIR}/src/mcu.c\
${MCUDIR}/src/serial.c
${NAME}.elf: ${OBJECTS}
${CC} -mmcu=${CPU} -o ${INCLUDES} ${SRCS}
Any help please.
Thanks and Regards,
Ashok Kumar P
Attached the full makefile.