2008-03-25 12:25:34 +00:00
|
|
|
# makefile for uc2 BOINC example application on Macintosh.
|
2008-03-26 14:43:00 +00:00
|
|
|
# This is invoked from MakeMacExample.sh shell script.
|
|
|
|
# It should not be used by itself without the script.
|
2012-07-11 10:32:09 +00:00
|
|
|
# Updated 7/10/12 for OS 10.7 and XCode 4.3 and later
|
2008-03-25 12:25:34 +00:00
|
|
|
|
2008-08-01 18:14:00 +00:00
|
|
|
BOINC_DIR = ../..
|
2008-03-25 12:25:34 +00:00
|
|
|
BOINC_API_DIR = $(BOINC_DIR)/api
|
|
|
|
BOINC_LIB_DIR = $(BOINC_DIR)/lib
|
2010-02-16 11:34:18 +00:00
|
|
|
BOINC_BUILD_DIR = $(BOINC_DIR)/mac_build/build/Deployment
|
|
|
|
BOINC_CONFIG_DIR = $(BOINC_DIR)/clientgui/mac
|
2008-03-25 12:25:34 +00:00
|
|
|
FRAMEWORKS_DIR = /System/Library/Frameworks
|
|
|
|
|
|
|
|
CXXFLAGS = $(VARIANTFLAGS) \
|
|
|
|
-g \
|
|
|
|
-DAPP_GRAPHICS \
|
2010-02-16 11:34:18 +00:00
|
|
|
-I$(BOINC_CONFIG_DIR) \
|
2008-03-25 12:25:34 +00:00
|
|
|
-I$(BOINC_DIR) \
|
|
|
|
-I$(BOINC_LIB_DIR) \
|
|
|
|
-I$(BOINC_API_DIR) \
|
2010-02-16 11:34:18 +00:00
|
|
|
-L$(BOINC_BUILD_DIR) \
|
2008-03-25 12:25:34 +00:00
|
|
|
-L.
|
|
|
|
|
|
|
|
OBJ = \
|
|
|
|
uc2.o \
|
|
|
|
uc2_graphics.o
|
|
|
|
|
|
|
|
PROGS = uc2 uc2_graphics
|
|
|
|
|
|
|
|
all: $(PROGS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
/bin/rm -f $(PROGS) $(OBJ)
|
|
|
|
|
2010-02-16 11:34:18 +00:00
|
|
|
uc2: uc2.o $(BOINC_BUILD_DIR)/libboinc_api.a $(BOINC_BUILD_DIR)/libboinc.a
|
2008-03-26 14:43:00 +00:00
|
|
|
$(CXX) $(LDFLAGS) $(CXXFLAGS) -o uc2 uc2.o -lboinc_api -lboinc
|
2008-03-25 12:25:34 +00:00
|
|
|
|
2010-02-16 11:34:18 +00:00
|
|
|
uc2_graphics: uc2_graphics.o $(BOINC_BUILD_DIR)/libboinc.a $(BOINC_BUILD_DIR)/libboinc_graphics2.a
|
2008-03-26 14:43:00 +00:00
|
|
|
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o uc2_graphics uc2_graphics.o\
|
2012-07-11 10:32:09 +00:00
|
|
|
-lboinc_graphics2 -lboinc_api -lboinc -ljpeg\
|
|
|
|
-framework AppKit -framework GLUT -framework OpenGL
|
2010-02-16 11:34:18 +00:00
|
|
|
|