mirror of https://github.com/sipwise/sems.git
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.
30 lines
516 B
30 lines
516 B
LIBNAME=libresample.a
|
|
|
|
SRCS=$(wildcard *.cpp)
|
|
HDRS=$(SRCS:.cpp=.h)
|
|
OBJS=$(SRCS:.cpp=.o)
|
|
DEPS=$(SRCS:.cpp=.d)
|
|
|
|
.PHONY: all
|
|
all: $(LIBNAME)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f $(OBJS) $(DEPS) $(LIBNAME)
|
|
|
|
COREPATH = ..
|
|
include $(COREPATH)/../Makefile.defs
|
|
|
|
CPPFLAGS += -I$(COREPATH)
|
|
|
|
-include $(DEPS)
|
|
|
|
# implicit rules
|
|
%.o : %.cpp $(COREPATH)/../Makefile.defs
|
|
$(CXX) -MMD -c -o $@ $< $(CPPFLAGS) $(CXXFLAGS)
|
|
|
|
$(LIBNAME): $(OBJS) $(COREPATH)/../Makefile.defs
|
|
@echo ""
|
|
@echo "making $(LIBNAME)"
|
|
$(AR) rvs $(LIBNAME) $(OBJS)
|