diff options
Diffstat (limited to 'rmidevice/Makefile')
-rw-r--r-- | rmidevice/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rmidevice/Makefile b/rmidevice/Makefile index 7ab2a40..e739392 100644 --- a/rmidevice/Makefile +++ b/rmidevice/Makefile @@ -1,5 +1,4 @@ CXX = g++ -LD = $(CXX) AR = ar RANLIB = ranlib CPPFLAGS = -I../include -I./include @@ -8,11 +7,12 @@ RMIDEVICESRC = rmifunction.cpp rmidevice.cpp hiddevice.cpp RMIDEVICEOBJ = $(RMIDEVICESRC:.cpp=.o) LIBNAME = librmidevice.so STATIC_LIBNAME = librmidevice.a +LDFLAGS = -shared -Wl,-soname,$(LIBNAME) all: $(LIBNAME) $(STATIC_LIBNAME) $(LIBNAME): $(RMIDEVICEOBJ) - $(CXX) -shared -Wl,-soname,$(LIBNAME) $^ -o $@ + $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -o $@ $(STATIC_LIBNAME): $(RMIDEVICEOBJ) $(AR) crv $(STATIC_LIBNAME) $^ |