forked from strozfriedberg/D-Modem
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (18 loc) · 716 Bytes
/
Makefile
File metadata and controls
26 lines (18 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
d-modem: d-modem.c $(PKG_CONFIG_PATH)/libpjproject.pc slmodemd/modem.h
$(CC) -DWITH_AUDIO -Wall -Islmodemd/ -o $@ $< `PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" pkg-config --static --cflags --libs libpjproject`
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