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.
rtpengine/lib/common.Makefile

49 lines
1.2 KiB

include ../lib/lib.Makefile
all:
$(MAKE) $(TARGET)
$(TARGET): $(OBJS) .depend Makefile
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJS) $(LDLIBS)
debug:
$(MAKE) DBG=yes all
dep: .depend
clean:
rm -f $(OBJS) $(TARGET) $(LIBSRCS) $(ADD_CLEAN) .depend core core.*
rm -f fix_frame_channel_layout.h fix_frame_channel_layout-test.[co]
.depend: $(SRCS) $(LIBSRCS) Makefile
$(CC) $(CFLAGS) -M $(SRCS) $(LIBSRCS) | sed -e 's/:/ .depend:/' > .depend
install:
$(OBJS): Makefile
$(LIBSRCS): $(patsubst %,../lib/%,$(LIBSRCS))
rm -f "$@"
echo '/******** GENERATED FILE ********/' > "$@"
cat ../lib/"$@" >> "$@"
resample.c: fix_frame_channel_layout.h
fix_frame_channel_layout.h: ../lib/fix_frame_channel_layout-*
echo "Looking for usable alternative for $@"; \
rm -f fix_frame_channel_layout-test.[co]; \
ln -s ../lib/fix_frame_channel_layout-test.c; \
for x in ../lib/fix_frame_channel_layout-*.h; do \
echo "Trying build with $$x"; \
rm -f "$@"; \
echo '/******** GENERATED FILE ********/' > "$@"; \
cat "$$x" >> "$@"; \
$(MAKE) fix_frame_channel_layout-test.o && break; \
echo "Failed build with $$x"; \
rm -f "$@"; \
done; \
rm -f fix_frame_channel_layout-test.[co]; \
test -f "$@"
.PHONY: all debug dep clean install install