# makefile for BOINC vboxwrapper application on Macintosh. # This is invoked from BuildMacVboxWrapper.sh shell script. # It should not be used by itself without the script. # Updated 7/10/12 for Xcode 4.3 and later which are not at a fixed address # Updated 4/10/15 to remove deleted files vboxlog.cpp and vboxlog.h BOINC_DIR = ../.. BOINC_API_DIR = $(BOINC_DIR)/api BOINC_LIB_DIR = $(BOINC_DIR)/lib BOINC_BUILD_DIR = $(BOINC_DIR)/mac_build/build/Deployment BOINC_CONFIG_DIR = $(BOINC_DIR)/clientgui/mac FRAMEWORKS_DIR = /System/Library/Frameworks CXXFLAGS = $(VARIANTFLAGS) \ -g \ -DAPP_GRAPHICS \ -I$(BOINC_CONFIG_DIR) \ -I$(BOINC_DIR) \ -I$(BOINC_LIB_DIR) \ -I$(BOINC_API_DIR) \ -L$(BOINC_BUILD_DIR) \ -L. OBJ = \ floppyio.o \ vbox_common.o \ vbox_vboxmanage.o \ vboxcheckpoint.o \ vboxjob.o \ vboxlogging.o \ vboxwrapper.o PROGS = vboxwrapper all: $(PROGS) clean: /bin/rm -f $(PROGS) $(OBJ) floppyio.o: floppyio.cpp g++ $(CXXFLAGS) -c floppyio.cpp vbox_common.o: vbox_common.cpp g++ $(CXXFLAGS) -c vbox_common.cpp vbox_vboxmanage.o: vbox_vboxmanage.cpp g++ $(CXXFLAGS) -c vbox_vboxmanage.cpp vboxcheckpoint.o: vboxcheckpoint.cpp g++ $(CXXFLAGS) -c vboxcheckpoint.cpp vboxjob.o: vboxjob.cpp g++ $(CXXFLAGS) -c vboxjob.cpp vboxlogging.o: vboxlogging.cpp g++ $(CXXFLAGS) -c vboxlogging.cpp vboxwrapper.o: vboxwrapper.cpp g++ $(CXXFLAGS) -c vboxwrapper.cpp vboxwrapper: vboxwrapper.o vbox_common.o vbox_vboxmanage.o vboxcheckpoint.o vboxjob.o vboxlogging.o floppyio.o libstdc++.a $(BOINC_LIB_DIR)/libboinc.a $(BOINC_API_DIR)/libboinc_api.a $(CXX) $(CXXFLAGS) $(LDFLAGS) -o vboxwrapper vboxwrapper.o vbox_common.o vbox_vboxmanage.o vboxcheckpoint.o vboxjob.o vboxlogging.o floppyio.o libstdc++.a -pthread -lboinc_api -lboinc