Makefile 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. -include ../../../../Rules.make
  2. export PATH=/bin:/sbin:/usr/bin:$(SDK_PATH_TARGET)/usr/bin:$PATH
  3. #define library variable
  4. Internal485ProtocolLib = -L ../../../Modularization/Internal485Protocol -lInternal485Protocol
  5. PsuCommProtocolLib = -L ../../../Modularization/PsuCommProtocol -lPsuCommProtocol
  6. all: CopyFile apps
  7. #apps: Module_CSU Module_EvComm Module_EventLogging Module_InternalComm Module_LcmControl Module_PrimaryComm Module_PsuComm
  8. # ReadCmdline kill.sh
  9. apps: MainTask EvCommTask EventLoggingTask InternalCommTask LcmControlTask PrimaryCommTask PsuCommTask ReadCmdlineTask
  10. MainTask:
  11. rm -f *.o
  12. rm -f main;
  13. $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o timeout.o timeout.c
  14. $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o main.o main.c
  15. $(CC) -o Module_CSU main.o timeout.o "..//..//..//Modularization//libModule_RFID.a"
  16. cp -f main ../Images/root
  17. EvCommTask:
  18. rm -f Module_EvComm;
  19. $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o Ev_Comm.o Ev_Comm.c
  20. $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o Module_EvComm.o Module_EvComm.c
  21. cp -f Module_EvComm ../Images/root
  22. EventLoggingTask:
  23. rm -f Module_EventLogging;
  24. $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o Module_EventLogging.o Module_EventLogging.c
  25. cp -f Module_EventLogging ../Images/root
  26. InternalCommTask:
  27. rm -f Module_InternalComm;
  28. $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o internalComm.o internalComm.c
  29. $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o Module_InternalComm.o Module_InternalComm.c
  30. cp -f Module_InternalComm ../Images/root
  31. LcmControlTask:
  32. rm -f Module_LcmControl;
  33. $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o Module_LcmControl.o Module_LcmControl.c
  34. cp -f Module_LcmControl ../Images/root
  35. PrimaryCommTask:
  36. rm -f Module_PrimaryComm;
  37. $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o Module_PrimaryComm.o Module_PrimaryComm.c
  38. $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o PrimaryComm.o PrimaryComm.c
  39. cp -f Module_PrimaryComm ../Images/root
  40. PsuCommTask:
  41. rm -f Module_PsuComm;
  42. $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o Module_PsuComm.o Module_PsuComm.c
  43. $(CC) -o Module_PsuComm Module_PsuComm.o "..//..//..//Modularization//libPhihong_PsuCommObj.a"
  44. cp -f Module_PsuComm ../Images/root
  45. ReadCmdlineTask:
  46. rm -f ReadCmdline;
  47. $(CC) -O0 -g3 -Wall -c -fmessage-length=0 -o ReadCmdline.o ReadCmdline.c
  48. cp -f ReadCmdline ../Images/root
  49. CopyFile:
  50. rm -rfv ../Images/root
  51. mkdir -p ../Images/root