1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- -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
- all: CopyFile apps
- apps: Module_InternalComm_Task Module_FactoryConfig_Task Module_EventLogging_Task Module_AlarmDetect_Task Module_CSU_Task
- Module_InternalComm_Task:
- @echo "===== Module_InternalComm_Task ==================================="
- rm -f Module_InternalComm
- $(CC) "-I../../" "-include../../../Modularization/Module_Upgrade.h" -O0 -g3 -Wall -c -fmessage-length=0 -o Module_InternalComm.o "./Module_InternalComm.c"
- $(CC) -o Module_InternalComm Module_InternalComm.o ${Lib_Module_Upgrade}
- rm -f *.o
- mv -f Module_InternalComm ../Images/root
- @echo \
-
- Module_FactoryConfig_Task:
- @echo "===== Module_FactoryConfig_Task =================================="
- rm -f Module_FactoryConfig
- gcc "-I../../" -o Module_FactoryConfig "./Module_FactoryConfig.c"
- mkdir -p /Storage/SystemLog
- ./Module_FactoryConfig -f;true
- cp /mnt/FactoryDefaultConfig.bin ../Images
- rm -f Module_FactoryConfig
- $(CC) "-I../../" -O0 -g3 -Wall -c -fmessage-length=0 -o Module_FactoryConfig.o "./Module_FactoryConfig.c"
- $(CC) -o Module_FactoryConfig Module_FactoryConfig.o
- rm -f *.o
- mv -f Module_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_AlarmDetect_Task:
- @echo "===== Module_AlarmDetect_Task ===================================="
- rm -f Module_AlarmDetect
- $(CC) "-I../../" -O0 -g3 -Wall -c -fmessage-length=0 -o Module_AlarmDetect.o "./Module_AlarmDetect.c"
- $(CC) -o Module_AlarmDetect Module_AlarmDetect.o
- rm -f *.o
- mv -f Module_AlarmDetect ../Images/root
- @echo \
-
- Module_CSU_Task:
- @echo "===== Module_CSU_Task ============================================"
- rm -f main
- $(CC) "-I../../" "-include../../../Modularization/Module_Upgrade.h" "-include../../../Modularization/Module_RFID.h" -O0 -g3 -Wall -c -fmessage-length=0 -o main.o "./main.c"
- $(CC) -o main main.o ${Lib_Module_RFID} ${Lib_Module_Upgrade}
- rm -f *.o
- mv -f main ../Images/root
- @echo \
-
- CopyFile:
- rm -rfv ../Images/root
- mkdir -p ../Images/root
-
|