use the proper technique for including submodules so that embedding will work
authorKevin P. Fleming <kpfleming@digium.com>
Wed, 2 Jan 2008 14:50:46 +0000 (14:50 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Wed, 2 Jan 2008 14:50:46 +0000 (14:50 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95840 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/Makefile

index 1afeebf..d2227fb 100644 (file)
@@ -51,8 +51,6 @@ endif
 
 all: _all
 
-chan_oss.so: console_video.o vgrabbers.o
-
 include $(ASTTOPDIR)/Makefile.moddir_rules
 
 ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
@@ -121,3 +119,5 @@ misdn/isdn_lib.o: ASTCFLAGS+=-Wno-strict-aliasing
 $(if $(filter chan_misdn,$(EMBEDDED_MODS)),modules.link,chan_misdn.so): chan_misdn.o misdn_config.o misdn/isdn_lib.o misdn/isdn_msg_parser.o
 
 chan_vpb.oo: ASTCFLAGS:=$(filter-out -Wdeclaration-after-statement,$(ASTCFLAGS))
+
+$(if $(filter chan_oss,$(EMBEDDED_MODS)),modules.link,chan_oss.so): console_video.o vgrabbers.o