D-Modem/Makefile

27 lines
691 B
Makefile
Raw Normal View History

2021-10-30 02:41:03 +08:00
PJSIP_DIR=pjproject-2.11.1
PKG_CONFIG_PATH=pjsip.install/lib/pkgconfig
all: d-modem slmodemd
$(PKG_CONFIG_PATH)/libpjproject.pc:
(cd $(PJSIP_DIR); [ -f ./config.status ] || ./configure --prefix=`pwd`/../pjsip.install --disable-video)
$(MAKE) -C $(PJSIP_DIR) && \
$(MAKE) -C $(PJSIP_DIR) install
2022-11-11 12:52:44 +08:00
d-modem: d-modem.c $(PKG_CONFIG_PATH)/libpjproject.pc
2022-11-11 01:24:38 +08:00
$(CC) -o $@ $< `PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" pkg-config --static --cflags --libs libpjproject` -lpulse -lpulse-simple
2022-11-11 12:52:44 +08:00
2021-10-30 02:41:03 +08:00
slmodemd:
$(MAKE) -C slmodemd
clean:
rm -f d-modem.o d-modem
$(MAKE) -C slmodemd clean
realclean: clean
$(MAKE) -C $(PJSIP_DIR) realclean
rm -rf pjsip.install/*
.PHONY: all clean realclean slmodemd