2003-06-25 06:48:08 +00:00
|
|
|
#
|
2005-04-29 04:30:51 +00:00
|
|
|
# Makefile
|
2003-06-25 06:48:08 +00:00
|
|
|
#
|
2005-04-29 04:30:51 +00:00
|
|
|
# Make file for OpenH323 support layer
|
2003-08-10 18:12:48 +00:00
|
|
|
#
|
2003-03-31 07:13:36 +00:00
|
|
|
|
2005-04-29 04:30:51 +00:00
|
|
|
# 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
|
|
|
|
STDCCFLAGS += -Wmissing-prototypes
|
|
|
|
STDCCFLAGS += -fPIC
|
|
|
|
#OPTCCFLAGS +=
|
|
|
|
CFLAGS += -pipe
|
|
|
|
TARGET += libchanh323.a
|
|
|
|
TARGET += Makefile.ast
|
|
|
|
SOURCES = ast_h323.cxx
|
|
|
|
OBJDIR = .
|
2004-11-15 00:41:25 +00:00
|
|
|
|
2005-04-29 04:30:51 +00:00
|
|
|
ifndef OPENH323DIR
|
|
|
|
OPENH323DIR=$(HOME)/openh323
|
2004-11-15 00:41:25 +00:00
|
|
|
endif
|
2003-08-16 16:55:19 +00:00
|
|
|
|
2005-04-29 04:30:51 +00:00
|
|
|
include $(OPENH323DIR)/openh323u.mak
|
2003-03-31 07:13:36 +00:00
|
|
|
|
2005-04-29 04:30:51 +00:00
|
|
|
$(SOURCES):: $(SOURCES:.cxx=.cpp)
|
|
|
|
ln -f $< $@
|
2003-03-31 07:13:36 +00:00
|
|
|
|
2005-04-29 04:30:51 +00:00
|
|
|
$(SOURCES):: Makefile ../../Makefile
|
|
|
|
touch $(SOURCES)
|
2004-11-15 00:41:25 +00:00
|
|
|
|
2005-04-29 04:30:51 +00:00
|
|
|
libchanh323.a: $(OBJS)
|
|
|
|
ar crv $@ $(OBJS)
|
2004-11-15 00:41:25 +00:00
|
|
|
|
2005-04-29 04:30:51 +00:00
|
|
|
Makefile.ast: FORCE
|
|
|
|
@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
|
2003-03-31 07:13:36 +00:00
|
|
|
|
2005-04-29 04:30:51 +00:00
|
|
|
FORCE:
|