-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.instance
36 lines (21 loc) · 1.03 KB
/
Makefile.instance
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
include Makefile.common
INSTANCESRCS = ScoreSegmentOperatorReadOnly_instance.cc \
ScoreSegmentOperatorReadWrite_instance.cc \
ScoreSegmentOperatorSeqReadOnly_instance.cc \
ScoreSegmentOperatorSeqCyclicReadOnly_instance.cc \
ScoreSegmentOperatorSeqReadWrite_instance.cc \
ScoreSegmentOperatorSeqWriteOnly_instance.cc \
ScoreSegmentOperatorWriteOnly_instance.cc \
INSTANCEOBJS = $(addsuffix .o, $(basename $(INSTANCESRCS)))
INSTANCESHAREDOBJS = $(addsuffix .so, $(basename $(INSTANCESRCS)))
all: $(INSTANCESHAREDOBJS) ScoreSharedObject_helper.o
%.o: %.cc
$(CXX) -fPIC -c $(CXXFLAGS) $(INCLUDE) $<
%.so: %.o libScoreRuntime.a ScoreSharedObject_helper.o
$(CXX) $(CXXFLAGS) -shared -nostartfiles -o $@ $< ScoreSharedObject_helper.o $(LIB) -lScoreRuntime
clean:
rm -f $(INSTANCEOBJS) $(INSTANCESHAREDOBJS)
depend:
rm -f Makefile.instance.dep
$(CXX) -M $(CXXFLAGS) $(INCLUDE) $(INSTANCESRCS) > Makefile.instance.dep
-include Makefile.instance.dep