| 
									
										
										
										
											2006-09-19 19:04:13 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # Makefile
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | # Make file for OpenH323 support layer
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .PHONY: Makefile.ast clean | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | default::	@OPENH323_BUILD@ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Verify those options with main Makefile
 | 
					
						
							|  |  |  | STDCCFLAGS	= -DNDEBUG | 
					
						
							|  |  |  | STDCCFLAGS	+= -I../../include -include ../../include/asterisk/autoconfig.h | 
					
						
							|  |  |  | STDCCFLAGS	+= -fPIC | 
					
						
							|  |  |  | #OPTCCFLAGS	+=
 | 
					
						
							|  |  |  | CFLAGS		= -pipe | 
					
						
							|  |  |  | TARGET		= libchanh323.a | 
					
						
							|  |  |  | TARGET		+= Makefile.ast | 
					
						
							| 
									
										
										
										
											2006-09-20 19:21:15 +00:00
										 |  |  | SOURCES		= ast_h323.cxx compat_h323.cxx cisco-h225.cxx caps_h323.cxx | 
					
						
							| 
									
										
										
										
											2006-09-19 19:04:13 +00:00
										 |  |  | OBJDIR		= . | 
					
						
							|  |  |  | OBJS		= | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ifndef OPENH323DIR | 
					
						
							|  |  |  | OPENH323DIR=@OPENH323DIR@ | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | include $(OPENH323DIR)/openh323u.mak | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | notrace:: | 
					
						
							|  |  |  | 	$(MAKE) NOTRACE=1 opt | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $(SOURCES)::	Makefile ../../Makefile | 
					
						
							|  |  |  | 	touch $@ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | libchanh323.a:	$(OBJS) | 
					
						
							|  |  |  | 	ar crv $@ $(OBJS) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-09-20 17:48:52 +00:00
										 |  |  | cisco-h225.cxx::	cisco-h225.asn | 
					
						
							| 
									
										
										
										
											2006-09-19 19:04:13 +00:00
										 |  |  | 	asnparser -m CISCO_H225 -c $< | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 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:: | 
					
						
							| 
									
										
										
										
											2006-09-20 17:45:25 +00:00
										 |  |  | 	rm -f $(TARGET) $(OBJS) Makefile.ast *.dep |