6727efdfbd25023c9689787b1bac580b9b3b5940
[bcm963xx.git] / userapps / opensource / siproxd / Makefile
1
2 export TOPDIR = $(OPENSOURCE_DIR)/siproxd
3
4 SUBDIRS = libosip2 siproxd_main
5
6 OBJS = siproxd.o
7
8 all: siproxd
9
10 install:
11                 install -m 755 siproxd $(INSTALL_DIR)/bin
12                 $(STRIP) $(INSTALL_DIR)/bin/siproxd
13
14 dynamic: siproxd install
15
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
20
21 subdirs: $(patsubst %, _dir_%, $(SUBDIRS))
22
23 $(patsubst %, _dir_%, $(SUBDIRS)) :
24         $(MAKE) -C $(patsubst _dir_%, %, $@) $(TGT)
25
26 clean:
27         $(MAKE) -i TGT=clean subdirs
28         -rm -f siproxd siproxd.o
29         -rm -rf $(TARGETS_DIR)/fs.src/etc/siproxd