add makefile for plat root
This commit is contained in:
27
plat/Makefile
Normal file
27
plat/Makefile
Normal file
@@ -0,0 +1,27 @@
|
||||
# Makefile for platform of EMS
|
||||
|
||||
PLATDIR = ../plat
|
||||
BINDIR = ../bin
|
||||
PLATMODULELIST = 8ecp aif bicc debug haepub iptrans isdn isup m2ua mgc mgcp mgc_v2 mtp3 pal public rtp sccp scf sip smpp snmp tcap xapp
|
||||
|
||||
# default all
|
||||
all: $(PLATMODULELIST)
|
||||
|
||||
# plat module list
|
||||
$(PLATMODULELIST):
|
||||
@echo "====================== make $@ ======================="
|
||||
@cd $(PLATDIR)/$@ && $(MAKE)
|
||||
@if [ $@ = "iptrans" ]; then \
|
||||
./generate_iptrans; \
|
||||
cp -f ./iptrans $(BINDIR); \
|
||||
fi
|
||||
@cd -
|
||||
|
||||
# clean
|
||||
clean:
|
||||
@for mod in $(PLATMODULELIST); do \
|
||||
echo "====================== clean $$mod ======================="; \
|
||||
cd $(PLATDIR)/$$mod && $(MAKE) clean; \
|
||||
cd -; \
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user