The following is a sample make file that can be used to compile Parallels client applications on Linux:
# set the apropriate path to the SDK headers
SDK_INSTALL_PATH=/usr
OBJS = SdkWrap.o main.o
CXX = g++
CXXFLAGS = -I$(SDK_INSTALL_PATH)/include/parallels-server-sdk
LDFLAGS = -ldl
# Set the current folder name
TARGET = Example
all : $(TARGET)
$(TARGET) : $(OBJS)
$(CXX) -o $@ $(LDFLAGS) $(OBJS)
main.o : main.cpp
$(CXX) -c -o $@ $(CXXFLAGS) main.cpp
SdkWrap.o : $(SDK_INSTALL_PATH)/share/parallels-server-sdk/helpers/SdkWrap/SdkWrap.cpp
$(CXX) -c -o $@ $(CXXFLAGS) $(SDK_INSTALL_PATH)/share/parallels-server-sdk/helpers/SdkWrap/SdkWrap.cpp
clean:
@rm -f $(TARGET) $(OBJS)
.PHONY : all clean