|
|
@ -19,9 +19,9 @@ VER := $(strip $(VER))
|
|
|
|
MY_CFLAGS = -fmessage-length=0
|
|
|
|
MY_CFLAGS = -fmessage-length=0
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(PLAT),x86)
|
|
|
|
ifeq ($(PLAT),x86)
|
|
|
|
MY_LIBS = -lpthread -L../lib -lrt -ldl -lscl_shm -lm -lgo -lmodbus
|
|
|
|
MY_LIBS = -lpthread -L../lib -lrt -lscl_shm -lmodbus
|
|
|
|
else
|
|
|
|
else
|
|
|
|
MY_LIBS = -L../lib -lpthread -lrt -ldl -lscl_shm -lm -lgo -lmodbus
|
|
|
|
MY_LIBS = -L../lib -lpthread -lrt -lscl_shm -lmodbus
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
# The pre-processor options used by the cpp (man cpp for more).
|
|
|
|
# The pre-processor options used by the cpp (man cpp for more).
|
|
|
@ -73,14 +73,14 @@ endif
|
|
|
|
ifeq ($(PLAT),x86)
|
|
|
|
ifeq ($(PLAT),x86)
|
|
|
|
CC = gcc
|
|
|
|
CC = gcc
|
|
|
|
else
|
|
|
|
else
|
|
|
|
CC = /root/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc
|
|
|
|
CC = arm-linux-gnueabihf-gcc
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
# The C++ program compiler.
|
|
|
|
# The C++ program compiler.
|
|
|
|
ifeq ($(PLAT),x86)
|
|
|
|
ifeq ($(PLAT),x86)
|
|
|
|
CXX = g++
|
|
|
|
CXX = g++
|
|
|
|
else
|
|
|
|
else
|
|
|
|
CXX = /root/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
|
|
|
|
CXX = arm-linux-gnueabihf-g++
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
# Un-comment the following line to compile C programs as C++ ones.
|
|
|
|
# Un-comment the following line to compile C programs as C++ ones.
|
|
|
@ -89,7 +89,7 @@ endif
|
|
|
|
ifeq ($(PLAT),x86)
|
|
|
|
ifeq ($(PLAT),x86)
|
|
|
|
STRIP = strip
|
|
|
|
STRIP = strip
|
|
|
|
else
|
|
|
|
else
|
|
|
|
STRIP = /root/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-strip
|
|
|
|
STRIP = arm-linux-gnueabihf-strip
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
# The command used to delete file.
|
|
|
|
# The command used to delete file.
|
|
|
|