mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 03:08:45 +00:00
Rework astersk make process to be compatable with the Open H.323 build process. Bug #3981
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5528 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -121,6 +121,10 @@ ifneq ($(wildcard .depend),)
|
|||||||
include .depend
|
include .depend
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(wildcard h323/Makefile.ast),)
|
||||||
|
include h323/Makefile.ast
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(CROSS_COMPILE),)
|
ifeq ($(CROSS_COMPILE),)
|
||||||
gentone: gentone.c
|
gentone: gentone.c
|
||||||
$(CC) -o gentone gentone.c -lm
|
$(CC) -o gentone gentone.c -lm
|
||||||
@@ -178,8 +182,13 @@ chan_vpb.o: chan_vpb.c
|
|||||||
chan_vpb.so: chan_vpb.o
|
chan_vpb.so: chan_vpb.o
|
||||||
$(CXX) $(SOLINK) -o $@ $< -lvpb -lpthread -lm -ldl
|
$(CXX) $(SOLINK) -o $@ $< -lvpb -lpthread -lm -ldl
|
||||||
|
|
||||||
|
ifeq (${OSARCH},Linux)
|
||||||
|
chan_h323.so: chan_h323.o h323/libchanh323.a h323/Makefile.ast
|
||||||
|
$(CC) $(SOLINK) $(H323LDFLAGS) -o $@ $< h323/libchanh323.a $(H323LDLIBS) -lstdc++
|
||||||
|
else
|
||||||
chan_h323.so: chan_h323.o h323/libchanh323.a
|
chan_h323.so: chan_h323.o h323/libchanh323.a
|
||||||
$(CC) $(SOLINK) -o $@ $< h323/libchanh323.a $(CHANH323LIB) -L$(PWLIBDIR)/lib $(PTLIB) -L$(OPENH323DIR)/lib $(H323LIB) -L/usr/lib -lcrypto -lssl -lexpat
|
$(CC) $(SOLINK) -o $@ $< h323/libchanh323.a $(CHANH323LIB) -L$(PWLIBDIR)/lib $(PTLIB) -L$(OPENH323DIR)/lib $(H323LIB) -L/usr/lib -lcrypto -lssl -lexpat
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
#chan_modem.so : chan_modem.o
|
#chan_modem.so : chan_modem.o
|
||||||
|
Reference in New Issue
Block a user