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.
sems/core/plug-in/sipctrl/Makefile.standalone

59 lines
941 B

NAME = sip_parser
SRCS = main.cpp \
log.cpp \
sip_parser.cpp \
parse_uri.cpp \
parse_header.cpp \
parse_common.cpp \
parse_via.cpp \
parse_from_to.cpp \
parse_cseq.cpp \
msg_fline.cpp \
msg_hdrs.cpp \
hash_table.cpp \
hash.cpp \
trans_layer.cpp \
transport.cpp \
udp_trsp.cpp \
resolver.cpp \
wheeltimer.cpp \
sip_trans.cpp \
SipCtrlInterface.cpp \
../../AmThread.cpp \
../../AmUtils.cpp \
../../AmSipMsg.cpp
CORE_PATH ?= ../..
OBJS = $(SRCS:.cpp=.o)
DEPS = $(SRCS:.cpp=.d)
CXXFLAGS += -g -I $(CORE_PATH)
LDFLAGS += -lpthread -g
CPPFLAGS += -D_DEBUG -D_STANDALONE
all:
-@$(MAKE) deps && \
$(MAKE) sip_parser
clean:
rm -f *.o *.d $(NAME)
deps: $(DEPS)
$(NAME): $(OBJS)
$(CXX) -o $@ $(LDFLAGS) $(OBJS)
%.o: %.cpp %.d
$(CXX) -o $@ -c $< $(CPPFLAGS) $(CXXFLAGS)
%.d: %.cpp Makefile
$(CXX) -MM -MT '$@ $(@:.d=.o)' $< $(CPPFLAGS) $(CXXFLAGS) > $@
ifeq '$(MAKECMDGOALS)' '$(NAME)'
include $(DEPS)
endif