Previous page

Next page

Locate page in Contents

Print this page

Mac OS X

The following is a sample make file that can be used to compile Parallels client applications on Mac OS X:

# set the appropriate path to SDK headers.

SDK_INSTALL_PATH=/Library/Frameworks/ParallelsVirtualizationSDK.framework/

OBJS = SdkWrap.o main.o

CXX = g++

CXXFLAGS = -I$(SDK_INSTALL_PATH)/Include

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)/Helpers/SdkWrap/SdkWrap.cpp

$(CXX) -c -o $@ $(CXXFLAGS) $(SDK_INSTALL_PATH)/Helpers/SdkWrap/SdkWrap.cpp

clean:

@rm -f $(TARGET) $(OBJS)

.PHONY : all clean

Please send us your feedback on this help page