dect
/
asterisk
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
asterisk/channels/h323/Makefile

44 lines
1.0 KiB
Makefile

#
# Makefile
#
# Make file for OpenH323 support layer
#
.PHONY: Makefile.ast
# Verify those options with main Makefile
STDCCFLAGS += -DNDEBUG
STDCCFLAGS += $(shell grep ^DEBUG_THREADS ../../Makefile | sed -e "s/^DEBUG_THREADS[ ]*=//" -e "s/\([^\#]*\)\#.*/\1/")
STDCCFLAGS += -I../../include -include autoconfig.h
STDCCFLAGS += -fPIC
#OPTCCFLAGS +=
CFLAGS += -pipe
TARGET += libchanh323.a
TARGET += Makefile.ast
SOURCES = ast_h323.cxx
OBJDIR = .
ifndef OPENH323DIR
OPENH323DIR=$(HOME)/openh323
endif
include $(OPENH323DIR)/openh323u.mak
$(SOURCES):: $(SOURCES:.cxx=.cpp)
ln -f $< $@
$(SOURCES):: Makefile ../../Makefile
touch $(SOURCES)
libchanh323.a: $(OBJS)
ar crv $@ $(OBJS)
Makefile.ast:
@echo H323CFLAGS = $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) >$@.tmp
@echo H323LDFLAGS = $(CFLAGS) $(LDFLAGS) >>$@.tmp
@echo H323LDLIBS = $(LDLIBS) $(ENDLDLIBS) $(ENDLDFLAGS) >>$@.tmp
@if [ -r $@ ] && cmp -s $@ $@.tmp; then rm -f $@.tmp; else mv -f $@.tmp $@; fi
clean::
rm -f ast_h323.cxx libchanh323.a Makefile.ast *.dep