boinc/samples/vboxwrapper/Makefile_mac

44 lines
1.1 KiB
Plaintext

# 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
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.o \
vboxwrapper.o
PROGS = vboxwrapper
all: $(PROGS)
clean:
/bin/rm -f $(PROGS) $(OBJ)
floppyio.o: floppyio.cpp
$(CXX) $(CXXFLAGS) -c floppyio.cpp
vbox.o: vbox.cpp
$(CXX) $(CXXFLAGS) -c vbox.cpp
vboxwrapper: vboxwrapper.o vbox.o floppyio.o $(BOINC_BUILD_DIR)/libboinc.a $(BOINC_BUILD_DIR)/libboinc_api.a
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o vboxwrapper vboxwrapper.o vbox.o floppyio.o -pthread -lboinc_api -lboinc