2 export TOPDIR = $(OPENSOURCE_DIR)/siproxd
4 SUBDIRS = libosip2 siproxd_main
11 install -m 755 siproxd $(INSTALL_DIR)/bin
12 $(STRIP) $(INSTALL_DIR)/bin/siproxd
14 dynamic: siproxd install
16 siproxd: subdirs $(OBJS)
17 $(CC) $(CFLAGS) -o siproxd -lpthread $(OBJS)
18 mkdir -p $(TARGETS_DIR)/fs.src/etc/siproxd
19 cp -f $(TOPDIR)/siproxd.conf $(TARGETS_DIR)/fs.src/etc/siproxd
21 subdirs: $(patsubst %, _dir_%, $(SUBDIRS))
23 $(patsubst %, _dir_%, $(SUBDIRS)) :
24 $(MAKE) -C $(patsubst _dir_%, %, $@) $(TGT)
27 $(MAKE) -i TGT=clean subdirs
28 -rm -f siproxd siproxd.o
29 -rm -rf $(TARGETS_DIR)/fs.src/etc/siproxd