-include ../../../../Rules.make export PATH=/bin:/sbin:/usr/bin:$(SDK_PATH_TARGET)/usr/bin:$PATH #define library variable Lib_Module_RFID = -L../../../Modularization -lModule_RFID Lib_Module_Upgrade = "-L../../../Modularization" -lModule_Upgrade Lib_Module_Phihong = "-L../../../Modularization" -lPhihong_PsuCommObj Lib_Module_Infypwr = "-L../../../Modularization" -lInfypwr_PsuCommObj all: CopyFile apps apps: Module_InternalComm_Task Module_FactoryConfig_Task Module_EventLogging_Task Module_CSU_Task Module_EvComm Module_LcmControl Module_PrimaryComm Module_PsuComm Module_InternalComm_Task: @echo "===== Module_InternalComm_Task ===================================" rm -f Module_InternalComm $(CC) "-I../../" "-include./Config.h" -O0 -g3 -Wall -c -fmessage-length=0 -o Module_InternalComm.o "./Module_InternalComm.c" $(CC) "-I../../" "-include./Config.h" -O0 -g3 -Wall -c -fmessage-length=0 -o internalComm.o "./internalComm.c" $(CC) -o Module_InternalComm Module_InternalComm.o internalComm.o rm -f *.o mv -f Module_InternalComm ../Images/root @echo \ Module_FactoryConfig_Task: @echo "===== Module_FactoryConfig_Task ==================================" rm -f FactoryConfig $(CC) "-I../../" -O0 -g3 -Wall -c -fmessage-length=0 -o FactoryConfig.o "./FactoryConfig.c" $(CC) -o FactoryConfig FactoryConfig.o rm -f *.o mv -f FactoryConfig ../Images/root @echo \ Module_EventLogging_Task: @echo "===== Module_EventLogging_Task ===================================" rm -f Module_EventLogging $(CC) "-I../../" -O0 -g3 -Wall -c -fmessage-length=0 -o Module_EventLogging.o "./Module_EventLogging.c" $(CC) -o Module_EventLogging Module_EventLogging.o rm -f *.o mv -f Module_EventLogging ../Images/root @echo \ Module_CSU_Task: @echo "===== Module_CSU_Task ============================================" rm -f main $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o timeout.o "./timeout.c" $(CC) "-I../../../Modularization/" -O0 -g3 -Wall -c -fmessage-length=0 -o main.o "./main.c" $(CC) -o main main.o timeout.o ${Lib_Module_RFID} ${Lib_Module_Upgrade} rm -f *.o mv -f main ../Images/root @echo \ Module_EvComm: @echo "===== Module_EvComm_Task =========================================" rm -f Module_EvComm $(CC) "-I../../" "-include./Config.h" -O0 -g3 -Wall -c -fmessage-length=0 -o Ev_Comm.o "./Ev_Comm.c" $(CC) "-I../../" "-include./Config.h" -O0 -g3 -Wall -c -fmessage-length=0 -o Module_EvComm.o "./Module_EvComm.c" $(CC) -o Module_EvComm Ev_Comm.o Module_EvComm.o rm -f *.o mv -f Module_EvComm ../Images/root @echo \ Module_LcmControl: @echo "===== Module_LcmControl_Task =====================================" rm -f Module_LcmControl $(CC) "-I../../" "-include./Config.h" -O0 -g3 -Wall -c -fmessage-length=0 -o Module_LcmControl.o "./Module_LcmControl.c" $(CC) -o Module_LcmControl Module_LcmControl.o rm -f *.o mv -f Module_LcmControl ../Images/root @echo \ Module_PrimaryComm: @echo "===== Module_PrimaryComm_Task =====================================" rm -f Module_PrimaryComm $(CC) "-I../../" "-include./Config.h" -O0 -g3 -Wall -c -fmessage-length=0 -o PrimaryComm.o "./PrimaryComm.c" $(CC) "-I../../" "-include./Config.h" -O0 -g3 -Wall -c -fmessage-length=0 -o Module_PrimaryComm.o "./Module_PrimaryComm.c" $(CC) -o Module_PrimaryComm Module_PrimaryComm.o PrimaryComm.o rm -f *.o mv -f Module_PrimaryComm ../Images/root @echo \ Module_PsuComm: @echo "===== Module_PSU_Task =====================================" rm -f Module_PsuComm $(CC) "-I../../" "-include./Config.h" -O0 -g3 -Wall -c -fmessage-length=0 -o Module_PsuComm.o "./Module_PsuComm.c" $(CC) -o Module_PsuComm Module_PsuComm.o ${Lib_Module_Infypwr} rm -f *.o mv -f Module_PsuComm ../Images/root @echo \ CopyFile: rm -rfv ../Images/root mkdir -p ../Images/root