From: sjlongland Date: Thu, 24 Sep 2015 08:21:15 +0000 (+0000) Subject: Makefile: Compile stm32f4_adc_tuner.o without -O3 X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=34997a8c80bb69b5e9f1c6307d194806f37c3f3d;p=freetel-svn-tracking.git Makefile: Compile stm32f4_adc_tuner.o without -O3 git-svn-id: https://svn.code.sf.net/p/freetel/code@2372 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/codec2-dev/stm32/Makefile b/codec2-dev/stm32/Makefile index 10080d96..0ea758a0 100644 --- a/codec2-dev/stm32/Makefile +++ b/codec2-dev/stm32/Makefile @@ -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)