123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- -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
- all: CopyFile apps
- #apps: Module_CSU Module_EvComm Module_EventLogging Module_InternalComm Module_LcmControl Module_PrimaryComm Module_PsuComm
- # ReadCmdline kill.sh
- apps: MainTask EvCommTask EventLoggingTask InternalCommTask LcmControlTask PrimaryCommTask PsuCommTask ReadCmdlineTask
- MainTask:
- rm -f *.o
- rm -f main;
- $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o timeout.o timeout.c
- $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o main.o main.c
- $(CC) -o Module_CSU main.o timeout.o "..//..//..//Modularization//libModule_RFID.a"
- cp -f main ../Images/root
- EvCommTask:
- rm -f Module_EvComm;
- $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o Ev_Comm.o Ev_Comm.c
- $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o Module_EvComm.o Module_EvComm.c
- cp -f Module_EvComm ../Images/root
-
- EventLoggingTask:
- rm -f Module_EventLogging;
- $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o Module_EventLogging.o Module_EventLogging.c
- cp -f Module_EventLogging ../Images/root
-
- InternalCommTask:
- rm -f Module_InternalComm;
- $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o internalComm.o internalComm.c
- $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o Module_InternalComm.o Module_InternalComm.c
- cp -f Module_InternalComm ../Images/root
-
- LcmControlTask:
- rm -f Module_LcmControl;
- $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o Module_LcmControl.o Module_LcmControl.c
- cp -f Module_LcmControl ../Images/root
- PrimaryCommTask:
- rm -f Module_PrimaryComm;
- $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o Module_PrimaryComm.o Module_PrimaryComm.c
- $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o PrimaryComm.o PrimaryComm.c
- cp -f Module_PrimaryComm ../Images/root
- PsuCommTask:
- rm -f Module_PsuComm;
- $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o Module_PsuComm.o Module_PsuComm.c
- $(CC) -o Module_PsuComm Module_PsuComm.o "..//..//..//Modularization//libPhihong_PsuCommObj.a"
- cp -f Module_PsuComm ../Images/root
-
- ReadCmdlineTask:
- rm -f ReadCmdline;
- $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o ReadCmdline.o ReadCmdline.c
- cp -f ReadCmdline ../Images/root
- CopyFile:
- rm -rfv ../Images/root
- mkdir -p ../Images/root
-
|