[svn-commits] qwell: branch 1.4 r380 - /branches/1.4/Makefile

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu May 10 10:48:00 MST 2007


Author: qwell
Date: Thu May 10 12:47:59 2007
New Revision: 380

URL: http://svn.digium.com/view/asterisk-addons?view=rev&rev=380
Log:
Clean up Makefile a little.

Wildcard .o files - no need to have different lines for each one.  They were all the same.
Filter out modules that are in subdirectories, when doing mkdeps - avoids a silly warning.

Modified:
    branches/1.4/Makefile

Modified: branches/1.4/Makefile
URL: http://svn.digium.com/view/asterisk-addons/branches/1.4/Makefile?view=diff&rev=380&r1=379&r2=380
==============================================================================
--- branches/1.4/Makefile (original)
+++ branches/1.4/Makefile Thu May 10 12:47:59 2007
@@ -122,6 +122,9 @@
 		$(MAKE) -C asterisk-ooh323c clean ; \
 	fi
 
+%.o: %.c
+	$(CC) -g -c $(CFLAGS) -o $@ $<
+
 %.so : %.o
 	$(CC) $(SOLINK) -o $@ $<
 
@@ -129,20 +132,11 @@
 include .depend
 endif
 
-cdr_addon_mysql.o: cdr_addon_mysql.c
-	$(CC) -g -c $(CFLAGS) -o $@ $<
-
 cdr_addon_mysql.so: cdr_addon_mysql.o
 	$(CC) $(SOLINK) -o $@ $< $(MYSQLCLIENT_LIB)
 
-res_config_mysql.o: res_config_mysql.c
-	$(CC) -g -c $(CFLAGS) -o $@ $<
-
 res_config_mysql.so: res_config_mysql.o
 	$(CC) $(SOLINK) -o $@ $< $(MYSQLCLIENT_LIB)
-
-app_addon_sql_mysql.o: app_addon_sql_mysql.c
-	$(CC) -g -c $(CFLAGS) -o $@ $<
 
 app_addon_sql_mysql.so: app_addon_sql_mysql.o
 	$(CC) $(SOLINK) -o $@ $< $(MYSQLCLIENT_LIB)
@@ -159,7 +153,7 @@
 depend: .depend
 
 .depend:
-	build_tools/mkdep $(CFLAGS) $(SELECTED_MODS:%.so=%.c)
+	build_tools/mkdep $(CFLAGS) $(filter-out format_mp3.c chan_ooh323.c,$(SELECTED_MODS:%.so=%.c))
 
 samples: 
 	mkdir -p $(DESTDIR)$(ASTETCDIR)



More information about the svn-commits mailing list