summarylogtreecommitdiffstats
path: root/makefile.patch
blob: bdddaef56054162c94f2874f7cec7ccc3bbfc2ca (plain)
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
diff --git i/Makefile w/Makefile
index 430334f..942b542 100644
--- i/Makefile
+++ w/Makefile
@@ -1,16 +1,19 @@
-CXXFLAGS := --std=c++11 -O2 -MMD -MP
+CXXFLAGS := --std=c++11 -O2 -MMD -MP -fPIC
 
 SRCS := $(shell find -name '*.cpp')
 OBJS := $(SRCS:%.cpp=%.o)
 DEPS := $(SRCS:%.cpp=%.d)
 
-TARGET := SSEQPlayer.a
+TARGET := libSSEQPlayer.a libSSEQPlayer.so
 
 all: $(TARGET)
 
-$(TARGET): $(OBJS)
+libSSEQPlayer.a: $(OBJS)
 	ar rcs $@ $^
 
+libSSEQPlayer.so: $(OBJS)
+	$(CXX) -shared -o $@ $^
+
 clean:
 	@rm -f $(OBJS)
 	@rm -f $(DEPS)