50 lines
1 KiB
Makefile
50 lines
1 KiB
Makefile
# Makefile
|
|
# This file holds the make rules for the Telephony Engine test cases
|
|
|
|
CXX := @CXX@ -Wall
|
|
SED := sed
|
|
DEFS :=
|
|
INCLUDES := -I@top_srcdir@
|
|
CFLAGS := -O0 @MODULE_CPPFLAGS@ @INLINE_FLAGS@
|
|
LDFLAGS:= -L.. -lyate
|
|
MODFLAGS:= @MODULE_LDFLAGS@
|
|
MODSTRIP:= @MODULE_SYMBOLS@
|
|
|
|
MKDEPS := ../config.status
|
|
PROGS = msgsniff.yate randcall.yate
|
|
LIBS =
|
|
OBJS =
|
|
|
|
LOCALFLAGS =
|
|
LOCALLIBS =
|
|
COMPILE = $(CXX) $(DEFS) $(INCLUDES) $(CFLAGS)
|
|
LINK = $(CXX) $(LDFLAGS)
|
|
MODLINK = $(CXX) $(MODFLAGS) $(MODSTRIP) $(LDFLAGS)
|
|
MODCOMP = $(COMPILE) $(MODFLAGS) $(MODSTRIP) $(LDFLAGS)
|
|
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
|
|
.PHONY: all
|
|
all: $(LIBS) $(PROGS)
|
|
|
|
.PHONY: strip
|
|
strip: all
|
|
strip --strip-debug --discard-locals $(PROGS)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
@-$(RM) $(PROGS) $(LIBS) $(OBJS) core 2>/dev/null
|
|
|
|
%.o: @srcdir@/%.cpp $(MKDEPS) @top_srcdir@/yatengine.h
|
|
$(COMPILE) -c $<
|
|
|
|
Makefile: @srcdir@/Makefile.in $(MKDEPS)
|
|
cd .. && ./config.status
|
|
|
|
lib%.so: %.o
|
|
$(LINK) -shared -o $@ $^
|
|
|
|
%.yate: @srcdir@/%.cpp $(MKDEPS) $(INCFILES)
|
|
$(MODCOMP) -o $@ $(LOCALFLAGS) $< $(LOCALLIBS)
|