123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- -include ../../../../Rules.make
- export PATH=/bin:/sbin:/usr/bin:$(SDK_PATH_TARGET)/usr/bin:$PATH
- #define library variable
- Internal485ProtocolLib = -L ../../../Modularization/Internal485Protocol -lInternal485Protocol
- #PsuCommProtocolLib = -L ../../../Modularization/PsuCommProtocol -lPsuCommProtocol
- #define library variable
- Lib_Module_RFID = "-L../../../Modularization" -lModule_RFID
- Lib_Module_Upgrade = "-L../../../Modularization" -lModule_Upgrade
- Lib_SQLite3 = "-L../../../Modularization/ocppfiles" -lsqlite3
- all: CopyFile apps Clean
- #apps: Module_CSU Module_EvComm Module_EventLogging Module_InternalComm Module_LcmControl Module_PrimaryComm Module_PsuComm
- # ReadCmdline kill.sh
- apps: Common MainTask CabinetParallel SelfTestTask AuthorizeTask LedIndication EvCommTask EventLoggingTask InternalCommTask LcmControlTask PrimaryCommTask InfyGroup_PsuCommObj PhGroup_PsuCommObj PsuCommTask PhPsuCommTask ReadCmdlineTask DispenserDiagnostics FactoryConfigApp OtherTools
- Common:
- rm -f Common.o
- $(CC) -D $(Project) -includeCommon.h -O0 -g3 -Wall -c -fmessage-length=0 -o Common.o Common.c
- MainTask:
- 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) -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 timeout.o timeout.c
- $(CC) -o main main.o timeout.o Common.o ${Lib_Module_RFID} ${Lib_Module_Upgrade} ${Lib_SQLite3} -lrt
- cp -f main ../Images/root
- CabinetParallel:
- rm -f Module_CabinetParallel;
- $(CC) -D $(Project) -includeConfig.h -O0 -g3 -Wall -c -fmessage-length=0 -o Module_CabinetParallel.o Module_CabinetParallel.c
- $(CC) -o Module_CabinetParallel Module_CabinetParallel.o Common.o -lrt
- cp -f Module_CabinetParallel ../Images/root
- SelfTestTask:
- rm -f Module_ChargerSelfTest;
- $(CC) -D $(Project) -includeConfig.h -O0 -g3 -Wall -c -fmessage-length=0 -o Module_ChargerSelfTest.o Module_ChargerSelfTest.c
- $(CC) -o Module_ChargerSelfTest Module_ChargerSelfTest.o Common.o -lrt
- cp -f Module_ChargerSelfTest ../Images/root
- AuthorizeTask:
- rm -f Module_Authorize;
- $(CC) -D $(Project) -includeConfig.h -O0 -g3 -Wall -c -fmessage-length=0 -o Module_Authorize.o Module_Authorize.c
- $(CC) -o Module_Authorize Module_Authorize.o Common.o -lrt
- cp -f Module_Authorize ../Images/root
- LedIndication:
- rm -f Module_LedIndication;
- $(CC) -D $(Project) -includeConfig.h -O0 -g3 -Wall -c -fmessage-length=0 -o Module_LedIndication.o Module_LedIndication.c
- $(CC) -o Module_LedIndication Module_LedIndication.o Common.o -lrt
- cp -f Module_LedIndication ../Images/root
- EvCommTask:
- rm -f Module_EvComm;
- $(CC) -D $(Project) -includeConfig.h -O0 -g3 -Wall -c -fmessage-length=0 -o Ev_Comm.o Ev_Comm.c
- $(CC) -D $(Project) -includeConfig.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 Common.o -lrt
- cp -f Module_EvComm ../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) -o Module_EventLogging Module_EventLogging.o Common.o ${Lib_SQLite3} -lrt
- 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) -o Module_InternalComm Module_InternalComm.o internalComm.o Common.o -lrt
- 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) -o Module_LcmControl Module_LcmControl.o -lrt
- 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) -o Module_PrimaryComm Module_PrimaryComm.o PrimaryComm.o Common.o -lrt
- cp -f Module_PrimaryComm ../Images/root
- InfyGroup_PsuCommObj:
- rm -f libInfyGroup_PsuCommObj.a
- $(CC) -D $(Project) -O0 -g3 -Wall -c -fmessage-length=0 -o InfyGroup_PsuCommObj.o InfyGroup_PsuCommObj.c
- $(AR) -r libInfyGroup_PsuCommObj.a InfyGroup_PsuCommObj.o
- rm -f InfyGroup_PsuCommObj.o
- PhGroup_PsuCommObj:
- rm -f libPhGroup_PsuCommObj.a
- $(CC) -D $(Project) -O0 -g3 -Wall -c -fmessage-length=0 -o PhGroup_PsuCommObj.o PhGroup_PsuCommObj.c
- $(AR) -r libPhGroup_PsuCommObj.a PhGroup_PsuCommObj.o
- rm -f PhGroup_PsuCommObj.o
- PsuCommTask:
- rm -f Module_PsuComm;
- $(CC) -D $(Project) -includeInfyGroup_PsuCommObj.h -includeConfig.h -O0 -g3 -Wall -c -fmessage-length=0 -o Module_PsuComm.o Module_PsuComm.c
- $(CC) -o Module_PsuComm Module_PsuComm.o libInfyGroup_PsuCommObj.a Common.o -lrt
- cp -f Module_PsuComm ../Images/root
- PhPsuCommTask:
- rm -f Module_PsuComm_PH;
- $(CC) -D $(Project) -includePhGroup_PsuCommObj.h -includeConfig.h -O0 -g3 -Wall -c -fmessage-length=0 -o Module_PsuComm_PH.o Module_PsuComm.c
- $(CC) -o Module_PsuComm_PH Module_PsuComm_PH.o libPhGroup_PsuCommObj.a Common.o -lrt
- cp -f Module_PsuComm_PH ../Images/root
-
- ReadCmdlineTask:
- rm -f ReadCmdline;
- $(CC) -D $(Project) -includeConfig.h -include../../../Modularization/Module_RatedCurrent.h -O0 -g3 -Wall -c -fmessage-length=0 -o ReadCmdline.o ReadCmdline.c
- $(CC) -o ReadCmdline ReadCmdline.o Common.o ../../../Modularization/libModule_RatedCurrent.a -lrt -lm
- cp -f ReadCmdline ../Images/root
- DispenserDiagnostics:
- rm -f Module_Diagnostics;
- $(CC) -D $(Project) -includeConfig.h -O0 -g3 -Wall -c -fmessage-length=0 -o Module_Diagnostics.o Module_Diagnostics.c
- $(CC) -o Module_Diagnostics Module_Diagnostics.o Common.o -lrt -lm
- cp -f Module_Diagnostics ../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) -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) -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
- Clean: CleanObj CleanExecute
- CleanObj:
- rm -f *.o
- CleanExecute:
- rm -f main
- rm -f Module_EvComm
- rm -f Module_CabinetParallel
- rm -f Module_ChargerSelfTest
- rm -f Module_Authorize
- rm -f Module_LedIndication
- rm -f Module_EventLogging
- rm -f Module_InternalComm
- rm -f Module_LcmControl
- rm -f Module_PrimaryComm
- rm -f Module_PsuComm
- rm -f Module_PsuComm_PH
- rm -f ReadCmdline
- rm -f Module_Diagnostics
- rm -f FactoryConfig
- rm -f UnsafetyOutputTask
|