You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
558 B
22 lines
558 B
CXX ?= g++ |
|
AR ?= ar |
|
RANLIB ?= ranlib |
|
CPPFLAGS += -I../include -I./include |
|
CXXFLAGS += -fPIC -Wall |
|
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) $(CXXFLAGS) $(LDFLAGS) $^ -o $@ |
|
|
|
$(STATIC_LIBNAME): $(RMIDEVICEOBJ) |
|
$(AR) crv $(STATIC_LIBNAME) $^ |
|
$(RANLIB) $(STATIC_LIBNAME) |
|
|
|
clean: |
|
rm -f $(RMIDEVICEOBJ) $(LIBNAME)* $(STATIC_LIBNAME)*
|
|
|