You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
666 B
22 lines
666 B
CXX = g++
|
|
CXXFLAGS = -std=c++17 -O2 -Wall -Wextra
|
|
|
|
|
|
PKG_CFLAGS := $(shell pkg-config --cflags open62541)
|
|
# PKG_LIBS := $(shell pkg-config --libs open62541)
|
|
# PKG_LIBS := -lopen62541 -lpthread -lm -ldl -lmbedtls -lmbedtls -lmbedx509 -lmbedcrypto
|
|
PKG_LIBS := -lopen62541
|
|
|
|
all: opcua_client opcua_browser
|
|
|
|
opcua_client: opcua_client.cpp OPCUAClient.cpp
|
|
$(CXX) -o opcua_client opcua_client.cpp OPCUAClient.cpp $(CXXFLAGS) $(PKG_CFLAGS) $(PKG_LIBS)
|
|
|
|
opcua_browser: opcua_browser.cpp OPCUAClient.cpp
|
|
$(CXX) -o opcua_browser opcua_browser.cpp OPCUAClient.cpp $(CXXFLAGS) $(PKG_CFLAGS) $(PKG_LIBS)
|
|
|
|
clean:
|
|
rm -f opcua_client opcua_browser
|
|
|
|
.PHONY: all clean
|