| OLD | NEW |
| 1 #################### COMPILE OPTIONS ####################### | 1 #################### COMPILE OPTIONS ####################### |
| 2 | 2 |
| 3 # Uncomment this for fixed-point build | 3 # Uncomment this for fixed-point build |
| 4 #FIXED_POINT=1 | 4 #FIXED_POINT=1 |
| 5 | 5 |
| 6 # It is strongly recommended to uncomment one of these | 6 # It is strongly recommended to uncomment one of these |
| 7 # VAR_ARRAYS: Use C99 variable-length arrays for stack allocation | 7 # VAR_ARRAYS: Use C99 variable-length arrays for stack allocation |
| 8 # USE_ALLOCA: Use alloca() for stack allocation | 8 # USE_ALLOCA: Use alloca() for stack allocation |
| 9 # If none is defined, then the fallback is a non-threadsafe global array | 9 # If none is defined, then the fallback is a non-threadsafe global array |
| 10 CFLAGS := -DUSE_ALLOCA $(CFLAGS) | 10 CFLAGS := -DUSE_ALLOCA $(CFLAGS) |
| 11 #CFLAGS := -DVAR_ARRAYS $(CFLAGS) | 11 #CFLAGS := -DVAR_ARRAYS $(CFLAGS) |
| 12 | 12 |
| 13 # These options affect performance | 13 # These options affect performance |
| 14 # HAVE_LRINTF: Use C99 intrinsics to speed up float-to-int conversion | 14 # HAVE_LRINTF: Use C99 intrinsics to speed up float-to-int conversion |
| 15 # inline: Don't use the 'inline' keyword (for ANSI C compilers) | |
| 16 # restrict: Don't use the 'restrict' keyword (for pre-C99 compilers) | |
| 17 #CFLAGS := -DHAVE_LRINTF $(CFLAGS) | 15 #CFLAGS := -DHAVE_LRINTF $(CFLAGS) |
| 18 #CFLAGS := -Dinline= $(CFLAGS) | |
| 19 CFLAGS := -Drestrict= $(CFLAGS) | |
| 20 | 16 |
| 21 ###################### END OF OPTIONS ###################### | 17 ###################### END OF OPTIONS ###################### |
| 22 | 18 |
| 23 -include package_version | 19 -include package_version |
| 24 | 20 |
| 25 include silk_sources.mk | 21 include silk_sources.mk |
| 26 include celt_sources.mk | 22 include celt_sources.mk |
| 27 include opus_sources.mk | 23 include opus_sources.mk |
| 28 | 24 |
| 29 ifdef FIXED_POINT | 25 ifdef FIXED_POINT |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 echo 'PACKAGE_VERSION="unknown"' > ./package_version; \ | 118 echo 'PACKAGE_VERSION="unknown"' > ./package_version; \ |
| 123 fi | 119 fi |
| 124 | 120 |
| 125 force: | 121 force: |
| 126 | 122 |
| 127 clean: | 123 clean: |
| 128 rm -f opus_demo$(EXESUFFIX) opus_compare$(EXESUFFIX) $(TARGET) \ | 124 rm -f opus_demo$(EXESUFFIX) opus_compare$(EXESUFFIX) $(TARGET) \ |
| 129 $(OBJS) $(OPUSDEMO_OBJS) $(OPUSCOMPARE_OBJS) | 125 $(OBJS) $(OPUSDEMO_OBJS) $(OPUSCOMPARE_OBJS) |
| 130 | 126 |
| 131 .PHONY: all lib clean | 127 .PHONY: all lib clean |
| OLD | NEW |