Makefile: Compile stm32f4_adc_tuner.o without -O3
authorsjlongland <sjlongland@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 24 Sep 2015 08:21:15 +0000 (08:21 +0000)
committersjlongland <sjlongland@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 24 Sep 2015 08:21:15 +0000 (08:21 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@2372 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/stm32/Makefile

index 10080d96dc178cbddfdd4558f8616230083c42b4..0ea758a0dc7c0f0c32d2d5145d087d70129917a5 100644 (file)
@@ -747,7 +747,7 @@ src/stm32f4_adc_tuner.o: src/stm32f4_adc_tuner.c
        $(CC) $(CFLAGS) $^ -c -o $@
 
 tuner_ut.elf: $(TUNER_UT_SRCS:.c=.O3.o) \
-               src/stm32f4_adc_tuner.O3.o libstm32f4.a
+               src/stm32f4_adc_tuner.o libstm32f4.a
        $(CC) $(CFLAGS) -O3 $^ -o $@ $(LIBPATHS) $(LIBS)
 
 # ---------------------------------------------------------------------------
@@ -763,13 +763,7 @@ src/system_stm32f4xx.c \
 src/startup_stm32f4xx.s \
 src/init.c \
 
-# this needs to be compiled without the optimiser or ugly things happen
-# would be nice to work out why as ISRs need to run fast
-
-src/stm32f4_adc_tuner.o: src/stm32f4_adc_tuner.c
-       $(CC) $(CFLAGS) $^ -c -o $@
-
-adc_sfdr_ut.elf: $(ADC_SFDR_UT_SRCS:.c=.O3.o) src/stm32f4_adc_tuner.O3.o \
+adc_sfdr_ut.elf: $(ADC_SFDR_UT_SRCS:.c=.O3.o) src/stm32f4_adc_tuner.o \
                libstm32f4.a
        $(CC) $(CFLAGS) -O3 $^ -o $@ $(LIBPATHS) $(LIBS)