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) |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 90 |
91 OPUSDEMO_SRCS_C = src/opus_demo.c | 91 OPUSDEMO_SRCS_C = src/opus_demo.c |
92 OPUSDEMO_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(OPUSDEMO_SRCS_C)) | 92 OPUSDEMO_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(OPUSDEMO_SRCS_C)) |
93 | 93 |
94 TESTOPUSAPI_SRCS_C = tests/test_opus_api.c | 94 TESTOPUSAPI_SRCS_C = tests/test_opus_api.c |
95 TESTOPUSAPI_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(TESTOPUSAPI_SRCS_C)) | 95 TESTOPUSAPI_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(TESTOPUSAPI_SRCS_C)) |
96 | 96 |
97 TESTOPUSDECODE_SRCS_C = tests/test_opus_decode.c | 97 TESTOPUSDECODE_SRCS_C = tests/test_opus_decode.c |
98 TESTOPUSDECODE_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(TESTOPUSDECODE_SRCS_C)) | 98 TESTOPUSDECODE_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(TESTOPUSDECODE_SRCS_C)) |
99 | 99 |
100 TESTOPUSENCODE_SRCS_C = tests/test_opus_encode.c | 100 TESTOPUSENCODE_SRCS_C = tests/test_opus_encode.c tests/opus_encode_regressions.c |
101 TESTOPUSENCODE_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(TESTOPUSENCODE_SRCS_C)) | 101 TESTOPUSENCODE_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(TESTOPUSENCODE_SRCS_C)) |
102 | 102 |
103 TESTOPUSPADDING_SRCS_C = tests/test_opus_padding.c | 103 TESTOPUSPADDING_SRCS_C = tests/test_opus_padding.c |
104 TESTOPUSPADDING_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(TESTOPUSPADDING_SRCS_C)) | 104 TESTOPUSPADDING_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(TESTOPUSPADDING_SRCS_C)) |
105 | 105 |
106 OPUSCOMPARE_SRCS_C = src/opus_compare.c | 106 OPUSCOMPARE_SRCS_C = src/opus_compare.c |
107 OPUSCOMPARE_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(OPUSCOMPARE_SRCS_C)) | 107 OPUSCOMPARE_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(OPUSCOMPARE_SRCS_C)) |
108 | 108 |
109 TESTS := test_opus_api test_opus_decode test_opus_encode test_opus_padding | 109 TESTS := test_opus_api test_opus_decode test_opus_encode test_opus_padding |
110 | 110 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 force: | 150 force: |
151 | 151 |
152 clean: | 152 clean: |
153 rm -f opus_demo$(EXESUFFIX) opus_compare$(EXESUFFIX) $(TARGET) \ | 153 rm -f opus_demo$(EXESUFFIX) opus_compare$(EXESUFFIX) $(TARGET) \ |
154 test_opus_api$(EXESUFFIX) test_opus_decode$(EXESUFFIX) \ | 154 test_opus_api$(EXESUFFIX) test_opus_decode$(EXESUFFIX) \ |
155 test_opus_encode$(EXESUFFIX) test_opus_padding$(EXESUFFIX) \ | 155 test_opus_encode$(EXESUFFIX) test_opus_padding$(EXESUFFIX) \ |
156 $(OBJS) $(OPUSDEMO_OBJS) $(OPUSCOMPARE_OBJS) $(TESTOPUSAPI_OBJS)
\ | 156 $(OBJS) $(OPUSDEMO_OBJS) $(OPUSCOMPARE_OBJS) $(TESTOPUSAPI_OBJS)
\ |
157 $(TESTOPUSDECODE_OBJS) $(TESTOPUSENCODE_OBJS) $(TESTOPUSPADDING_
OBJS) | 157 $(TESTOPUSDECODE_OBJS) $(TESTOPUSENCODE_OBJS) $(TESTOPUSPADDING_
OBJS) |
158 | 158 |
159 .PHONY: all lib clean force check | 159 .PHONY: all lib clean force check |
OLD | NEW |