2012-07-11 10:32:09 +00:00
|
|
|
# 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
|
2015-04-10 07:20:31 +00:00
|
|
|
# Updated 4/10/15 to remove deleted files vboxlog.cpp and vboxlog.h
|
2015-04-14 14:28:11 +00:00
|
|
|
# Updated 4/14/15 for compatibility with Xcode 6
|
2023-01-07 01:48:18 +00:00
|
|
|
# Updated 2/6/23 to include additional search paths
|
2012-07-11 10:32:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
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) \
|
2023-01-07 01:48:18 +00:00
|
|
|
-I$(PREFIX)/include \
|
2012-07-11 10:32:09 +00:00
|
|
|
-L$(BOINC_BUILD_DIR) \
|
2023-01-07 01:48:18 +00:00
|
|
|
-L$(PREFIX)/lib \
|
2012-07-11 10:32:09 +00:00
|
|
|
-L.
|
|
|
|
|
|
|
|
OBJ = \
|
|
|
|
floppyio.o \
|
2015-01-15 22:19:45 +00:00
|
|
|
vbox_common.o \
|
|
|
|
vbox_vboxmanage.o \
|
|
|
|
vboxcheckpoint.o \
|
|
|
|
vboxjob.o \
|
|
|
|
vboxlogging.o \
|
2012-07-11 10:32:09 +00:00
|
|
|
vboxwrapper.o
|
|
|
|
|
|
|
|
PROGS = vboxwrapper
|
|
|
|
|
|
|
|
all: $(PROGS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
/bin/rm -f $(PROGS) $(OBJ)
|
|
|
|
|
|
|
|
floppyio.o: floppyio.cpp
|
2015-04-14 14:28:11 +00:00
|
|
|
$(CXX) $(CXXFLAGS) -c floppyio.cpp
|
2012-07-11 10:32:09 +00:00
|
|
|
|
2015-01-15 22:19:45 +00:00
|
|
|
vbox_common.o: vbox_common.cpp
|
2015-04-14 14:28:11 +00:00
|
|
|
$(CXX) $(CXXFLAGS) -c vbox_common.cpp
|
2012-07-11 10:32:09 +00:00
|
|
|
|
2015-01-15 22:19:45 +00:00
|
|
|
vbox_vboxmanage.o: vbox_vboxmanage.cpp
|
2015-04-14 14:28:11 +00:00
|
|
|
$(CXX) $(CXXFLAGS) -c vbox_vboxmanage.cpp
|
2014-11-23 17:43:35 +00:00
|
|
|
|
2015-01-15 22:19:45 +00:00
|
|
|
vboxcheckpoint.o: vboxcheckpoint.cpp
|
2015-04-14 14:28:11 +00:00
|
|
|
$(CXX) $(CXXFLAGS) -c vboxcheckpoint.cpp
|
2015-01-15 22:19:45 +00:00
|
|
|
|
|
|
|
vboxjob.o: vboxjob.cpp
|
2015-04-14 14:28:11 +00:00
|
|
|
$(CXX) $(CXXFLAGS) -c vboxjob.cpp
|
2015-01-15 22:19:45 +00:00
|
|
|
|
|
|
|
vboxlogging.o: vboxlogging.cpp
|
2015-04-14 14:28:11 +00:00
|
|
|
$(CXX) $(CXXFLAGS) -c vboxlogging.cpp
|
2015-01-15 22:19:45 +00:00
|
|
|
|
|
|
|
vboxwrapper.o: vboxwrapper.cpp
|
2015-04-14 14:28:11 +00:00
|
|
|
$(CXX) $(CXXFLAGS) -c vboxwrapper.cpp
|
2015-01-15 22:19:45 +00:00
|
|
|
|
2015-04-14 14:28:11 +00:00
|
|
|
vboxwrapper: vboxwrapper.o vbox_common.o vbox_vboxmanage.o vboxcheckpoint.o vboxjob.o vboxlogging.o floppyio.o $(BOINC_BUILD_DIR)/libboinc.a $(BOINC_BUILD_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 -pthread -lboinc_api -lboinc
|