]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Allow C++ source files (as extension .cc) in the main directory
authorGeorge Joseph <gjoseph@sangoma.com>
Mon, 9 Dec 2024 19:54:53 +0000 (12:54 -0700)
committerGeorge Joseph <gjoseph@sangoma.com>
Tue, 10 Dec 2024 14:23:39 +0000 (14:23 +0000)
Although C++ files (as extension .cc) have been handled in the module
directories for many years, the main directory was missing one line in its
Makefile that prevented C++ files from being recognised there.

main/Makefile

index 297391746e91d472cf30fa40a336a35b2c43cb5d..e6aa7acece86b2a40ce3b7b2143ed46d99b86fd1 100644 (file)
@@ -31,7 +31,8 @@ ifeq ($(PJPROJECT_BUNDLED),yes)
 SRC:=$(filter-out libasteriskpj.c,$(SRC))
 endif
 OBJSFILTER:=$(MOD_OBJS) fskmodem_int.o fskmodem_float.o cygload.o buildinfo.o
-OBJS=$(filter-out $(OBJSFILTER),$(SRC:.c=.o))
+SRC_CC:=$(wildcard *.cc)
+OBJS=$(filter-out $(OBJSFILTER),$(SRC:.c=.o) $(SRC_CC:.cc=.oo))
 
 # we need to link in the objects statically, not as a library, because
 # otherwise modules will not have them available if none of the static