Build System: Create Makefile macro MOD_ADD_SOURCE.
[asterisk/asterisk.git] / apps / Makefile
index 1dfe8c8..7730460 100644 (file)
@@ -27,11 +27,7 @@ all: _all
 
 include $(ASTTOPDIR)/Makefile.moddir_rules
 
-clean::
-       rm -f confbridge/*.o confbridge/*.i
-
-$(if $(filter app_confbridge,$(EMBEDDED_MODS)),modules.link,app_confbridge.so): $(subst .c,.o,$(wildcard confbridge/*.c))
-$(subst .c,.o,$(wildcard confbridge/*.c)): _ASTCFLAGS+=$(call MOD_ASTCFLAGS,app_confbridge)
+$(call MOD_ADD_C,app_confbridge,$(wildcard confbridge/*.c))
 
 ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
   LIBS+= -lres_ael_share.so -lres_monitor.so -lres_speech.so