-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_SQLite3 = "-L../../../Modularization/ocppfiles" -lsqlite3 Lib_JSONC = "-L../../../GPL/json-c-json-c-0.13.1-20180305/release/lib" -ljson-c all: CopyFile apps apps: MainTask FactoryConfigApp OtherTools MainTask: rm -f *.o rm -f main; $(CC) -D $(Project) -include../../../Modularization/ocppfiles/sqlite3.h -include../../../Modularization/Module_Upgrade.h -include../../../Modularization/Module_RFID.h -O0 -g3 -Wall -c -fmessage-length=0 -o main.o main.c $(CC) -lrt -o main main.o ${Lib_Module_Upgrade} ${Lib_SQLite3} cp -f main ../Images/root EventLoggingTask: rm -f Module_EventLogging; $(CC) -D $(Project) -include../../../Modularization/ocppfiles/sqlite3.h -includeConfig.h -O0 -g3 -Wall -c -fmessage-length=0 -o Module_EventLogging.o Module_EventLogging.c $(CC) -lrt -o Module_EventLogging Module_EventLogging.o ${Lib_SQLite3} cp -f Module_EventLogging ../Images/root InternalCommTask: rm -f Module_InternalComm; $(CC) -D $(Project) -includeConfig.h -O0 -g3 -Wall -c -fmessage-length=0 -o internalComm.o internalComm.c $(CC) -D $(Project) -includeConfig.h -O0 -g3 -Wall -c -fmessage-length=0 -o Module_InternalComm.o Module_InternalComm.c $(CC) -lrt -o Module_InternalComm Module_InternalComm.o internalComm.o cp -f Module_InternalComm ../Images/root LcmControlTask: rm -f Module_LcmControl; $(CC) -D $(Project) -includeConfig.h -O0 -g3 -Wall -c -fmessage-length=0 -o Module_LcmControl.o Module_LcmControl.c $(CC) -lrt -o Module_LcmControl Module_LcmControl.o cp -f Module_LcmControl ../Images/root PrimaryCommTask: rm -f Module_PrimaryComm; $(CC) -D $(Project) -includeConfig.h -O0 -g3 -Wall -c -fmessage-length=0 -o Module_PrimaryComm.o Module_PrimaryComm.c $(CC) -D $(Project) -includeConfig.h -O0 -g3 -Wall -c -fmessage-length=0 -o PrimaryComm.o PrimaryComm.c $(CC) -lrt -o Module_PrimaryComm Module_PrimaryComm.o PrimaryComm.o cp -f Module_PrimaryComm ../Images/root PsuCommTask: rm -f Module_PsuComm; $(CC) -D $(Project) -include../../../Modularization/Infypwr_PsuCommObj.h -includeConfig.h -O0 -g3 -Wall -c -fmessage-length=0 -o Module_PsuComm.o Module_PsuComm.c $(CC) -lrt -o Module_PsuComm Module_PsuComm.o ../../../Modularization/libInfypwr_PsuCommObj.a cp -f Module_PsuComm ../Images/root SmartBoxTask: rm -f Module_SmartBox; $(CC) -D $(Project) -include../../../Modularization/Infypwr_PsuCommObj.h -includeConfig.h -O0 -g3 -Wall -c -fmessage-length=0 -o Module_SmartBox.o Module_SmartBox.c $(CC) -lrt -o Module_SmartBox Module_SmartBox.o ../../../Modularization/libInfypwr_PsuCommObj.a cp -f Module_SmartBox ../Images/root ReadCmdlineTask: rm -f ReadCmdline; $(CC) -D $(Project) -includeConfig.h -O0 -g3 -Wall -c -fmessage-length=0 -o ReadCmdline.o ReadCmdline.c $(CC) -lrt -o ReadCmdline ReadCmdline.o cp -f ReadCmdline ../Images/root UnsafetyOutputTool: rm -f UnsafetyOutputTask; $(CC) -D $(Project) -include../../../Modularization/Infypwr_PsuCommObj.h -O0 -g3 -Wall -c -fmessage-length=0 -o OutputTask.o OutputTask.c $(CC) -lrt -o UnsafetyOutputTask OutputTask.o ../../../Modularization/libInfypwr_PsuCommObj.a cp -f UnsafetyOutputTask ../Images/root FactoryConfigApp: @echo "===== Module_FactoryConfig_Task ==================================" rm -f FactoryConfig gcc -D $(Project) "-I../../" -o FactoryConfig "./FactoryConfig.c" mkdir -p /Storage/SystemLog ./FactoryConfig -f;true cp /mnt/FactoryDefaultConfig.bin ../Images rm -f FactoryConfig; $(CC) -D $(Project) -O0 -g3 -Wall -c -fmessage-length=0 -o FactoryConfig.o FactoryConfig.c $(CC) -lrt -o FactoryConfig FactoryConfig.o cp -f FactoryConfig ../Images/root OtherTools: cp -f init.sh ../Images/root cp -f kill.sh ../Images/root cp -f web.sh ../Images/root CopyFile: rm -rfv ../Images/root mkdir -p ../Images/root