-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
43 lines (31 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# This should work on Linux. Modify as needed for other platforms.
# Change the following to match your installation
BOINC_DIR = ../..
BOINC_API_DIR = $(BOINC_DIR)/api
BOINC_LIB_DIR = $(BOINC_DIR)/lib
# CernVM-Graphics Linking
CERNVMGRAPHICS_DIR = ../CernVM-Graphics
CXXFLAGS = -g \
-I$(BOINC_DIR) \
-I$(BOINC_LIB_DIR) \
-I$(BOINC_API_DIR) \
-L$(BOINC_API_DIR) \
-L$(BOINC_LIB_DIR) \
-L.
ifneq ($(wildcard $(CERNVMGRAPHICS_DIR)),)
CXXFLAGS += -DAPP_GRAPHICS \
-I$(CERNVMGRAPHICS_DIR)
endif
PROGS = cernvm-wrapper
all: $(PROGS)
libstdc++.a:
ln -s `g++ -print-file-name=libstdc++.a`
clean:
rm $(PROGS) *.o
distclean:
/bin/rm -f $(PROGS) *.o libstdc++.a
floppyIO.o: floppyIO.cpp
g++ -c $(CXXFLAGS) -o floppyIO.o floppyIO.cpp
cernvm-wrapper.o: vbox.h helper.h
cernvm-wrapper: floppyIO.o cernvm-wrapper.o libstdc++.a $(BOINC_LIB_DIR)/libboinc.a $(BOINC_API_DIR)/libboinc_api.a
g++ $(CXXFLAGS) -o cernvm-wrapper cernvm-wrapper.o floppyIO.o libstdc++.a -pthread -lboinc_api -lboinc -lz